summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.cc
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2017-07-27 16:51:35 +0100
committerVladimir Marko <vmarko@google.com>2017-07-27 16:56:42 +0100
commitfbfc3945c1877cfb97ebd217ccceb98abc4bc441 (patch)
tree19259839bdeec7d62f8cb9724ddfad493545854c /compiler/common_compiler_test.cc
parentae616fa0e828cd6cbbae53edf3cf14338ad49dd9 (diff)
Remove ClassLinker::SetEntryPointsToCompiledCode().
This function was used only for tests and it was essentially just calling ArtMethod::SetEntryPointFromQuickCompiledCode() in a very obscure way and required the memory before the code pointer to contain a non-zero code size. This is a follow-up to https://android-review.googlesource.com/445648 that removed a problematic use of the function, calling it with a pointer to an entrypoint instead of a pointer to compiled managed code, i.e. without the pre-header that should contain the non-zero code size. Test: m test-art-host-gtest Change-Id: I483450832443ea0589eb41c74491384bcd5d6ab8
Diffstat (limited to 'compiler/common_compiler_test.cc')
-rw-r--r--compiler/common_compiler_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/common_compiler_test.cc b/compiler/common_compiler_test.cc
index a9a718f43c..0d38620b1a 100644
--- a/compiler/common_compiler_test.cc
+++ b/compiler/common_compiler_test.cc
@@ -95,7 +95,7 @@ void CommonCompilerTest::MakeExecutable(ArtMethod* method) {
const void* method_code = CompiledMethod::CodePointer(code_ptr,
compiled_method->GetInstructionSet());
LOG(INFO) << "MakeExecutable " << method->PrettyMethod() << " code=" << method_code;
- class_linker_->SetEntryPointsToCompiledCode(method, method_code);
+ method->SetEntryPointFromQuickCompiledCode(method_code);
} else {
// No code? You must mean to go into the interpreter.
// Or the generic JNI...