summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/src/string.cpp
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2014-01-12 19:04:20 +0000
committeralc <alc@FreeBSD.org>2014-01-12 19:04:20 +0000
commited1e11749f6f9319944f6bf31c2d5c43dd1f596a (patch)
treeff30efaf16989ee36ab63827566ac57d467e7be2 /contrib/libc++/src/string.cpp
parent5710e9862520d9c2bd5737acb3e0c7fd0222d3eb (diff)
downloadFreeBSD-src-ed1e11749f6f9319944f6bf31c2d5c43dd1f596a.zip
FreeBSD-src-ed1e11749f6f9319944f6bf31c2d5c43dd1f596a.tar.gz
Correctly update the count of stuck pages, "addl_page_shortage", in
vm_pageout_scan(). There were missing increments in two less common cases. Don't conflate the count of stuck pages and the pageout deficit provided by vm_page_alloc{,_contig}(). (A proposed fix to the OOM code depends on this.) Handle held pages consistently in the inactive queue scan. In the more common case, we did not move the page to the tail of the queue. Whereas, in the less common case, we did. There's no particular reason to move the page in the less common case, so remove it. Perform the calculation of the page shortage for the active queue scan a little earlier, before the active queue lock is acquired. The correctness of this calculation doesn't depend on the active queue lock being held. Eliminate a redundant variable, "pcount". Use the more descriptive variable, "maxscan", in its place. Apply a few nearby style fixes, e.g., eliminate stray whitespace and excess parentheses. Reviewed by: kib Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/libc++/src/string.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud