Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 0920178785e1664112f32c7c375c8c306ba7df64..09a550a6f80f48acf8bd35203d54ad92373659e6 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -7705,7 +7705,8 @@ static void ResetWeakHandle(bool global_gc) { |
object_a.handle.Reset(iso, a); |
object_b.handle.Reset(iso, b); |
if (global_gc) { |
- CcTest::heap()->CollectAllAvailableGarbage(); |
+ CcTest::heap()->CollectAllGarbage( |
+ TestHeap::Heap::kAbortIncrementalMarkingMask); |
} else { |
CcTest::heap()->CollectGarbage(i::NEW_SPACE); |
} |
@@ -7721,7 +7722,8 @@ static void ResetWeakHandle(bool global_gc) { |
CHECK(object_b.handle.IsIndependent()); |
} |
if (global_gc) { |
- CcTest::heap()->CollectAllAvailableGarbage(); |
+ CcTest::heap()->CollectAllGarbage( |
+ TestHeap::Heap::kAbortIncrementalMarkingMask); |
} else { |
CcTest::heap()->CollectGarbage(i::NEW_SPACE); |
} |