Index: test/cctest/test-deoptimization.cc |
diff --git a/test/cctest/test-deoptimization.cc b/test/cctest/test-deoptimization.cc |
index 7ba16b59f8847332d809edd8edc5e42a9875e9df..0d435c5e1052060d6ab72880ab3437d7dba19858 100644 |
--- a/test/cctest/test-deoptimization.cc |
+++ b/test/cctest/test-deoptimization.cc |
@@ -109,7 +109,8 @@ class AllowNativesSyntaxNoInlining { |
// Abort any ongoing incremental marking to make sure that all weak global |
// handle callbacks are processed. |
static void NonIncrementalGC(i::Isolate* isolate) { |
- isolate->heap()->CollectAllGarbage(); |
+ isolate->heap()->CollectAllGarbage(i::Heap::kFinalizeIncrementalMarkingMask, |
+ i::GarbageCollectionReason::kTesting); |
} |