diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc index 407fb882c5..cd291aa524 100644 --- a/test/cctest/test-api.cc +++ b/test/cctest/test-api.cc @@ -7661,7 +7661,7 @@ static void SetFlag(const v8::WeakCallbackInfo& data) { } static void IndependentWeakHandle(bool global_gc, bool interlinked) { - i::FLAG_stress_incremental_marking = false; + ManualGCScope manual_gc_scope; // Parallel scavenge introduces too much fragmentation. i::FLAG_parallel_scavenge = false; v8::Isolate* iso = CcTest::isolate();