fix for assert

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6829 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2010-04-21 17:59:22 +00:00
parent 3247f0e901
commit b95ae2518b

View File

@ -257,7 +257,7 @@ public class RowCollection implements Iterable<Row.Entry>, Cloneable {
if (allocram <= Integer.MAX_VALUE && MemoryControl.request(allocram, false)) return allocram;
allocram = needed * growfactorSmall100 / 100L;
allocram -= allocram % rowdef.objectsize;
assert allocram > 0 : "elements = " + elements + ", new = " + allocram;
assert allocram >= 0 : "elements = " + elements + ", new = " + allocram;
if (allocram <= Integer.MAX_VALUE && MemoryControl.request(allocram, forcegc)) return allocram;
return needed;
}