Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Unified Diff: runtime/vm/service.cc

Issue 2995543004: [vm, gc] Require a safepoint for heap iteration. (Closed)
Patch Set: explicit-thread Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | runtime/vm/stack_frame_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/vm/scavenger.cc ('k') | runtime/vm/stack_frame_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698