Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index 02fac5afd9b4ab02a61fba99f78ecc98d5b5beff..8ba5c794664babaec925492399650d887d471296 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -200,7 +200,7 @@ static void Serialize(v8::Isolate* isolate) { |
} |
Isolate* internal_isolate = reinterpret_cast<Isolate*>(isolate); |
- internal_isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, "serialize"); |
+ internal_isolate->heap()->CollectAllAvailableGarbage("serialize"); |
WriteToFile(internal_isolate, FLAG_testing_serialization_file); |
} |