summaryrefslogtreecommitdiff
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2016-03-30 14:01:24 +0000
committer android-build-merger <android-build-merger@google.com> 2016-03-30 14:01:24 +0000
commit0b92b73c62ab4cc13ca040d4233fa69d182971cc (patch)
treedf7d6180b13430de8f255884b12f29f191d1468e /runtime/runtime.cc
parent01098af7a530ca65dcf5a40b3799c5147e49bd64 (diff)
parent085055f933d76579c32586488951a4497ffcf10e (diff)
Merge "Optimizing: Improve const-string code generation."
am: 085055f * commit '085055f933d76579c32586488951a4497ffcf10e': Optimizing: Improve const-string code generation. Change-Id: Idd5a215e18abba1e2161f1848cb08aefb4719cf0
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc21
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);