8314850: SharedRuntime::handle_wrong_method() gets called too often when resolving Continuation.enter

Reviewed-by: rpressler, aph
This commit is contained in:
Patricio Chilano Mateo 2023-08-24 18:08:16 +00:00
parent d9fc6b6933
commit 8e4240c316

@ -1872,7 +1872,8 @@ methodHandle SharedRuntime::reresolve_call_site(TRAPS) {
// nmethod could be deoptimized by the time we get here
// so no update to the caller is needed.
if (caller.is_compiled_frame() && !caller.is_deoptimized_frame()) {
if ((caller.is_compiled_frame() && !caller.is_deoptimized_frame()) ||
(caller.is_native_frame() && ((CompiledMethod*)caller.cb())->method()->is_continuation_enter_intrinsic())) {
address pc = caller.pc();