Author: bonefish Date: 2010-06-18 23:24:34 +0200 (Fri, 18 Jun 2010) New Revision: 37171 Changeset: http://dev.haiku-os.org/changeset/37171/haiku Ticket: http://dev.haiku-os.org/ticket/5816 Modified: haiku/trunk/src/system/kernel/slab/Slab.cpp Log: 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. Modified: haiku/trunk/src/system/kernel/slab/Slab.cpp =================================================================== --- haiku/trunk/src/system/kernel/slab/Slab.cpp 2010-06-18 21:17:11 UTC (rev 37170) +++ haiku/trunk/src/system/kernel/slab/Slab.cpp 2010-06-18 21:24:34 UTC (rev 37171) @@ -453,6 +453,7 @@ switch (level) { case B_LOW_RESOURCE_NOTE: minimumAllowed = cache->pressure / 2 + 1; + cache->pressure -= cache->pressure / 8; break; case B_LOW_RESOURCE_WARNING: