Index: runtime/vm/dart.cc |
=================================================================== |
--- runtime/vm/dart.cc (revision 44762) |
+++ runtime/vm/dart.cc (working copy) |
@@ -146,7 +146,7 @@ |
Dart_EnterScope(); |
Api::InitHandles(); |
- Isolate::SetCurrent(NULL); // Unregister the VM isolate from this thread. |
+ Thread::ExitIsolate(); // Unregister the VM isolate from this thread. |
Isolate::SetCreateCallback(create); |
Isolate::SetInterruptCallback(interrupt); |
Isolate::SetUnhandledExceptionCallback(unhandled); |
@@ -175,7 +175,7 @@ |
thread_pool_ = NULL; |
// Set the VM isolate as current isolate. |
- Isolate::SetCurrent(vm_isolate_); |
+ Thread::EnterIsolate(vm_isolate_); |
// There is a planned and known asymmetry here: We exit one scope for the VM |
// isolate to account for the scope that was entered in Dart_InitOnce. |