summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/regex/debug.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-01-24 15:33:42 +0000
committerkib <kib@FreeBSD.org>2015-01-24 15:33:42 +0000
commit7cbc6347a2d46248dcfc9c9448ec6facdbd857cb (patch)
treeddae609e0a73dbc52ddee28df3f976c7dfe19297 /contrib/netbsd-tests/lib/libc/regex/debug.c
parent3a9e3cd8d9759079220ebe0f13a1d1a8a458734e (diff)
downloadFreeBSD-src-7cbc6347a2d46248dcfc9c9448ec6facdbd857cb.zip
FreeBSD-src-7cbc6347a2d46248dcfc9c9448ec6facdbd857cb.tar.gz
Avoid calling vmspace_free() while owning the process lock. Freeing
of an vm space may require obtaining sleepable locks. Hold the process to keep the pointer valid, and change trylock to lock, since there is no longer two process locks owned simultaneously in vm_pageout_oom(). Note that after the process lock is dropped, process might exec, and no longer qualify as the owner of biggest vm space. In collaboration with: rstone Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/regex/debug.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud