| Index: runtime/vm/profiler.cc
|
| diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
|
| index c75f1362008c444430ae74f4c5ec4bf06fd66d88..339caadf11579ee061ea6b6c6f80c8041b7dd034 100644
|
| --- a/runtime/vm/profiler.cc
|
| +++ b/runtime/vm/profiler.cc
|
| @@ -169,7 +169,8 @@ void Profiler::BeginExecution(Isolate* isolate) {
|
| if (profiler_data == NULL) {
|
| return;
|
| }
|
| - ThreadInterrupter::Register(RecordSampleInterruptCallback, isolate);
|
| + Thread* thread = Thread::Current();
|
| + thread->SetThreadInterrupter(RecordSampleInterruptCallback, isolate);
|
| ThreadInterrupter::WakeUp();
|
| }
|
|
|
| @@ -182,7 +183,8 @@ void Profiler::EndExecution(Isolate* isolate) {
|
| return;
|
| }
|
| ASSERT(initialized_);
|
| - ThreadInterrupter::Unregister();
|
| + Thread* thread = Thread::Current();
|
| + thread->SetThreadInterrupter(NULL, NULL);
|
| }
|
|
|
|
|
|
|