Skip to content

Commit

Permalink
8330280: SharedRuntime::get_resolved_entry should not return c2i entr…
Browse files Browse the repository at this point in the history
…y if the callee is special native intrinsic

Reviewed-by: pchilanomate, dlong
  • Loading branch information
Yudi Zheng authored and Doug Simon committed Apr 17, 2024
1 parent 7744b00 commit 3ccbc6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/sharedRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ JRT_END
// return verified_code_entry if interp_only_mode is not set for the current thread;
// otherwise return c2i entry.
address SharedRuntime::get_resolved_entry(JavaThread* current, methodHandle callee_method) {
if (current->is_interp_only_mode()) {
if (current->is_interp_only_mode() && !callee_method->is_special_native_intrinsic()) {
// In interp_only_mode we need to go to the interpreted entry
// The c2i won't patch in this mode -- see fixup_callers_callsite
return callee_method->get_c2i_entry();
Expand Down

1 comment on commit 3ccbc6d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.