diff options
Diffstat (limited to 'runtime/runtime.cc')
| -rw-r--r-- | runtime/runtime.cc | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 8a38f3af9b..630d101653 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -554,19 +554,6 @@ bool Runtime::Start() { started_ = true; - // Use !IsAotCompiler so that we get test coverage, tests are never the zygote. - if (!IsAotCompiler()) { - ScopedObjectAccess soa(self); - { - ScopedTrace trace2("AddImageStringsToTable"); - GetInternTable()->AddImagesStringsToTable(heap_->GetBootImageSpaces()); - } - { - ScopedTrace trace2("MoveImageClassesToClassTable"); - GetClassLinker()->AddBootImageClassesToClassTable(); - } - } - if (jit_options_->UseJIT()) { std::string error_msg; if (!IsZygote()) { @@ -1140,6 +1127,14 @@ bool Runtime::Init(RuntimeArgumentMap&& runtime_options_in) { } boot_class_path_string_ = Join(dex_locations, ':'); } + { + ScopedTrace trace2("AddImageStringsToTable"); + GetInternTable()->AddImagesStringsToTable(heap_->GetBootImageSpaces()); + } + { + ScopedTrace trace2("MoveImageClassesToClassTable"); + GetClassLinker()->AddBootImageClassesToClassTable(); + } } else { std::vector<std::string> dex_filenames; Split(boot_class_path_string_, ':', &dex_filenames); |