Index: test/cctest/test-weakmaps.cc |
diff --git a/test/cctest/test-weakmaps.cc b/test/cctest/test-weakmaps.cc |
index 64d2876887bcc779044d766e9c66594478e2edb6..703c520debec0d98d5f912851ee01135ec07af46 100644 |
--- a/test/cctest/test-weakmaps.cc |
+++ b/test/cctest/test-weakmaps.cc |
@@ -199,7 +199,7 @@ |
// Force compacting garbage collection. |
CHECK(FLAG_always_compact); |
- heap->CollectAllGarbage(); |
+ heap->CollectAllGarbage(Heap::kNoGCFlags); |
} |
@@ -241,9 +241,9 @@ |
// Force compacting garbage collection. The subsequent collections are used |
// to verify that key references were actually updated. |
CHECK(FLAG_always_compact); |
- heap->CollectAllGarbage(); |
- heap->CollectAllGarbage(); |
- heap->CollectAllGarbage(); |
+ heap->CollectAllGarbage(Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(Heap::kNoGCFlags); |
} |
@@ -260,5 +260,5 @@ |
// The weak map is marked black here but leaving the handle scope will make |
// the object unreachable. Aborting incremental marking will clear all the |
// marking bits which makes the weak map garbage. |
- heap->CollectAllGarbage(); |
-} |
+ heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask); |
+} |