diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc index b817886f09..deb9a49221 100644 --- a/test/cctest/test-heap.cc +++ b/test/cctest/test-heap.cc @@ -5486,6 +5486,8 @@ TEST(OldSpaceAllocationCounter) { v8::HandleScope scope(CcTest::isolate()); Isolate* isolate = CcTest::i_isolate(); Heap* heap = isolate->heap(); + // TODO(ulan): remove this GC after fixing no-snapshot failure. + heap->CollectGarbage(OLD_SPACE); size_t counter1 = heap->OldGenerationAllocationCounter(); heap->CollectGarbage(NEW_SPACE); const size_t kSize = 1024;