| Index: runtime/vm/thread_test.cc
|
| diff --git a/runtime/vm/thread_test.cc b/runtime/vm/thread_test.cc
|
| index d1db1d33b980143a632e046bf40238b931218654..37d0c0ea04b85bb8fae19420b95cc9c321b0618a 100644
|
| --- a/runtime/vm/thread_test.cc
|
| +++ b/runtime/vm/thread_test.cc
|
| @@ -38,9 +38,10 @@ UNIT_TEST_CASE(Monitor) {
|
| // This unit test case needs a running isolate.
|
| Dart_CreateIsolate(
|
| NULL, NULL, bin::isolate_snapshot_buffer, NULL, NULL, NULL);
|
| - Isolate* isolate = Isolate::Current();
|
| + Thread* thread = Thread::Current();
|
| + Isolate* isolate = thread->isolate();
|
| // Thread interrupter interferes with this test, disable interrupts.
|
| - isolate->set_thread_state(NULL);
|
| + thread->set_thread_state(NULL);
|
| Profiler::EndExecution(isolate);
|
| Monitor* monitor = new Monitor();
|
| monitor->Enter();
|
|
|