Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 0d668c8b94b4307ef2457f836227ba8bd67ee587..447266c6779eb823a2e58931e11318d5b14c792a 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -4864,7 +4864,7 @@ TEST(WeakCellsWithIncrementalMarking) { |
CHECK(weak_cell->value()->IsFixedArray()); |
weak_cells[i] = inner_scope.CloseAndEscape(weak_cell); |
} |
- heap->CollectAllGarbage(Heap::kNoGCFlags); |
+ heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask); |
CHECK_EQ(*survivor, weak_cells[0]->value()); |
for (int i = 1; i < N; i++) { |
CHECK(weak_cells[i]->cleared()); |