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

Unified Diff: runtime/vm/service_isolate.cc

Issue 1350713004: Disable shutdown (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: check shutdown flag in service isolate Created 5 years, 3 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 | « runtime/vm/dart.cc ('k') | 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 29a71ceb249ce7e4c8d81c52edfad7f05c53343e..39e457c8920de3ae00b58f93a1fd2949d9bc732a 100644
--- a/runtime/vm/service_isolate.cc
+++ b/runtime/vm/service_isolate.cc
@@ -22,6 +22,8 @@
namespace dart {
+DECLARE_FLAG(bool, shutdown);
+
#define Z (T->zone())
@@ -763,6 +765,9 @@ void ServiceIsolate::Run() {
void ServiceIsolate::KillServiceIsolate() {
+ if (!FLAG_shutdown) {
+ return;
+ }
{
MonitorLocker ml(monitor_);
shutting_down_ = true;
« no previous file with comments | « runtime/vm/dart.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698