Index: runtime/vm/safepoint.cc |
diff --git a/runtime/vm/safepoint.cc b/runtime/vm/safepoint.cc |
index 47ef2576ef6b6b9ff277887e7f72d61f2d046363..fcf287237624be98a06bd1ea554f0a8a504c340c 100644 |
--- a/runtime/vm/safepoint.cc |
+++ b/runtime/vm/safepoint.cc |
@@ -82,7 +82,7 @@ void SafepointHandler::SafepointThreads(Thread* T) { |
// get it to a safepoint and wait for it to check in. |
if (current->IsMutatorThread()) { |
ASSERT(T->isolate() != NULL); |
- T->isolate()->ScheduleInterrupts(Isolate::kVMInterrupt); |
+ current->ScheduleInterruptsLocked(Thread::kVMInterrupt); |
} |
MonitorLocker sl(safepoint_lock_); |
++number_threads_not_at_safepoint_; |