summaryrefslogtreecommitdiff
path: root/compiler/jit/jit_compiler.cc
diff options
context:
space:
mode:
author Dmitrii Ishcheikin <ishcheikin@google.com> 2023-08-24 14:11:30 +0000
committer Dmitrii Ishcheikin <ishcheikin@google.com> 2023-10-17 07:22:13 +0000
commitb983874f2296c4d5a063d9e3d33f8a50fc865a09 (patch)
tree13a79de0af272ac1ae44f49c634e626716cc3114 /compiler/jit/jit_compiler.cc
parent7d6bd10f0a2c3fd0b81e33d1d61ca60a0ecaae11 (diff)
Revert^4 "Merge libart and libart-compiler into a single library"
This reverts commit 61b1c151163a09ad49c0b74c19ee84caeb4d0345. Reason for revert: reland with dex2oat PGO removed. Previous attempts at merging libart-compiler into libart showed some performance regressions, which were caused by incompatibilities between AFDO and PGO optimization pipelines when used within a single library. This change removes dex2oat PGO and leaves only AFDO for libart.so. Change-Id: I75a844f53663385ef98351f60d3adb900157f5e5 Bug: 303042202 Bug: 186902856 Test: art/test.py -b --host Test: atest art_standalone_\*_tests Test: art/build/apex/runtests.sh Test: atest art-apex-update-rollback Test: (chroot) art/tools/run-gtests.sh -j4 Test: (chroot) art/test/testrunner/testrunner.py --target Test: (chroot) art/tools/run-libcore-tests.sh --mode=device Test: (chroot) art/tools/run-libjdwp-tests.sh --mode=device
Diffstat (limited to 'compiler/jit/jit_compiler.cc')
-rw-r--r--compiler/jit/jit_compiler.cc4
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);