Index: src/heap-snapshot-generator.cc |
diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc |
index bae364cae7d197531e73f98e4eb00ffc5e118519..654cda4644f9c00f423693ca6d8e91a8b5da982c 100644 |
--- a/src/heap-snapshot-generator.cc |
+++ b/src/heap-snapshot-generator.cc |
@@ -2471,6 +2471,9 @@ void NativeObjectsExplorer::SetNativeRootReference( |
FindOrAddGroupInfo(info->GetGroupLabel()); |
HeapEntry* group_entry = |
filler_->FindOrAddEntry(group_info, synthetic_entries_allocator_); |
+ // |FindOrAddEntry| can move and resize the entries backing store. Reload |
+ // potentially-stale pointer. |
+ child_entry = filler_->FindEntry(info); |
filler_->SetNamedAutoIndexReference( |
HeapGraphEdge::kInternal, |
group_entry->index(), |