Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 276663a111f804737b2cc70cd1b67cd7a137fbd1..9a67faea493b3bc39b51a399f13090c5a3f011d0 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -4052,7 +4052,7 @@ TEST(ApiObjectGroupsCycleForScavenger) { |
v8::internal::Heap* heap = reinterpret_cast<v8::internal::Isolate*>( |
iso)->heap(); |
- heap->CollectGarbage(i::NEW_SPACE); |
+ heap->CollectAllGarbage(i::Heap::kNoGCFlags); |
// All objects should be alive. |
CHECK_EQ(0, counter.NumberOfWeakCalls()); |
@@ -4084,7 +4084,7 @@ TEST(ApiObjectGroupsCycleForScavenger) { |
v8_str("x"), Local<Value>::New(iso, g1s1.handle)); |
} |
- heap->CollectGarbage(i::NEW_SPACE); |
+ heap->CollectAllGarbage(i::Heap::kNoGCFlags); |
// All objects should be gone. 7 global handles in total. |
CHECK_EQ(7, counter.NumberOfWeakCalls()); |