object_cache_low_memory(): Reduce the cache pressure indicator even for the

"note" low resource state. Not doing so could result in a very high limit for
the number of empty slabs, which wouldn't change until reaching the "warning"
state.
Fixes #5816.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37171 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-06-18 21:24:34 +00:00
parent 1cafaecaf5
commit fa04c15cde

View File

@ -453,6 +453,7 @@ object_cache_low_memory(void* dummy, uint32 resources, int32 level)
switch (level) {
case B_LOW_RESOURCE_NOTE:
minimumAllowed = cache->pressure / 2 + 1;
cache->pressure -= cache->pressure / 8;
break;
case B_LOW_RESOURCE_WARNING: