throws DatabaseException {
SortedMap newDirtyMap = new TreeMap();
INList inMemINs = envImpl.getInMemoryINs();
inMemINs.latchMajor();
/*
* Opportunistically recalculate the environment wide memory count.
* Incurs no extra cost because we're walking the IN list anyway. Not
* the best in terms of encapsulation as prefereably all memory