summaryrefslogtreecommitdiff
path: root/compiler/jit/jit_compiler.h
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 /compiler/jit/jit_compiler.h
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 'compiler/jit/jit_compiler.h')
-rw-r--r--compiler/jit/jit_compiler.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/jit/jit_compiler.h b/compiler/jit/jit_compiler.h
index 5840fece2e..d201611d79 100644
--- a/compiler/jit/jit_compiler.h
+++ b/compiler/jit/jit_compiler.h
@@ -43,10 +43,13 @@ class JitCompiler {
const CompilerOptions& GetCompilerOptions() const {
return *compiler_options_.get();
}
+
CompilerDriver* GetCompilerDriver() const {
return compiler_driver_.get();
}
+ void ParseCompilerOptions();
+
private:
std::unique_ptr<CompilerOptions> compiler_options_;
std::unique_ptr<CompilerDriver> compiler_driver_;
@@ -54,11 +57,6 @@ class JitCompiler {
JitCompiler();
- // This is in the compiler since the runtime doesn't have access to the compiled method
- // structures.
- bool AddToCodeCache(ArtMethod* method, const CompiledMethod* compiled_method)
- REQUIRES_SHARED(Locks::mutator_lock_);
-
DISALLOW_COPY_AND_ASSIGN(JitCompiler);
};