diff options
author | 2022-01-12 10:42:44 +0000 | |
---|---|---|
committer | 2022-01-13 15:41:49 +0000 | |
commit | 82e525a4f5f08a72ea1b6907c0a10dacb77a8a87 (patch) | |
tree | 1912cf2684ce1286d3dc1aebf7e042445799672e /runtime/common_runtime_test.cc | |
parent | 748cfeff436356f962ebaaa0743cfe44133a4baa (diff) |
Use InitializeMethodsCode when we need to reinitialize a method entrypoint.
To make sure we use the best available entrypoint in such situations.
Test: test.py
Change-Id: I255b708464d62d7f628f51a200af465303f92fba
Diffstat (limited to 'runtime/common_runtime_test.cc')
-rw-r--r-- | runtime/common_runtime_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc index f949759df2..6ff4f1a3f8 100644 --- a/runtime/common_runtime_test.cc +++ b/runtime/common_runtime_test.cc @@ -400,7 +400,7 @@ void CommonRuntimeTestImpl::SetUpRuntimeOptionsForFillHeap(RuntimeOptions *optio void CommonRuntimeTestImpl::MakeInterpreted(ObjPtr<mirror::Class> klass) { PointerSize pointer_size = class_linker_->GetImagePointerSize(); for (ArtMethod& method : klass->GetMethods(pointer_size)) { - class_linker_->SetEntryPointsToInterpreter(&method); + Runtime::Current()->GetInstrumentation()->InitializeMethodsCode(&method, /*aot_code=*/ nullptr); } } |