RFR: 8367366: Do not support -XX:+AOTClassLinking for dynamic CDS archive [v2]
Vladimir Kozlov
kvn at openjdk.org
Tue Sep 16 00:34:10 UTC 2025
On Mon, 15 Sep 2025 04:13:32 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> Support of `-XX:+AOTClassLinking` for dynamic CDS archive is not an documented feature of [JEP 483](https://openjdk.org/jeps/483). It has very small performance benefit and complicates the development of future AOT optimizations.
>>
>> After this PR, `-XX:+AOTClassLinking` will have no effect when creating a dynamic CDS archive.
>
> Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:
>
> @ashu-mehra comment -- print warning if -XX:+AOTClassLinking is enabled for dynamic dump
src/hotspot/share/cds/cdsConfig.cpp line 762:
> 760: log_warning(cds)("AOTClassLinking is not supported for dynamic CDS archive");
> 761: FLAG_SET_ERGO(AOTClassLinking, false);
> 762: }
Can you do it in `CDSConfig::check_vm_args_consistency()` instead, where `AOTClassLinking` is set ergonomically?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27242#discussion_r2350387479
More information about the hotspot-dev
mailing list