JDK-8310108 : Skip ReplaceCriticalClassesForSubgraphs when EnableJVMCI is specified
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-06-15
  • Updated: 2024-05-31
  • Resolved: 2023-07-13
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 17 JDK 21 JDK 22
17.0.13-oracleFixed 21.0.5-oracleFixed 22 b07Fixed
Related Reports
Relates :  
Description
With EnableJVMCI it appends the jdk.internal.vm.ci module and thus disables optimized module handling and full module graph. See 

https://github.com/openjdk/jdk/blob/master/src/hotspot/share/runtime/arguments.cpp#L1880-L1890
https://github.com/openjdk/jdk/blob/4d4706967d44b6908406818bb135f94130f373a0/src/hotspot/share/runtime/arguments.cpp#L1256-L1260
https://github.com/openjdk/jdk/blob/4d4706967d44b6908406818bb135f94130f373a0/src/hotspot/share/cds/metaspaceShared.cpp#L1531
https://github.com/openjdk/jdk/blob/4d4706967d44b6908406818bb135f94130f373a0/src/hotspot/share/cds/heapShared.cpp#L976-L981

This fails ReplaceCriticalClassesForSubgraphs.

[0.001s][info][cds] optimized module handling: disabled due to incompatible property: jdk.module.addmods.0=jdk.internal.vm.ci
...
[0.022s][info][cds] optimized module handling: disabled
[0.022s][info][cds] full module graph: disabled
...
[0.033s][info][cds,heap  ] subgraph jdk.internal.module.ArchivedBootLayer cannot be used because full module graph is disabled

Comments
Fix request [17u] I backport this for parity with 17.0.13-oracle. No risk, only tests change. Clean backport. Test pass. SAP nightly testing passed.
29-05-2024

Fix request [21u] I backport this for parity with 21.0.5-oracle. No risk, only a test change. Clean backport. Test pass. SAP nightly testing passed.
29-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2502 Date: 2024-05-28 08:31:59 +0000
28-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/607 Date: 2024-05-28 08:31:53 +0000
28-05-2024

Changeset: 1b0dd7c2 Author: Yudi Zheng <yzheng@openjdk.org> Committer: Doug Simon <dnsimon@openjdk.org> Date: 2023-07-13 07:20:18 +0000 URL: https://git.openjdk.org/jdk/commit/1b0dd7c254dc1a087874c8726d8d26b9a41d4145
13-07-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/14485 Date: 2023-06-15 07:15:16 +0000
15-06-2023