diff options
| author | 2023-06-26 13:19:37 +0000 | |
|---|---|---|
| committer | 2023-07-26 14:39:30 +0000 | |
| commit | 35cca3e296346277422aaee030edced697e09319 (patch) | |
| tree | 37b7bb0f6f8ac94baf716213b0dbd8232215a5a8 /compiler/jit/jit_compiler.cc | |
| parent | 9ca7be960a291da42b27e6ee94b362cef9688427 (diff) | |
Merge libart and libart-compiler into a single library
Rename old libart to libart-runtime.
Build libart-runtime and libart-compiler separately as static libraries.
This is required to support PGO (compiler) and AFDO (runtime) without
mixing them.
Combine libart-runtime and libart-compiler into libart with
whole-archive linking.
Remove JitLoadTest, since `jit_create` (previously `jit_load`) function
is guaranteed to exist in `libart`.
After this change libart-compiler will have access to all libart-runtime
symbols. This will allow to hide more symbols from libart-runtime.
ART APEX size before and after:
X86 : 29,748.00 KiB -> 29,648.00 KiB (-100.00 KiB, -0.34%)
X86_64: 49,148.00 KiB -> 48,928.00 KiB (-220.00 KiB, -0.45%)
Arm32 : 23,440.00 KiB -> 23,268.00 KiB (-172.00 KiB, -0.73%)
Arm64 : 44,472.00 KiB -> 43,884.00 KiB (-588.00 KiB, -1.32%)
Bug: 186902856
Test: art/test.py -b --host
Test: atest art_standalone_\*_tests
Test: art/tools/run-gtests.sh
Test: art/test/testrunner/testrunner.py --target
Test: art/tools/run-libcore-tests.sh --mode=device
Test: art/tools/run-libjdwp-tests.sh --mode=device
Test: m mts && mts-tradefed run commandAndExit mts-art
Test: m libart-compiler libartd-compiler libart-runtime libartd-runtime libart libartd
Test: art/build/apex/runtests.sh (no regressions)
Test: atest art-apex-update-rollback (no regressions)
Change-Id: I20bd2fcca26013963a48e933142c9f81883bdca4
Diffstat (limited to 'compiler/jit/jit_compiler.cc')
| -rw-r--r-- | compiler/jit/jit_compiler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/jit/jit_compiler.cc b/compiler/jit/jit_compiler.cc index e67236769e..86c0f80974 100644 --- a/compiler/jit/jit_compiler.cc +++ b/compiler/jit/jit_compiler.cc @@ -17,7 +17,6 @@ #include "jit_compiler.h" #include "android-base/stringprintf.h" - #include "arch/instruction_set.h" #include "arch/instruction_set_features.h" #include "art_method-inl.h" @@ -29,6 +28,7 @@ #include "compiler.h" #include "debug/elf_debug_writer.h" #include "driver/compiler_options.h" +#include "export/jit_create.h" #include "jit/debugger_interface.h" #include "jit/jit.h" #include "jit/jit_code_cache.h" @@ -125,7 +125,7 @@ void JitCompiler::ParseCompilerOptions() { } } -EXPORT extern "C" JitCompilerInterface* jit_load() { +JitCompilerInterface* jit_create() { VLOG(jit) << "Create jit compiler"; auto* const jit_compiler = JitCompiler::Create(); CHECK(jit_compiler != nullptr); |