| Index: runtime/vm/thread_registry.cc
|
| diff --git a/runtime/vm/thread_registry.cc b/runtime/vm/thread_registry.cc
|
| index ee21ec9ec73eca2c2b35411abb8fcc54b6fe7283..f0f80e3fd08cab01d2c82715410765c1953df4aa 100644
|
| --- a/runtime/vm/thread_registry.cc
|
| +++ b/runtime/vm/thread_registry.cc
|
| @@ -33,7 +33,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 (!isolate->MutatorThreadIsCurrentThread()) {
|
| + if (!Thread::Current()->IsMutatorThread()) {
|
| isolate->ScheduleInterrupts(Isolate::kVMInterrupt);
|
| }
|
| while (remaining_ > 0) {
|
|
|