| Index: src/heap-profiler.cc
|
| diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc
|
| index 4b7443a121ff9fde2eca25e15a8b9a831e65dfdb..6068bf43bdad6abe6159261550bbc49a6059936d 100644
|
| --- a/src/heap-profiler.cc
|
| +++ b/src/heap-profiler.cc
|
| @@ -173,6 +173,9 @@ void HeapProfiler::SetRetainedObjectInfo(UniqueId id,
|
|
|
|
|
| Handle<HeapObject> HeapProfiler::FindHeapObjectById(SnapshotObjectId id) {
|
| + heap()->CollectAllGarbage(Heap::kMakeHeapIterableMask,
|
| + "HeapProfiler::FindHeapObjectById");
|
| + DisallowHeapAllocation no_allocation;
|
| HeapObject* object = NULL;
|
| HeapIterator iterator(heap(), HeapIterator::kFilterUnreachable);
|
| // Make sure that object with the given id is still reachable.
|
|
|