| Index: runtime/vm/dart_api_impl.cc
|
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
|
| index f25747cdd707c74414acb52d4c3e7951e379e94c..134a025d5656f1e22b1c2a1b7e9fc90ac8d39a45 100644
|
| --- a/runtime/vm/dart_api_impl.cc
|
| +++ b/runtime/vm/dart_api_impl.cc
|
| @@ -1463,25 +1463,21 @@ DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate) {
|
| }
|
|
|
|
|
| -DART_EXPORT void Dart_IsolateBlocked() {
|
| - Isolate* isolate = Isolate::Current();
|
| - CHECK_ISOLATE(isolate);
|
| - IsolateProfilerData* profiler_data = isolate->profiler_data();
|
| - if (profiler_data == NULL) {
|
| +DART_EXPORT void Dart_ThreadDisableProfiling() {
|
| + Thread* T = Thread::Current();
|
| + if (T == NULL) {
|
| return;
|
| }
|
| - profiler_data->Block();
|
| + T->DisableThreadInterrupts();
|
| }
|
|
|
|
|
| -DART_EXPORT void Dart_IsolateUnblocked() {
|
| - Isolate* isolate = Isolate::Current();
|
| - CHECK_ISOLATE(isolate);
|
| - IsolateProfilerData* profiler_data = isolate->profiler_data();
|
| - if (profiler_data == NULL) {
|
| +DART_EXPORT void Dart_ThreadEnableProfiling() {
|
| + Thread* T = Thread::Current();
|
| + if (T == NULL) {
|
| return;
|
| }
|
| - profiler_data->Unblock();
|
| + T->EnableThreadInterrupts();
|
| }
|
|
|
|
|
|
|