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

Calvin Cheung ccheung at openjdk.org
Thu May 23 20:49:12 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`.
> 
> Update:
> The checking of the ` -Dtest.cds.runtime.options` property is now performed in VMProps.java.

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

  add missing braces

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/19274/files
  - new: https://git.openjdk.org/jdk/pull/19274/files/1c0ef09a..17410876

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

  Stats: 2 lines in 1 file changed: 1 ins; 0 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