summaryrefslogtreecommitdiff
path: root/runtime/class_linker.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2018-11-20 10:03:13 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2018-11-21 11:09:49 +0000
commit7a2c7c2f7062d9fef21b72ff9c10ca8ef863eb8b (patch)
tree909d18e31d319313a0729019258418980c810d79 /runtime/class_linker.cc
parentc754cc8e1c2dbcb1331ec2bed3ea0787bdd2b5c3 (diff)
Refactor code around JIT creation.
- Create the JIT early on. - Have dedicated zygote spaces, that get assign after the fork. - Re-parse compiler options after fork to take into account customization of debug flags by the child. Currently, we only create the thread pool in the child, so the zygote isn't jitting yet. Bug: 119800099 Test: test.py, device boots Change-Id: I591ce933ebf54a67937ab1d05206534f55ef2f65
Diffstat (limited to 'runtime/class_linker.cc')
-rw-r--r--runtime/class_linker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc
index ce7dfaf8af..bcc05c7bca 100644
--- a/runtime/class_linker.cc
+++ b/runtime/class_linker.cc
@@ -3145,7 +3145,7 @@ bool ClassLinker::ShouldUseInterpreterEntrypoint(ArtMethod* method, const void*
return (jit == nullptr) || !jit->GetCodeCache()->ContainsPc(quick_code);
}
- if (runtime->IsNativeDebuggableZygoteOK()) {
+ if (runtime->IsNativeDebuggable()) {
DCHECK(runtime->UseJitCompilation() && runtime->GetJit()->JitAtFirstUse());
// If we are doing native debugging, ignore application's AOT code,
// since we want to JIT it (at first use) with extra stackmaps for native