Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index de911428a69afaf901d21a9495b49a3d087de525..ab000dc6a6ee28f1ebc78b491db3a630074e9b18 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -3001,7 +3001,8 @@ TEST(ReleaseOverReservedPages) { |
// Triggering one GC will cause a lot of garbage to be discovered but |
// even spread across all allocated pages. |
- heap->CollectAllGarbage(Heap::kNoGCFlags, "triggered for preparation"); |
+ heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask, |
+ "triggered for preparation"); |
CHECK_GE(number_of_test_pages + 1, old_pointer_space->CountTotalPages()); |
// Triggering subsequent GCs should cause at least half of the pages |