Disable shutdown

BUG=

Review URL: https://codereview.chromium.org//1350713004 .
This commit is contained in:
Zachary Anderson
2015-09-16 15:51:10 -07:00
parent 4065107086
commit a580bafc5d
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;
+5
View File
@@ -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;