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