Index: runtime/vm/object_graph.cc |
diff --git a/runtime/vm/object_graph.cc b/runtime/vm/object_graph.cc |
index 605f25421c6f5f37e9f59804fd8c8801ea24a204..89f2dd8a2209600de505cbb5cb12b7f938568467 100644 |
--- a/runtime/vm/object_graph.cc |
+++ b/runtime/vm/object_graph.cc |
@@ -149,7 +149,7 @@ class Unmarker : public ObjectVisitor { |
static void UnmarkAll(Isolate* isolate) { |
Unmarker unmarker; |
- isolate->heap()->VisitObjects(&unmarker); |
+ isolate->heap()->VisitObjectsNoExternalPages(&unmarker); |
} |
private: |
@@ -213,7 +213,7 @@ void ObjectGraph::IterateObjectsFrom(intptr_t class_id, |
Stack stack(isolate()); |
InstanceAccumulator accumulator(&stack, class_id); |
- isolate()->heap()->VisitObjects(&accumulator); |
+ isolate()->heap()->VisitObjectsNoExternalPages(&accumulator); |
stack.TraverseGraph(visitor); |
Unmarker::UnmarkAll(isolate()); |