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.
- links to
-
Review(master) openjdk/jdk/27908