Return early after initializing non-invokable methods
This fixes a bug introduced in
https://android-review.googlesource.com/c/platform/art/+/2216463
where we forgot to return after handling non-invokable methods.
We shouldn't fallback since it could initialize it with something other
than interpreter bridge.
Test: art/testrunner.py -t 1938 --trace
Change-Id: I2b453e856657b6cb3609492492d3ee48d88d63ca
diff --git a/runtime/instrumentation.cc b/runtime/instrumentation.cc
index 6c6ecb7..aac0f6f 100644
--- a/runtime/instrumentation.cc
+++ b/runtime/instrumentation.cc
@@ -361,6 +361,7 @@
Runtime::Current()->GetClassLinker()->IsQuickToInterpreterBridge(
method->GetEntryPointFromQuickCompiledCode()));
UpdateEntryPoints(method, GetQuickToInterpreterBridge());
+ return;
}
// Use instrumentation entrypoints if instrumentation is installed.