Index: runtime/vm/service.cc |
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
index ec493b6d417074d2885b55ed35145a2a53aa3db2..b2205cf48ddb80c0cb4e50e6a013315580e0e8c0 100644 |
--- a/runtime/vm/service.cc |
+++ b/runtime/vm/service.cc |
@@ -1859,9 +1859,9 @@ class GetInstancesVisitor : public ObjectGraph::Visitor { |
if (raw_obj->IsFreeListElement()) { |
return kProceed; |
} |
- 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; |
if (obj.GetClassId() == cls_.id()) { |
if (!storage_.IsNull() && count_ < storage_.Length()) { |