Index: runtime/vm/object_graph.cc |
diff --git a/runtime/vm/object_graph.cc b/runtime/vm/object_graph.cc |
index b32fa2037db1eb8224f0b1614834ec0ce8b320ad..3a56dc9b5dcfbae14552cf5c4c9087fe2cd451a6 100644 |
--- a/runtime/vm/object_graph.cc |
+++ b/runtime/vm/object_graph.cc |
@@ -442,9 +442,9 @@ class WriteGraphVisitor : public ObjectGraph::Visitor { |
virtual Direction VisitObject(ObjectGraph::StackIterator* it) { |
RawObject* raw_obj = it->Get(); |
- Isolate* isolate = Isolate::Current(); |
- REUSABLE_OBJECT_HANDLESCOPE(isolate); |
- Object& obj = isolate->ObjectHandle(); |
+ Thread* thread = Thread::Current(); |
+ REUSABLE_OBJECT_HANDLESCOPE(thread); |
+ Object& obj = thread->ObjectHandle(); |
obj = raw_obj; |
// Each object is a header + a zero-terminated list of its neighbors. |
WriteHeader(raw_obj, raw_obj->Size(), obj.GetClassId(), stream_); |