RFR: 8366029: Do not add -XX:VerifyArchivedFields by default to CDS tests

Ioi Lam iklam at openjdk.org
Mon Aug 25 04:03:55 UTC 2025


On Sun, 24 Aug 2025 15:27:45 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> The diagnostic flag `VerifyArchivedFields` verifies the heap multiple times during VM bootstrap. It's supposed to find problems when heap corruptions when loading the CDS archive.
>> 
>> We added this option to almost all CDS tests by default, but this is rather costly and has not found any bugs for quite a while now.
>> 
>> This PR removes `VerifyArchivedFields` from most of the CDS tests. There is still one test case that explicitly runs with this flag so we have some coverage already.
>> 
>> When running all the CDS tests, this RFE can reduce the elapsed time by about 10%.
>
> Good.

Thanks @vnkozlov for the review

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

PR Comment: https://git.openjdk.org/jdk/pull/26915#issuecomment-3218751658


More information about the hotspot-runtime-dev mailing list