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

Unified Diff: runtime/vm/object_graph.cc

Issue 2951333002: Moves the top_ and end_ words of the Scavenger into mutator thread. (Closed)
Patch Set: Address comments from CL Created 3 years, 5 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
Index: runtime/vm/object_graph.cc
diff --git a/runtime/vm/object_graph.cc b/runtime/vm/object_graph.cc
index ae3678abf7b67dd4e21f3eb0af31c10f051fdb37..e716ce37cf08a6761cd0a111f8486cd33164b694 100644
--- a/runtime/vm/object_graph.cc
+++ b/runtime/vm/object_graph.cc
@@ -613,7 +613,7 @@ intptr_t ObjectGraph::Serialize(WriteStream* stream,
isolate()->heap()->CollectAllGarbage();
}
// Current encoding assumes objects do not move, so promote everything to old.
- isolate()->heap()->new_space()->Evacuate();
+ isolate()->heap()->new_space()->Evacuate(isolate()->mutator_thread());
HeapIterationScope iteration_scope(true);
RawObject* kRootAddress = reinterpret_cast<RawObject*>(kHeapObjectTag);
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/scavenger.h » ('j') | runtime/vm/scavenger.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698