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

Unified Diff: runtime/vm/service_isolate.cc

Issue 1430783002: Fix Isolate scopes in service isolate shutdown (Closed) Base URL: https://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/vm/service_isolate.cc
diff --git a/runtime/vm/service_isolate.cc b/runtime/vm/service_isolate.cc
index a2156e45305ddfcf699b5be84d95b087b266114e..5bcd7cb6ee8ef80a9203ce3df36ab13f6cff4b2b 100644
--- a/runtime/vm/service_isolate.cc
+++ b/runtime/vm/service_isolate.cc
@@ -359,8 +359,10 @@ class RunServiceTask : public ThreadPool::Task {
OS::PrintErr("vm-service: Error: %s\n", error.ToErrorCString());
}
Dart::RunShutdownCallback();
-
+ }
+ {
// Shut the isolate down.
+ SwitchIsolateScope switch_scope(I);
Dart::ShutdownIsolate();
}
siva 2015/10/30 15:22:47 Can we switch this to: { ASSERT(Isolate::Curre
zra 2015/10/30 16:48:40 Discussed offline. It is also not possible to do S
if (FLAG_trace_service) {
« 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