RFR: 8364352: Some tests fail when using a limited number of pregenerated .jsa CDS archives
Matthias Baesken
mbaesken at openjdk.org
Wed Aug 20 07:17:43 UTC 2025
On Wed, 20 Aug 2025 02:06:38 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Currently the default JVM comes on most platforms with 4 jsa files (for coops and nocoops; with and without compressed object headers), but for some shipments the number of jsa could be reduced (see also Images.gmk) .
>> But not all tests can deal with this.
>> Namely
>>
>> test/hotspot/jtreg/runtime/CompressedOops/CompressedCPUSpecificClassSpaceReservation.java
>> test/hotspot/jtreg/runtime/cds/TestDefaultArchiveLoading.java
>> test/hotspot/jtreg/runtime/cds/appcds/loaderConstraints/DynamicLoaderConstraintsTest.java (custom-cl-zgc)
>>
>> were found to have issues.
>> There is already a requires `vm.cds.default.archive.available` that is used in similar tests and can be used in some of those cases too.
>
> test/hotspot/jtreg/runtime/CompressedOops/CompressedCPUSpecificClassSpaceReservation.java line 31:
>
>> 29: * @requires vm.flagless
>> 30: * @requires vm.cds
>> 31: * @requires vm.cds.default.archive.available
>
> Does the notion of "default.archive" change depending on whether the VM is executing in COOPs/NoCOOPS or COH/NoCOH modes?
That's the coding
https://github.com/openjdk/jdk/blob/320235ccb88b4b554cd5756b7e6a34ce97aabd53/test/jtreg-ext/requires/VMProps.java#L438
So it ALWAYS looks at classes,jsa .
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26820#discussion_r2287215741
More information about the hotspot-runtime-dev
mailing list