Skip to content

Commit

Permalink
Disable shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso committed Sep 16, 2015
1 parent 4065107 commit a580baf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/bin/process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace bin {

// Global flag that is used to indicate that the VM should do a clean
// shutdown.
bool do_vm_shutdown = true;
bool do_vm_shutdown = false;

static const int kProcessIdNativeField = 0;

Expand Down
2 changes: 1 addition & 1 deletion runtime/vm/dart.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ DECLARE_FLAG(bool, trace_isolates);
DECLARE_FLAG(bool, trace_time_all);
DEFINE_FLAG(bool, keep_code, false,
"Keep deoptimized code for profiling.");
DEFINE_FLAG(bool, shutdown, true, "Do a clean shutdown of the VM");
DEFINE_FLAG(bool, shutdown, false, "Do a clean shutdown of the VM");

Isolate* Dart::vm_isolate_ = NULL;
ThreadPool* Dart::thread_pool_ = NULL;
Expand Down
5 changes: 5 additions & 0 deletions runtime/vm/service_isolate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

namespace dart {

DECLARE_FLAG(bool, shutdown);

#define Z (T->zone())


Expand Down Expand Up @@ -763,6 +765,9 @@ void ServiceIsolate::Run() {


void ServiceIsolate::KillServiceIsolate() {
if (!FLAG_shutdown) {
return;
}
{
MonitorLocker ml(monitor_);
shutting_down_ = true;
Expand Down

0 comments on commit a580baf

Please sign in to comment.