| Index: runtime/lib/vmservice.cc
|
| diff --git a/runtime/lib/vmservice.cc b/runtime/lib/vmservice.cc
|
| index 5b6af4f707ce598da661873e44ac8f1b94610d15..bdd1a0a8f4c2674effbd3e22168ac2fee330b9a5 100644
|
| --- a/runtime/lib/vmservice.cc
|
| +++ b/runtime/lib/vmservice.cc
|
| @@ -124,15 +124,15 @@ DEFINE_NATIVE_ENTRY(VMService_SendObjectRootServiceMessage, 1) {
|
|
|
|
|
| DEFINE_NATIVE_ENTRY(VMService_OnStart, 0) {
|
| +#ifndef PRODUCT
|
| + if (!FLAG_support_service) {
|
| + return Object::null();
|
| + }
|
| if (FLAG_trace_service) {
|
| OS::Print("vm-service: Booting dart:vmservice library.\n");
|
| }
|
| // Boot the dart:vmservice library.
|
| ServiceIsolate::BootVmServiceLibrary();
|
| - if (!FLAG_support_service) {
|
| - return Object::null();
|
| - }
|
| -#ifndef PRODUCT
|
| // Register running isolates with service.
|
| RegisterRunningIsolatesVisitor register_isolates(thread);
|
| if (FLAG_trace_service) {
|
|
|