Temporary fix for test-heap/OldSpaceAllocationCounter.
authorulan <ulan@chromium.org>
Tue, 26 May 2015 13:51:48 +0000 (06:51 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 26 May 2015 13:51:58 +0000 (13:51 +0000)
TBR=hpayer@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true

Review URL: https://codereview.chromium.org/1155683006

Cr-Commit-Position: refs/heads/master@{#28630}

test/cctest/test-heap.cc

index b817886..deb9a49 100644 (file)
@@ -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;