summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/instrumentation.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/instrumentation.cc b/src/instrumentation.cc
index f36cb8cd7c..8598d6d4f8 100644
--- a/src/instrumentation.cc
+++ b/src/instrumentation.cc
@@ -384,7 +384,8 @@ const void* Instrumentation::GetQuickCodeFor(const mirror::AbstractMethod* metho
if (LIKELY(!instrumentation_stubs_installed_)) {
const void* code = method->GetEntryPointFromCompiledCode();
DCHECK(code != NULL);
- if (LIKELY(code != GetResolutionTrampoline(runtime->GetClassLinker()))) {
+ if (LIKELY(code != GetResolutionTrampoline(runtime->GetClassLinker()) &&
+ code != GetInterpreterEntryPoint())) {
return code;
}
}