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

Unified Diff: runtime/bin/vmservice/vmservice.dart

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
Index: runtime/bin/vmservice/vmservice.dart
diff --git a/runtime/bin/vmservice/vmservice.dart b/runtime/bin/vmservice/vmservice.dart
index ad6613fd72d8f17e46531622604d9a982ae49632..a9790f1ffe0f72bba8f04682c2a0bf4ff7b3c030 100644
--- a/runtime/bin/vmservice/vmservice.dart
+++ b/runtime/bin/vmservice/vmservice.dart
@@ -21,10 +21,10 @@ class VMService {
static VMService _instance;
RunningIsolates runningIsolates = new RunningIsolates();
- void controlMessageHandler(int code, SendPort sp) {
+ void controlMessageHandler(int code, SendPort sp, String name) {
switch (code) {
case Constants.ISOLATE_STARTUP_MESSAGE_ID:
- runningIsolates.isolateStartup(sp);
+ runningIsolates.isolateStartup(sp, name);
break;
case Constants.ISOLATE_SHUTDOWN_MESSAGE_ID:
runningIsolates.isolateShutdown(sp);
@@ -33,8 +33,8 @@ class VMService {
}
void messageHandler(message, SendPort replyTo) {
- if (message is List && message.length == 2) {
- controlMessageHandler(message[0], message[1]);
+ if (message is List && message.length == 3) {
+ controlMessageHandler(message[0], message[1], message[2]);
}
}

Powered by Google App Engine
This is Rietveld 408576698