Index: test/cctest/test-heap-profiler.cc |
diff --git a/test/cctest/test-heap-profiler.cc b/test/cctest/test-heap-profiler.cc |
index cc12d656d8697898e57d262cb90d290fe7cd51a0..54052ef560eb44b19fdaec6a8ca4c529f13d7a66 100644 |
--- a/test/cctest/test-heap-profiler.cc |
+++ b/test/cctest/test-heap-profiler.cc |
@@ -668,7 +668,7 @@ |
CompileRun( |
"for (var i = 0; i < 10000; ++i)\n" |
" a[i] = new A();\n"); |
- CcTest::heap()->CollectAllGarbage(); |
+ CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
const v8::HeapSnapshot* snapshot2 = heap_profiler->TakeHeapSnapshot(); |
CHECK(ValidateSnapshot(snapshot2)); |
@@ -710,7 +710,7 @@ |
"for (var i = 0; i < 1; ++i)\n" |
" a.shift();\n"); |
- CcTest::heap()->CollectAllGarbage(); |
+ CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
const v8::HeapSnapshot* snapshot2 = heap_profiler->TakeHeapSnapshot(); |
CHECK(ValidateSnapshot(snapshot2)); |
@@ -751,7 +751,7 @@ |
const v8::HeapSnapshot* snapshot1 = heap_profiler->TakeHeapSnapshot(); |
CHECK(ValidateSnapshot(snapshot1)); |
- CcTest::heap()->CollectAllGarbage(); |
+ CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
const v8::HeapSnapshot* snapshot2 = heap_profiler->TakeHeapSnapshot(); |
CHECK(ValidateSnapshot(snapshot2)); |
@@ -1060,7 +1060,7 @@ |
// We have to call GC 6 times. In other case the garbage will be |
// the reason of flakiness. |
for (int i = 0; i < 6; ++i) { |
- CcTest::heap()->CollectAllGarbage(); |
+ CcTest::heap()->CollectAllGarbage(i::Heap::kNoGCFlags); |
} |
v8::SnapshotObjectId initial_id; |