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

Calvin Cheung ccheung at openjdk.org
Fri May 17 16:34:29 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`.

Calvin Cheung has updated the pull request incrementally with one additional commit since the last revision:

  check test.cds.runtime.options property in VMProps.java

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/19274/files
  - new: https://git.openjdk.org/jdk/pull/19274/files/51891a02..83529521

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=19274&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=19274&range=00-01

  Stats: 39 lines in 3 files changed: 24 ins; 14 del; 1 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