Index: runtime/vm/thread_test.cc |
diff --git a/runtime/vm/thread_test.cc b/runtime/vm/thread_test.cc |
index 9eaf79138cff317d4d6f5bcf017bab89e1c8da1e..7eb5849d422f1c449aa65c8b91fa9a9767a5faba 100644 |
--- a/runtime/vm/thread_test.cc |
+++ b/runtime/vm/thread_test.cc |
@@ -39,10 +39,8 @@ UNIT_TEST_CASE(Monitor) { |
Dart_CreateIsolate( |
NULL, NULL, bin::isolate_snapshot_buffer, NULL, NULL, NULL); |
Thread* thread = Thread::Current(); |
- Isolate* isolate = thread->isolate(); |
// Thread interrupter interferes with this test, disable interrupts. |
- thread->SetThreadInterrupter(NULL, NULL); |
- Profiler::EndExecution(isolate); |
+ thread->DisableThreadInterrupts(); |
Monitor* monitor = new Monitor(); |
monitor->Enter(); |
monitor->Exit(); |