Index: test/cctest/cctest.h |
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h |
index e111438cdf7de109e3834dfeba6a41a1fa9a1e9c..08877c8268bc8641a8020b706de25d5f1c4aea53 100644 |
--- a/test/cctest/cctest.h |
+++ b/test/cctest/cctest.h |
@@ -558,6 +558,9 @@ static inline void SimulateIncrementalMarking(i::Heap* heap) { |
CHECK(marking->IsMarking()); |
while (!marking->IsComplete()) { |
marking->Step(i::MB, i::IncrementalMarking::NO_GC_VIA_STACK_GUARD); |
+ if (marking->IsReadyToOverApproximateWeakClosure()) { |
+ marking->MarkObjectGroups(); |
+ } |
} |
CHECK(marking->IsComplete()); |
} |