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.
- relates to
-
JDK-8062280 C2: inlining failure due to access checks being too strict
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/583ff202
-
Review(master)
openjdk/jdk/27908