summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/class_linker.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/class_linker.cc b/src/class_linker.cc
index 0fae4248e9..0c5c9dad5e 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -1048,7 +1048,9 @@ void ClassLinker::InitFromImageCallback(mirror::Object* obj, void* arg) {
mirror::AbstractMethod* method = obj->AsMethod();
if (Runtime::Current()->GetInstrumentation()->InterpretOnly() && !method->IsNative()) {
method->SetEntryPointFromInterpreter(interpreter::artInterpreterToInterpreterEntry);
- method->SetEntryPointFromCompiledCode(GetInterpreterEntryPoint());
+ if (method != Runtime::Current()->GetResolutionMethod()) {
+ method->SetEntryPointFromCompiledCode(GetInterpreterEntryPoint());
+ }
}
}
}