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

Unified Diff: runtime/observatory/lib/src/service/object.dart

Issue 1390343002: Reload an isolate once it is runnable. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/service/object.dart
diff --git a/runtime/observatory/lib/src/service/object.dart b/runtime/observatory/lib/src/service/object.dart
index d38933fe6d2d99d83a0aaac84971a9b7ed2c2e6c..a3f962e3af5bfc04b3cc0f1aa9cea6fe2be214e7 100644
--- a/runtime/observatory/lib/src/service/object.dart
+++ b/runtime/observatory/lib/src/service/object.dart
@@ -674,6 +674,11 @@ abstract class VM extends ServiceObjectOwner {
_isolateCache.remove(isolate.id);
_buildIsolateList();
}
+ if (event.kind == ServiceEvent.kIsolateRunnable) {
+ // Force reload once the isolate becomes runnable so that we
+ // update the root library.
+ isolate.reload();
+ }
}
var eventStream = _eventStreams[streamId];
if (eventStream != null) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698