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

Unified Diff: runtime/vm/isolate.cc

Issue 2999583002: Renames the isolate's mutator_thread_ to scheduled_mutator_thread_ (Closed)
Patch Set: Created 3 years, 4 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
« runtime/vm/base_isolate.h ('K') | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 55720c97d681dcebdbff57a779d9c3dc8158d180..3bec27e3f475d750da91586604e10bc139894ec1 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -2545,7 +2545,7 @@ Thread* Isolate::ScheduleThread(bool is_mutator, bool bypass_safepoint) {
MonitorLocker ml(threads_lock(), false);
// Check to make sure we don't already have a mutator thread.
- if (is_mutator && mutator_thread_ != NULL) {
+ if (is_mutator && scheduled_mutator_thread_ != NULL) {
return NULL;
}
@@ -2573,11 +2573,11 @@ Thread* Isolate::ScheduleThread(bool is_mutator, bool bypass_safepoint) {
ASSERT(thread->no_safepoint_scope_depth() == 0);
os_thread->set_thread(thread);
if (is_mutator) {
- mutator_thread_ = thread;
+ scheduled_mutator_thread_ = thread;
if ((Dart::vm_isolate() != NULL) &&
(heap() != Dart::vm_isolate()->heap())) {
- mutator_thread_->set_top(0);
- mutator_thread_->set_end(0);
+ scheduled_mutator_thread_->set_top(0);
+ scheduled_mutator_thread_->set_end(0);
}
}
Thread::SetCurrent(thread);
@@ -2619,12 +2619,12 @@ void Isolate::UnscheduleThread(Thread* thread,
if (is_mutator) {
if ((Dart::vm_isolate() != NULL) &&
(heap() != Dart::vm_isolate()->heap())) {
- if (mutator_thread_->HasActiveTLAB()) {
- heap()->AbandonRemainingTLAB(mutator_thread_);
+ if (scheduled_mutator_thread_->HasActiveTLAB()) {
+ heap()->AbandonRemainingTLAB(scheduled_mutator_thread_);
}
}
- ASSERT(!mutator_thread_->HasActiveTLAB());
- mutator_thread_ = NULL;
+ ASSERT(!scheduled_mutator_thread_->HasActiveTLAB());
+ scheduled_mutator_thread_ = NULL;
}
thread->isolate_ = NULL;
thread->heap_ = NULL;
« runtime/vm/base_isolate.h ('K') | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698