Index: src/heap-snapshot-generator.cc |
diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc |
index 3fda04fa5bbc2af679c82fa6df0ca77bdd10ac47..05581b28209bb1d8a7119cee11da6aa7b04c2bf3 100644 |
--- a/src/heap-snapshot-generator.cc |
+++ b/src/heap-snapshot-generator.cc |
@@ -478,8 +478,8 @@ void HeapObjectsMap::UpdateHeapObjectsMap() { |
PrintF("Begin HeapObjectsMap::UpdateHeapObjectsMap. map has %d entries.\n", |
entries_map_.occupancy()); |
} |
- heap_->CollectAllGarbage(Heap::kMakeHeapIterableMask, |
- "HeapObjectsMap::UpdateHeapObjectsMap"); |
+ heap_->CollectAllGarbage("HeapObjectsMap::UpdateHeapObjectsMap", |
+ Heap::kMakeHeapIterableMask); |
HeapIterator iterator(heap_); |
for (HeapObject* obj = iterator.next(); |
obj != NULL; |
@@ -2554,12 +2554,10 @@ bool HeapSnapshotGenerator::GenerateSnapshot() { |
// full GC is reachable from the root when computing dominators. |
// This is not true for weakly reachable objects. |
// As a temporary solution we call GC twice. |
- heap_->CollectAllGarbage( |
- Heap::kMakeHeapIterableMask, |
- "HeapSnapshotGenerator::GenerateSnapshot"); |
- heap_->CollectAllGarbage( |
- Heap::kMakeHeapIterableMask, |
- "HeapSnapshotGenerator::GenerateSnapshot"); |
+ heap_->CollectAllGarbage("HeapSnapshotGenerator::GenerateSnapshot", |
+ Heap::kMakeHeapIterableMask); |
+ heap_->CollectAllGarbage("HeapSnapshotGenerator::GenerateSnapshot", |
+ Heap::kMakeHeapIterableMask); |
#ifdef VERIFY_HEAP |
Heap* debug_heap = heap_; |