RFR: 8366029: Do not add -XX:VerifyArchivedFields by default to CDS tests
Ioi Lam
iklam at openjdk.org
Sun Aug 24 04:43:13 UTC 2025
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%.
-------------
Commit messages:
- 8366029: Do not add -XX:VerifyArchivedFields by default to CDS tests
Changes: https://git.openjdk.org/jdk/pull/26915/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26915&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8366029
Stats: 9 lines in 4 files changed: 2 ins; 6 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/26915.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26915/head:pull/26915
PR: https://git.openjdk.org/jdk/pull/26915
More information about the hotspot-runtime-dev
mailing list