Index: runtime/vm/service.cc |
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
index 47751e215fb0d98a505f62c3b77079c8065470fc..b416a949b9183d2d99a14fc92e88a5757c31720e 100644 |
--- a/runtime/vm/service.cc |
+++ b/runtime/vm/service.cc |
@@ -1841,9 +1841,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()) { |