Index: runtime/bin/main.cc |
=================================================================== |
--- runtime/bin/main.cc (revision 20945) |
+++ runtime/bin/main.cc (working copy) |
@@ -478,6 +478,18 @@ |
Dart_ShutdownIsolate(); |
return false; |
} |
+ |
+ // Make the isolate runnable so that it is ready to handle messages. |
+ Dart_ExitIsolate(); |
Ivan Posva
2013/04/05 15:51:59
If this method was changed to return the isolate i
siva
2013/04/05 17:43:29
Done.
|
+ bool retval = Dart_MakeIsolateRunnable(isolate); |
+ Dart_EnterIsolate(isolate); |
+ if (!retval) { |
+ *error = strdup("Invalid isolate state - Unable to make it runnable"); |
+ Dart_ExitScope(); |
+ Dart_ShutdownIsolate(); |
+ return false; |
+ } |
+ |
Dart_ExitScope(); |
VmStats::AddIsolate(reinterpret_cast<IsolateData*>(data), isolate); |
return true; |