summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-05-18 00:08:38 +0000
committerjhb <jhb@FreeBSD.org>2001-05-18 00:08:38 +0000
commit70b98f2d046fa1fc5c73393535e07ab85624995a (patch)
tree4377bd03a004afd877cd4b7cbab237485ea9599a /lib/libpthread/thread
parente208983bc11a22dabb0e35b0305e390b363b2778 (diff)
downloadFreeBSD-src-70b98f2d046fa1fc5c73393535e07ab85624995a.zip
FreeBSD-src-70b98f2d046fa1fc5c73393535e07ab85624995a.tar.gz
- Use a timeout for the tsleep in scheduler() instead of having vmmeter()
wakeup proc0 by hand to enforce the timeout. - When swapping out a process, keep the process locked via the proc lock from the first checks up until we clear PS_INMEM and set PS_SWAPPING in swapout(). The swapout() function now must be called with the proc lock held and releases it before returning. - Comment out the code to attempt to lock a process' VM structures before swapping out. It is broken in that it releases the lock after obtaining it. If it does grab the lock, it needs to hand it off to swapout() instead of releasing it. This can be revisisted when the VM is locked as this is a valid test to perform. It also causes a lock order reversal for the time being, which is the immediate cause for temporarily disabling it.
Diffstat (limited to 'lib/libpthread/thread')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud