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

Unified Diff: runtime/vm/object_graph.cc

Issue 1410643008: Get rid of deprecated methods accessing mutator_thread_ instead of current thread (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/object_graph.h ('k') | runtime/vm/object_graph_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_graph.cc
diff --git a/runtime/vm/object_graph.cc b/runtime/vm/object_graph.cc
index 3a56dc9b5dcfbae14552cf5c4c9087fe2cd451a6..2bc0d664374374c5a5e9fcef582bf2c2c1e16bbf 100644
--- a/runtime/vm/object_graph.cc
+++ b/runtime/vm/object_graph.cc
@@ -156,12 +156,12 @@ class Unmarker : public ObjectVisitor {
};
-ObjectGraph::ObjectGraph(Isolate* isolate)
- : StackResource(isolate) {
+ObjectGraph::ObjectGraph(Thread* thread)
+ : StackResource(thread) {
// The VM isolate has all its objects pre-marked, so iterating over it
// would be a no-op.
- ASSERT(isolate != Dart::vm_isolate());
- isolate->heap()->WriteProtectCode(false);
+ ASSERT(thread->isolate() != Dart::vm_isolate());
+ thread->isolate()->heap()->WriteProtectCode(false);
}
« no previous file with comments | « runtime/vm/object_graph.h ('k') | runtime/vm/object_graph_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698