RFR: 8367366: Do not support -XX:+AOTClassLinking for dynamic CDS archive

Ioi Lam iklam at openjdk.org
Mon Sep 15 04:14:39 UTC 2025


On Fri, 12 Sep 2025 15:13:35 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

> This looks good. Just wondering if we should report any message if `-XX:+AOTClassLinking` is specified when creating a dynamic archive? I think this patch silently ignores it.

I added a warning message as `-XX:+AOTClassLinking` makes a semantic differences -- classes in the archive will be unconditionally loaded at VM start-up, so I think it's a good idea to tell the user that the flag is ignored for dynamic dumps.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27242#issuecomment-3290426302


More information about the hotspot-dev mailing list