RFR: 8362566: Use -Xlog:aot+map to print contents of existing AOT cache [v5]

Ioi Lam iklam at openjdk.org
Fri Aug 22 04:09:40 UTC 2025


On Tue, 19 Aug 2025 23:53:13 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> Ioi Lam has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fixed crash with ZGC
>
> src/hotspot/share/cds/aotMapLogger.hpp line 54:
> 
>> 52: //
>> 53: // Because the output can be large, it's best to save it to a file
>> 54: //     java -XX:AOTCache=app.aot -Xlog:aot+map*=trace:file=aot.map:none:filesize=0 --version
> 
> why `filesize=0`?

The map file is very large and by default UL will break it up into multiple files, each 20MB. `filesize=0` suppresses this behavior and keeps the file in a single piece. I added comments about this.

> test/hotspot/jtreg/runtime/cds/CDSMapTest.java line 94:
> 
>> 92:         vmArgs.add("-Xlog:cds=debug");
>> 93:         vmArgs.add("-Xshare:on");
>> 94:         vmArgs.add("-Xlog:aot+map=debug,aot+map+oops=trace:file=" + mapName + ":none:filesize=0");
> 
> Looks like this test is intended for old CDS archive. Do you have test for new AOTCache workflow?

I added a new test case for the AOTCache workflow.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26514#discussion_r2292639592
PR Review Comment: https://git.openjdk.org/jdk/pull/26514#discussion_r2292639839


More information about the hotspot-dev mailing list