Disable shutdown
BUG= Review URL: https://codereview.chromium.org//1350713004 .
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user