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

Unified Diff: runtime/vm/isolate.h

Issue 2980033002: Moves the top_ and end_ words of the Scavenger into mutator thread. (Closed)
Patch Set: 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
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index 8dc5c5c3867952eff1ab857f4b344cdd52af8339..e5b1849d6999df4c3956dc5d275fd7fd6ee3ba6a 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -215,6 +215,13 @@ class Isolate : public BaseIsolate {
Thread* mutator_thread() const;
+ // Mutator thread is not scheduled if NULL or no heap is attached
+ // to it. The latter only occurs when the mutator thread object
+ // is unscheduled by the isolate (or never scheduled).
+ bool IsMutatorThreadScheduled() {
+ return mutator_thread_ != NULL && mutator_thread_->heap() != NULL;
+ }
+
const char* name() const { return name_; }
const char* debugger_name() const { return debugger_name_; }
void set_debugger_name(const char* name);
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698