Index: runtime/vm/thread_test.cc |
diff --git a/runtime/vm/thread_test.cc b/runtime/vm/thread_test.cc |
index 7eb5849d422f1c449aa65c8b91fa9a9767a5faba..9eaf79138cff317d4d6f5bcf017bab89e1c8da1e 100644 |
--- a/runtime/vm/thread_test.cc |
+++ b/runtime/vm/thread_test.cc |
@@ -39,8 +39,10 @@ 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->DisableThreadInterrupts(); |
+ thread->SetThreadInterrupter(NULL, NULL); |
+ Profiler::EndExecution(isolate); |
Monitor* monitor = new Monitor(); |
monitor->Enter(); |
monitor->Exit(); |