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

Vladimir Kozlov kvn at openjdk.org
Sun Aug 24 15:30:49 UTC 2025


On Sun, 24 Aug 2025 04:38:16 GMT, Ioi Lam <iklam 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.

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

Marked as reviewed by kvn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26915#pullrequestreview-3149416060


More information about the hotspot-runtime-dev mailing list