| Index: runtime/vm/thread_interrupter_android.cc
|
| diff --git a/runtime/vm/thread_interrupter_android.cc b/runtime/vm/thread_interrupter_android.cc
|
| index a5a4f8ae48d90707b6ceb57b9b48503030a63210..31af1367024a3c10cf92b14985265e79e4b9d62a 100644
|
| --- a/runtime/vm/thread_interrupter_android.cc
|
| +++ b/runtime/vm/thread_interrupter_android.cc
|
| @@ -20,8 +20,7 @@ class ThreadInterrupterAndroid : public AllStatic {
|
| if (signal != SIGPROF) {
|
| return;
|
| }
|
| - ThreadInterrupter::ThreadState* state =
|
| - ThreadInterrupter::CurrentThreadState();
|
| + InterruptableThreadState* state = ThreadInterrupter::CurrentThreadState();
|
| if ((state == NULL) || (state->callback == NULL)) {
|
| // No interrupter state or callback.
|
| return;
|
| @@ -31,16 +30,12 @@ class ThreadInterrupterAndroid : public AllStatic {
|
| };
|
|
|
|
|
| -void ThreadInterrupter::InterruptThreads(int64_t current_time) {
|
| - for (intptr_t i = 0; i < threads_size_; i++) {
|
| - ThreadState* state = threads_[i];
|
| - ASSERT(state->id != Thread::kInvalidThreadId);
|
| - if (FLAG_trace_thread_interrupter) {
|
| - OS::Print("ThreadInterrupter interrupting %p\n",
|
| - reinterpret_cast<void*>(state->id));
|
| - }
|
| - pthread_kill(state->id, SIGPROF);
|
| +void ThreadInterrupter::InterruptThread(InterruptableThreadState* state) {
|
| + if (FLAG_trace_thread_interrupter) {
|
| + OS::Print("ThreadInterrupter interrupting %p\n",
|
| + reinterpret_cast<void*>(state->id));
|
| }
|
| + pthread_kill(state->id, SIGPROF);
|
| }
|
|
|
|
|
|
|