| Index: src/heap-snapshot-generator.cc
|
| diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc
|
| index f488304f43b3dda9889ad438bc3ddaf953acf14e..c4da47cb48ea674d063eb7d71f23eee6614a6c2f 100644
|
| --- a/src/heap-snapshot-generator.cc
|
| +++ b/src/heap-snapshot-generator.cc
|
| @@ -637,7 +637,7 @@ Handle<HeapObject> HeapSnapshotsCollection::FindHeapObjectById(
|
| // First perform a full GC in order to avoid dead objects.
|
| HEAP->CollectAllGarbage(Heap::kMakeHeapIterableMask,
|
| "HeapSnapshotsCollection::FindHeapObjectById");
|
| - AssertNoAllocation no_allocation;
|
| + DisallowHeapAllocation no_allocation;
|
| HeapObject* object = NULL;
|
| HeapIterator iterator(heap(), HeapIterator::kFilterUnreachable);
|
| // Make sure that object with the given id is still reachable.
|
| @@ -1827,7 +1827,7 @@ void V8HeapExplorer::TagGlobalObjects() {
|
| }
|
| }
|
|
|
| - AssertNoAllocation no_allocation;
|
| + DisallowHeapAllocation no_allocation;
|
| for (int i = 0, l = enumerator.count(); i < l; ++i) {
|
| objects_tags_.SetTag(*enumerator.at(i), urls[i]);
|
| }
|
| @@ -2219,7 +2219,7 @@ bool HeapSnapshotGenerator::GenerateSnapshot() {
|
|
|
| // The following code uses heap iterators, so we want the heap to be
|
| // stable. It should follow TagGlobalObjects as that can allocate.
|
| - AssertNoAllocation no_alloc;
|
| + DisallowHeapAllocation no_alloc;
|
|
|
| #ifdef VERIFY_HEAP
|
| debug_heap->Verify();
|
|
|