Chromium Code Reviews| Index: runtime/vm/thread_interrupter_win.cc |
| diff --git a/runtime/vm/thread_interrupter_win.cc b/runtime/vm/thread_interrupter_win.cc |
| index 70a5e8c93f877bc049eef271a4c32bae48bdf558..d378c4a9422f29b4f1806cf7bc92cc2f4961318b 100644 |
| --- a/runtime/vm/thread_interrupter_win.cc |
| +++ b/runtime/vm/thread_interrupter_win.cc |
| @@ -7,8 +7,10 @@ |
| #include "vm/flags.h" |
| #include "vm/os.h" |
| +#include "vm/profiler.h" |
| #include "vm/thread_interrupter.h" |
| + |
|
siva
2015/10/29 21:47:41
extra blank line?
Cutch
2015/11/02 20:47:12
Done.
|
| namespace dart { |
| DECLARE_FLAG(bool, thread_interrupter); |
| @@ -69,7 +71,6 @@ class ThreadInterrupterWin : public AllStatic { |
| return; |
| } |
| InterruptedThreadState its; |
| - its.tid = thread->id(); |
| if (!GrabRegisters(handle, &its)) { |
| // Failed to get thread registers. |
| ResumeThread(handle); |
| @@ -80,11 +81,7 @@ class ThreadInterrupterWin : public AllStatic { |
| CloseHandle(handle); |
| return; |
| } |
| - ThreadInterruptCallback callback = NULL; |
| - void* callback_data = NULL; |
| - if (thread->IsThreadInterrupterEnabled(&callback, &callback_data)) { |
| - callback(its, callback_data); |
| - } |
| + Profiler::SampleThread(thread, its); |
| ResumeThread(handle); |
| CloseHandle(handle); |
| } |