RFR: 8364352: Some tests fail when using a limited number of pregenerated .jsa CDS archives

Matthias Baesken mbaesken at openjdk.org
Tue Aug 26 13:44:37 UTC 2025


On Tue, 26 Aug 2025 06:11:42 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

>> The error is strange
>> 
>> [0.002s][error][cds] Specified shared archive file not found (/jtreg_hotspot_tier2_work/JTwork/scratch/2/appcds-06h49m10s700.jsa)
>> 
>> This is not the default archive file it cannot find. This is the generated one, no?
>
> Does the test succeed if you generate all archive files?

If I regenerate the needed archive  (the custom-cl-zgc test needs classes_nocoops.jsa, I think because of ZGC)  by calling  `java -Xshare:dump -XX:-UseCompressedOops`  the test works nicely.
So adding  `vm.cds.default.archive.available`  is not really accurate because we miss the other archive.  It just works because in my test JVM we have BOTH the default archive classes.jsa and the classes_nocoops.jsa  removed.
Maybe we should have `vm.cds.nocoops.archive.available`  additionally to make clear what is really missing .
And probably better failure messages showing what's missing  would not hurt too, but I have a separate JBS issue for this.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26820#discussion_r2301044351


More information about the hotspot-runtime-dev mailing list