summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getopt.c
diff options
context:
space:
mode:
authorbryanv <bryanv@FreeBSD.org>2014-10-22 04:09:47 +0000
committerbryanv <bryanv@FreeBSD.org>2014-10-22 04:09:47 +0000
commit0895e1be7fb426c7fbc533e86b8e366cead1e094 (patch)
treecaf222a7907608499d9d6764ebd18b74cf906337 /lib/libc/stdlib/getopt.c
parent137a650c1121f5fb5f94f7db8b804e5ea2dee73b (diff)
downloadFreeBSD-src-0895e1be7fb426c7fbc533e86b8e366cead1e094.zip
FreeBSD-src-0895e1be7fb426c7fbc533e86b8e366cead1e094.tar.gz
MFC r272573:
Change the UMA mutex into a rwlock Acquire the lock in read mode when just needed to ensure the stability of the keg list. The UMA lock may be held for a long time (relatively speaking) in uma_reclaim() on machines with lots of zones/kegs. If the uma_timeout() would fire during that period, subsequent callouts on that CPU may be significantly delayed.
Diffstat (limited to 'lib/libc/stdlib/getopt.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud