Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index c79748fd26ec2529760ab9b907327fa8907161fc..a45d40212e3e8d739aeb8c2514e79a144506921d 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -1457,25 +1457,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_ThreadBlocked() { |
+ 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_ThreadUnblocked() { |
+ Thread* T = Thread::Current(); |
+ if (T == NULL) { |
return; |
} |
- profiler_data->Unblock(); |
+ T->EnableThreadInterrupts(); |
} |