JDK-8273547 : [11u] [JVMCI] Partial module-info.java backport of JDK-8223332
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11.0.12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2021-09-09
  • Updated: 2021-11-03
  • Resolved: 2021-09-10
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
11.0.14 b01Fixed
Related Reports
Relates :  
Description
JDK-8223332 updated JVMCI in jdk head (JDK 13 timeframe). That rather large patch includes some module-info.java updates for the jdk.internal.vm.ci module so as to export the 'code' package to the jdk.internal.vm.compiler module.

This module export is needed for using native-image (the binary over the launcher script) of Graal VM with OpenJDK 11.

See also: https://github.com/graalvm/mandrel/issues/234

Rather than backporting the large patch of  JDK-8223332 to a stable updates release I propose to only backport the module-info.java changes so as to reduce risk.
Comments
Changeset: bfb52f28 Author: Severin Gehwolf <sgehwolf@openjdk.org> Date: 2021-09-10 13:38:30 +0000 URL: https://git.openjdk.java.net/jdk11u/commit/bfb52f28c8ceaa199de5b06d23e60376038f3420
03-11-2021

Changeset: bfb52f28 Author: Severin Gehwolf <sgehwolf@openjdk.org> Date: 2021-09-10 13:38:30 +0000 URL: https://git.openjdk.java.net/jdk11u-dev/commit/bfb52f28c8ceaa199de5b06d23e60376038f3420
10-09-2021

Fix Request (OpenJDK 11u): Please approve this tiny module-info.java change which allows for running mandrel's native-image in native mode. For that the extra export to the jdk.internal.vm.compiler module are needed. Change should be low risk, JVMCI-only change. Tested with jvmci tests, bootstrap test and manual reproducer from mandrel. Patch has been reviewed by Christoph Langer. RFR: https://git.openjdk.java.net/jdk11u-dev/pull/318
10-09-2021