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

Unified Diff: runtime/vm/service/running_isolates.dart

Issue 125103004: Move service into VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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/vm/service/running_isolates.dart
diff --git a/runtime/bin/vmservice/running_isolates.dart b/runtime/vm/service/running_isolates.dart
similarity index 93%
rename from runtime/bin/vmservice/running_isolates.dart
rename to runtime/vm/service/running_isolates.dart
index db93d089c5d0354599a758d067fa0d1e03bad7ba..e8e00449a4002adecb18a02fb07a529e76857899 100644
--- a/runtime/bin/vmservice/running_isolates.dart
+++ b/runtime/vm/service/running_isolates.dart
@@ -10,16 +10,13 @@ class RunningIsolates implements MessageRouter {
RunningIsolates();
void isolateStartup(int portId, SendPort sp, String name) {
- if (isolates[portId] != null) {
- throw new StateError('Duplicate isolate startup.');
- }
var ri = new RunningIsolate(portId, sp, name);
isolates[portId] = ri;
}
void isolateShutdown(int portId, SendPort sp) {
if (isolates[portId] == null) {
- throw new StateError('Unknown isolate.');
+ return;
}
isolates.remove(portId);
}

Powered by Google App Engine
This is Rietveld 408576698