Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(892)

Unified Diff: runtime/bin/main.cc

Issue 22607005: Remove race(s) in vmservice tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/vmservice/running_isolate.dart » ('j') | runtime/vm/dart_api_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
diff --git a/runtime/bin/main.cc b/runtime/bin/main.cc
index b1d60ee88fe2f04621cb4e1c6daf5781dbc152e8..6ff7113c4d381e3be21739f1310583acfe197a7d 100644
--- a/runtime/bin/main.cc
+++ b/runtime/bin/main.cc
@@ -500,8 +500,6 @@ static Dart_Isolate CreateIsolateAndSetupHelper(const char* script_uri,
return NULL;
}
- VmService::SendIsolateStartupMessage(Dart_GetMainPortId());
-
// Make the isolate runnable so that it is ready to handle messages.
Dart_ExitScope();
Dart_ExitIsolate();
@@ -513,6 +511,16 @@ static Dart_Isolate CreateIsolateAndSetupHelper(const char* script_uri,
return NULL;
}
+ Dart_EnterIsolate(isolate);
Ivan Posva 2013/08/07 23:33:38 You cannot enter the isolate after having made it
Cutch 2013/08/08 14:26:39 Done.
+ Dart_EnterScope();
+
+ Dart_Handle debug_name = Dart_DebugName();
+ CHECK_RESULT(debug_name);
+ VmService::SendIsolateStartupMessage(Dart_GetMainPortId(), debug_name);
+
+ Dart_ExitScope();
+ Dart_ExitIsolate();
+
return isolate;
}
« no previous file with comments | « no previous file | runtime/bin/vmservice/running_isolate.dart » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698