summaryrefslogtreecommitdiff
path: root/runtime/quick_exception_handler.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2022-01-12 10:42:44 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2022-01-13 15:41:49 +0000
commit82e525a4f5f08a72ea1b6907c0a10dacb77a8a87 (patch)
tree1912cf2684ce1286d3dc1aebf7e042445799672e /runtime/quick_exception_handler.cc
parent748cfeff436356f962ebaaa0743cfe44133a4baa (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/quick_exception_handler.cc')
-rw-r--r--runtime/quick_exception_handler.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/quick_exception_handler.cc b/runtime/quick_exception_handler.cc
index ac5065b2a6..c3722484ca 100644
--- a/runtime/quick_exception_handler.cc
+++ b/runtime/quick_exception_handler.cc
@@ -606,9 +606,8 @@ void QuickExceptionHandler::DeoptimizeSingleFrame(DeoptimizationKind kind) {
Runtime::Current()->GetJit()->GetCodeCache()->InvalidateCompiledCodeFor(
deopt_method, visitor.GetSingleFrameDeoptQuickMethodHeader());
} else {
- // Transfer the code to interpreter.
- Runtime::Current()->GetInstrumentation()->UpdateMethodsCode(
- deopt_method, GetQuickToInterpreterBridge());
+ Runtime::Current()->GetInstrumentation()->InitializeMethodsCode(
+ deopt_method, /*aot_code=*/ nullptr);
}
PrepareForLongJumpToInvokeStubOrInterpreterBridge();