JDK-8202698 : Update Graal for JEP 181 - Nest-based access control
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-05-07
  • Updated: 2018-07-06
  • Resolved: 2018-06-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 11 JDK 12
11 b20Fixed 12Fixed
Related Reports
Relates :  
Relates :  
Description
While the basic access control aspect of JEP-181 (being implemented under JDK-8010319) has no compiler specific parts, part of the change involves the use of invokeinterface, rather than invokespecial, for invoking private interface methods. This requires changes to the interpreter and compilers (C1 and C2 are already handled). In addition this use of invokeinterface requires extensions of the receiver typecheck logic that was put in place by JDK-8174962.

Graal will need to be updated to reflect these changes.
Comments
Webrev: http://cr.openjdk.java.net/~iveresov/8202698/webrev.01/
27-06-2018

I think we can lower priority here because the nestmates changes do not break Graal. However, Graal needs to emit a receiver type check and more changes might be required. ILW = Missing support for new features and type checks in compiler, special cases with Graal as JIT, use C2 = HLM = P3 Once this is fixed, we should remove PrivateInterfaceCall.java from the Graal problem list.
26-06-2018

Before JEP-181 was integrated I ran hs-tier5-graal tests and the only nestmate related failure (as expected) was for the new java/lang/invoke/PrivateInterfaceCall.java test, which has been added to ProblemList-graal.txt.
24-06-2018

Requesting JPG compiler team to take this bug since they know the relevant compiler changes required based on C1 and C2 changes already made.
12-06-2018

I think this should be a bug, converting. ILW = Missing support for new features and type checks in compiler, with Graal as JIT, use C2 = HMM = P2
12-06-2018

Graal likely also needs updates to account for JDK-8200167 as well.
07-05-2018