Index: runtime/vm/thread_registry.cc |
diff --git a/runtime/vm/thread_registry.cc b/runtime/vm/thread_registry.cc |
index 5d23ed69ba06c34da7d7ef79f131b3682c080983..8ade009c6035e6762ee9f45b39b1ce2dcc00100c 100644 |
--- a/runtime/vm/thread_registry.cc |
+++ b/runtime/vm/thread_registry.cc |
@@ -27,7 +27,7 @@ void ThreadRegistry::SafepointThreads() { |
// TODO(koda): Rename Thread::PrepareForGC and call it here? |
--remaining_; // Exclude this thread from the count. |
// Ensure the main mutator will reach a safepoint (could be running Dart). |
- if (Thread::Current() != isolate->mutator_thread()) { |
+ if (!isolate->MutatorThreadIsCurrentThread()) { |
isolate->ScheduleInterrupts(Isolate::kVMInterrupt); |
} |
while (remaining_ > 0) { |