Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index b817886f095b95547e35d045babcea72c66112a9..deb9a4922183c7309f386c9181b55ee69392e3ab 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; |