RFR: 8330647: Two CDS tests fail with -UseCompressedOops and UseSerialGC/UseParallelGC

Calvin Cheung ccheung at openjdk.org
Thu May 16 22:07:26 UTC 2024


The following two tests contain `@requires vm.cds.write.archived.java.heap` which implies `UseG1GC && UseCompressedClassPointers`

cds/appcds/cacheObject/ArchiveHeapTestClass.java
cds/serviceability/ReplaceCriticalClassesForSubgraphs.java

The tests would fail if options conflicting with `vm.cds.write.archived.java.heap` are specified via the ` -Dtest.cds.runtime.options` property because the options would be added after the `@require` check.

A fix is to check if the ` -Dtest.cds.runtime.options` property contains non-null value and throws a `SkippedException`.

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

Commit messages:
 - check the test.cds.runtime.options property
 - 8330647: Two CDS tests fail with -UseCompressedOops and UseSerialGC/UseParallelGC

Changes: https://git.openjdk.org/jdk/pull/19274/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19274&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8330647
  Stats: 12 lines in 2 files changed: 12 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/19274.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19274/head:pull/19274

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


More information about the hotspot-runtime-dev mailing list