/** * For each entry that is not dirty (all we did was read it) decrement its refcount (so it can be * evicted as we apply our writes) and remove it from entryMods (so we don't keep iterating over * it and se we don't try to clean it up again later). */ void cleanupNonDirtyEntries(InternalRegion r) { if (!this.entryMods.isEmpty()) { Iterator it = this.entryMods.entrySet().iterator(); while (it.hasNext()) { Map.Entry me = (Map.Entry) it.next(); // Object eKey = me.getKey(); TXEntryState txes = (TXEntryState) me.getValue(); if (txes.cleanupNonDirty(r)) { it.remove(); } } } }