Integrated: 8354083: Support --add-reads with -XX:+AOTClassLinking
Calvin Cheung
ccheung at openjdk.org
Thu May 15 21:17:04 UTC 2025
On Thu, 8 May 2025 00:19:17 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:
> This fix adds the `--add-reads` support for CDS and AOTClassLinking.
> Before the fix, if the `--add-reads` is specified during CDS archive dumping, the user will see the following log if `-Xlog:cds=info` is enabled:
> `[0.000s][info][cds] optimized module handling: disabled due to incompatible property: jdk.module.addreads=com.norequires=org.astro`
> During runtime, the archived full module graph will be disabled:
> `[0.021s][info][cds ] full module graph: disabled`
>
> With the fix, the optimized module handling won't be disabled during dump time and the full module graph will be enabled during runtime provided the same --add-reads option is specified during dump time and runtime.
>
> Testing: tiers 1 - 4.
This pull request has now been integrated.
Changeset: efdbb6af
Author: Calvin Cheung <ccheung at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/efdbb6afce4116140c066641128264ab42697912
Stats: 723 lines in 9 files changed: 443 ins; 277 del; 3 mod
8354083: Support --add-reads with -XX:+AOTClassLinking
Reviewed-by: iklam, alanb
-------------
PR: https://git.openjdk.org/jdk/pull/25109
More information about the hotspot-runtime-dev
mailing list