Index: runtime/vm/service.cc |
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
index be4bd31e197364af831d05df3b095d19ff40f326..f1614693021c5bbd79e46725777524b60c56b634 100644 |
--- a/runtime/vm/service.cc |
+++ b/runtime/vm/service.cc |
@@ -2404,7 +2404,7 @@ static bool GetInstances(Thread* thread, JSONStream* js) { |
Array& storage = Array::Handle(Array::New(limit)); |
GetInstancesVisitor visitor(cls, storage); |
ObjectGraph graph(thread); |
- HeapIterationScope iteration_scope(true); |
+ HeapIterationScope iteration_scope(Thread::Current(), true); |
graph.IterateObjects(&visitor); |
intptr_t count = visitor.count(); |
JSONObject jsobj(js); |