Index: test/cctest/heap/test-heap.cc |
diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc |
index d6d1f1d4a37770a6e0a55e6b58ee24dab94c6f51..e747e0b0ea4e021598b538ff42b65575e5069b86 100644 |
--- a/test/cctest/heap/test-heap.cc |
+++ b/test/cctest/heap/test-heap.cc |
@@ -6600,7 +6600,7 @@ TEST(Regress598319) { |
CHECK_NOT_NULL(page); |
// GC to cleanup state |
- CcTest::CollectGarbage(OLD_SPACE); |
+ CcTest::CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask); |
MarkCompactCollector* collector = heap->mark_compact_collector(); |
if (collector->sweeping_in_progress()) { |
collector->EnsureSweepingCompleted(); |