[PATCH] trimMemory for unswappable objects

From: Tsantilas Christos <chtsanti_at_users.sourceforge.net>
Date: Tue, 10 Jan 2012 13:39:56 +0200

Inside StoreEntry::swapOut() the StoreEntry::trimMemory() method called
to release unused MemObjects memory. The trimMemory method must called
for all store entries, but current code blocks that call for
not-swappable objects, at least.

This patch trying to fix this bug implementing the following simple logic:
   {
     bool weAreOrMayBeSwappingOut =
           swappingOut() || mayStartSwapout();

     trimMemory(weAreOrMayBeSwappingOut);

     if (!weAreOrMayBeSwappingOut)
         return; // nothing else to do
   }

This is a Measurement Factory project

Received on Tue Jan 10 2012 - 11:40:30 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 11 2012 - 12:00:04 MST