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

Unified Diff: runtime/vm/isolate.h

Issue 2951333002: Moves the top_ and end_ words of the Scavenger into mutator thread. (Closed)
Patch Set: Adds and uses function that checks if mutator is scheduled in GC 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/isolate.h
diff --git a/runtime/vm/isolate.h b/runtime/vm/isolate.h
index f700bbc2ad2e2c944c3e506be5e297e54c91e171..37793daf0666fc61e9db050fc38c047046b05a68 100644
--- a/runtime/vm/isolate.h
+++ b/runtime/vm/isolate.h
@@ -220,6 +220,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);

Powered by Google App Engine
This is Rietveld 408576698