Index: runtime/vm/thread_pool.cc |
diff --git a/runtime/vm/thread_pool.cc b/runtime/vm/thread_pool.cc |
index 19c0a4d363a8ca1af052887c31e6c3e072e48860..b281d5c47fb6344392ca24a817418a2d6d9f216f 100644 |
--- a/runtime/vm/thread_pool.cc |
+++ b/runtime/vm/thread_pool.cc |
@@ -383,11 +383,11 @@ bool ThreadPool::Worker::Loop() { |
task_ = NULL; |
// Release monitor while handling the task. |
- monitor_.Exit(); |
+ ml.Exit(); |
task->Run(); |
ASSERT(Isolate::Current() == NULL); |
delete task; |
- monitor_.Enter(); |
+ ml.Enter(); |
ASSERT(task_ == NULL); |
if (IsDone()) { |