cvs commit: src/sys/sys proc.h src/sys/kern kern_sig.c kern_thr.c
kern_thread.c subr_sleepqueue.c subr_trap.c
Jeff Roberson
jeff at FreeBSD.org
Fri Mar 21 01:23:26 PDT 2008
jeff 2008-03-21 08:23:25 UTC
FreeBSD src repository
Modified files:
sys/sys proc.h
sys/kern kern_sig.c kern_thr.c kern_thread.c
subr_sleepqueue.c subr_trap.c
Log:
- Add a new td flag TDF_NEEDSUSPCHK that is set whenever a thread needs
to enter thread_suspend_check().
- Set TDF_ASTPENDING along with TDF_NEEDSUSPCHK so we can move the
thread_suspend_check() to ast() rather than userret().
- Check TDF_NEEDSUSPCHK in the sleepq_catch_signals() optimization so
that we don't miss a suspend request. If this is set use the
expensive signal path.
- Set NEEDSUSPCHK when creating a new thread in thr in case the
creating thread is due to be suspended as well but has not yet.
Reviewed by: davidxu (Authored original patch)
Revision Changes Path
1.360 +1 -0 src/sys/kern/kern_sig.c
1.66 +2 -0 src/sys/kern/kern_thr.c
1.273 +3 -1 src/sys/kern/kern_thread.c
1.51 +1 -1 src/sys/kern/subr_sleepqueue.c
1.303 +11 -17 src/sys/kern/subr_trap.c
1.509 +1 -1 src/sys/sys/proc.h
More information about the cvs-src
mailing list