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

Unified Diff: runtime/vm/service.cc

Issue 2566383002: ObjectGraph: Establish a HeapIterationScope *before* making the heap writable, least the sweeper in… (Closed)
Patch Set: . Created 4 years 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/object_graph_test.cc ('k') | no next file » | 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 3cbf8fc24a693d5eaa0a8d2dc16e6c80589293b5..9ea1c512dfe2ebd1a30bfe9c065ebe9d468243ec 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -2339,6 +2339,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);
graph.IterateObjects(&visitor);
intptr_t count = visitor.count();
JSONObject jsobj(js);
« no previous file with comments | « runtime/vm/object_graph_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698