hazelcast/hazelcast — pull request #1258 by krolser (2013-11-27 12:05:41+00:00)
Title: correct calculation heapCost when record is evicting from DefaultRecordS...

It's needed to subtract 'HeapCost' before invalidating a record at that moment when the map evicts a record because the invalidated 'HeapCost' record is not the same as NOT invalidated 'HeapCost' record.