This commit is contained in:
schrom01 2022-12-19 22:26:24 +01:00
parent 56f40f57ae
commit 480a7eb5f5
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ public class Storage {
private static void sweep(List<Collectable> heap) { private static void sweep(List<Collectable> heap) {
heap.removeIf(obj -> !obj.isMarked()); heap.removeIf(obj -> !obj.isMarked());
heap.forEach(obj -> obj.setMark(false)); heap.forEach(obj -> obj.setMark(false));
//oldHeap.addAll(youngHeap); oldHeap.addAll(youngHeap);
//youngHeap.clear(); youngHeap.clear();
} }
public static void gc() { public static void gc() {