C: fix bug in GC

This commit is contained in:
Alexey Andreev 2019-07-23 14:15:59 +03:00
parent 90e00f7eb4
commit a260067fde

View File

@ -322,6 +322,7 @@ public final class GC {
Address newRegionStart = heapAddress().add(currentRegionIndex * regionSize());
object = newRegionStart.add(currentRegion.start - 1).toStructure();
currentRegionEnd = newRegionStart.add(regionSize());
continue;
}
} else {
if (lastFreeSpace != null) {