mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
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:
parent
3247f0e901
commit
b95ae2518b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user