JDK-8370251 : C2: Inlining checks for method handle intrinsics are too strict
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-10-20
  • Updated: 2025-10-28
  • Resolved: 2025-10-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 masterFixed
Related Reports
Relates :  
Description
C2 performs access checks during inlining attempts through method handle intrinsic calls. But there are no access checks happening at runtime when performing such calls. (Access checks are performed when corresponding method handle is resolved.) So, inlining may fail due to access check failure while the call succeeds. 
Comments
Changeset: 583ff202 Branch: master Author: Vladimir Ivanov <vlivanov@openjdk.org> Date: 2025-10-27 16:15:10 +0000 URL: https://git.openjdk.org/jdk/commit/583ff202b1cc1f018d798a34d93359301840cf06
27-10-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/27908 Date: 2025-10-20 21:00:40 +0000
20-10-2025