RFR: 8353597: Refactor handling VM options for AOT cache input and output [v3]

Ioi Lam iklam at openjdk.org
Tue Apr 8 16:29:21 UTC 2025


On Tue, 8 Apr 2025 15:57:46 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> src/hotspot/share/cds/cdsConfig.cpp line 598:
>> 
>>> 596:     // - SharedArchiveFile is not specified and the VM doesn't have a compatible default archive
>>> 597: 
>>> 598: #define __THEMSG " is unsupported when base CDS archive is not loaded. Run with -Xlog:cds for more info."
>> 
>> Do we want to start transitioning existing `-Xlog:cds` options to be `:aot` options?  I think making the switch would match out long term direction
>
> Yes, but I think we should do it only if `AOTClassLinking` is enabled. For legacy CDS we should continue use `-Xlog:cds`.
> I am using `-Xlog:aot+codecache`  in AOT code caching.

I created [JDK-8354055 - Change "cds" logging tag to "aot"](https://bugs.openjdk.org/browse/JDK-8354055). There are documentation/compatibility issues so we need to do some planning.

This particular block of code is moved from dynamicArchive.cpp to cdsConfig.cpp and I kept the logging tag the same.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24401#discussion_r2033582112


More information about the hotspot-runtime-dev mailing list