RFR: 8370251: C2: Inlining checks for method handle intrinsics are too strict
Vladimir Ivanov
vlivanov at openjdk.org
Mon Oct 20 21:08:17 UTC 2025
C2 performs access checks during inlining attempts through method handle
intrinsic calls. But there are no such checks happening at runtime when
executing the calls. (Access checks are performed when corresponding method
handle is resolved.) So, inlining may fail due to access checks failure while
the call always succeeds at runtime.
The fix is to skip access checks when inlining through method handle intrinsics.
Testing: hs-tier1 - hs-tier4
-------------
Commit messages:
- fix
Changes: https://git.openjdk.org/jdk/pull/27908/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27908&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8370251
Stats: 137 lines in 2 files changed: 94 ins; 11 del; 32 mod
Patch: https://git.openjdk.org/jdk/pull/27908.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27908/head:pull/27908
PR: https://git.openjdk.org/jdk/pull/27908
More information about the hotspot-compiler-dev
mailing list