RFR: 8316969: Improve CDS module graph support for --module option [v9]
Ioi Lam
iklam at openjdk.org
Thu Nov 2 03:36:08 UTC 2023
On Thu, 2 Nov 2023 02:48:34 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:
>> Please review this changeset for adding support for `--module` (-m) option for CDS.
>> Changes in the `ModuleBootstrap.java` are needed so that the `ArchivedModuleGraph.archive` and `ArchivedBootLayer.archive` are called if the main module is specified. The module name will be stored in the ro region of the CDS archive. During runtime, the archived module name will be compared with the runtime module name. If comparison fails, the archived full module graph won't be used.
>>
>> Note: this RFE is a subtask of [JDK-8266329](https://bugs.openjdk.org/browse/JDK-8266329). More subtask(s) will be created to support other options such as `--add-modules`.
>>
>> Passed tiers 1 - 4 testing.
>
> Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:
>
> cleanup suggested by Ioi
The latest changes look good.
-------------
Marked as reviewed by iklam (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/16016#pullrequestreview-1709394704
More information about the core-libs-dev
mailing list