RFR: 8330280: SharedRuntime::get_resolved_entry should not return c2i entry if the callee is special native intrinsic

Patricio Chilano Mateo pchilanomate at openjdk.org
Tue Apr 16 14:25:41 UTC 2024


On Tue, 16 Apr 2024 12:35:42 GMT, Yudi Zheng <yzheng at openjdk.org> wrote:

> In https://github.com/openjdk/jdk/pull/18741 we return c2i entry for threads with interp_only_mode. This can be problematic for method handle intrinsics and continuation intrinsics, which cannot be interpreted. Consequently, we will cascade the c2i entry with an i2c entry and fail the runtime. The solution is to not return c2i entry under such circumstance.

Looks good to me, thanks Yudi.

-------------

Marked as reviewed by pchilanomate (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/18799#pullrequestreview-2003807531


More information about the hotspot-dev mailing list