diff options
| -rw-r--r-- | runtime/startup_completed_task.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/startup_completed_task.cc b/runtime/startup_completed_task.cc index b82ab57860..649124e700 100644 --- a/runtime/startup_completed_task.cc +++ b/runtime/startup_completed_task.cc @@ -66,8 +66,10 @@ void StartupCompletedTask::Run(Thread* self) { return; } - // Maybe generate a runtime app image. - { + // Maybe generate a runtime app image. If the runtime is debuggable, boot + // classpath classes can be dynamically changed, so don't bother generating an + // image. + if (!runtime->IsJavaDebuggable()) { std::string compiler_filter; std::string compilation_reason; runtime->GetAppInfo()->GetPrimaryApkOptimizationStatus(&compiler_filter, &compilation_reason); |