Don't set resolution method's compiled code entry to the interpreter.
Change-Id: I7c25dad3176f67f7bd4c423676acca9fdd92dd41
diff --git a/src/class_linker.cc b/src/class_linker.cc
index 0fae424..0c5c9da 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -1048,7 +1048,9 @@
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());
+ }
}
}
}