RFR: 8356595: Convert -Xlog:cds to -Xlog:aot (step1) [v4]
Johan Sjölen
jsjolen at openjdk.org
Thu May 15 07:33:57 UTC 2025
On Wed, 14 May 2025 07:18:37 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> src/hotspot/share/cds/aotLogging.hpp line 82:
>>
>>> 80: //
>>> 81: // [2] When using CDS archives
>>> 82: // - These logs can be selected ONLY with -Xlog:cds. They are always printed with [cds] decoration
>>
>> OK, so if I use `-Xlog:all`, what will they be selected as?
>
> `-Xlog:all` will enable all `LogTagSets`. Each `aot_log_xxx()` statement will print exactly one log. When using AOT caches, the log will be printed with `[aot]` decorations. When using CDS archives, the log will be printed with `[cds]` decorations.
Alright, I think we should simplify the comments a bit then. Just 'when using AOT cache, these logs are selected via the aot tag, and not the cds tag. When using CDS, these logs are selected via the cds tag, and not the aot tag.' but with the structure you had. The "ONLY with -Xlog:aot" makes it sound like `-Xlog:all` won't select cds or aot tags anymore.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25136#discussion_r2090483374
More information about the hotspot-dev
mailing list