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

Ioi Lam iklam at openjdk.org
Mon Aug 25 04:03:56 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%.

This pull request has now been integrated.

Changeset: 15601b47
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/15601b4718ed26de6f57e633c4f41f6b0cd90cb0
Stats:     9 lines in 4 files changed: 2 ins; 6 del; 1 mod

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

Reviewed-by: kvn

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

PR: https://git.openjdk.org/jdk/pull/26915


More information about the hotspot-runtime-dev mailing list