Skip to content

Commit 8e4240c

Browse files
committedAug 24, 2023
8314850: SharedRuntime::handle_wrong_method() gets called too often when resolving Continuation.enter
Reviewed-by: rpressler, aph
1 parent d9fc6b6 commit 8e4240c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/hotspot/share/runtime/sharedRuntime.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,8 @@ methodHandle SharedRuntime::reresolve_call_site(TRAPS) {
18721872
// nmethod could be deoptimized by the time we get here
18731873
// so no update to the caller is needed.
18741874

1875-
if (caller.is_compiled_frame() && !caller.is_deoptimized_frame()) {
1875+
if ((caller.is_compiled_frame() && !caller.is_deoptimized_frame()) ||
1876+
(caller.is_native_frame() && ((CompiledMethod*)caller.cb())->method()->is_continuation_enter_intrinsic())) {
18761877

18771878
address pc = caller.pc();
18781879

0 commit comments

Comments
 (0)
Please sign in to comment.