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

Calvin Cheung ccheung at openjdk.org
Wed Oct 2 21:59:03 UTC 2024


A small fix to add a check in WB_CanWriteJavaHeapArchive to allow CDS tests to run with Parallel and Serial GC. However, if compressed oops is disabled (`-XX:-UseCompressedOops`) and specified with `-XX:+UseParallelGC `or `-XX:+UseSerialGC`, the test will be skipped.

Testing:
- [x] CDS tests with `-XX:+ParallelGC`
- [x] CDS tests with `-XX:+SerialGC`
- [x] test group `open/test/hotspot/jtreg/:hotspot_cds_only` with `-XX:-UseCompressedOops`
- [x] manually checks that the failed tests in the bug report were not run with `-XX:-UseCompressedOops -XX:+UseParallel`

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

Commit messages:
 - 8341053: Two CDS tests fail again with -UseCompressedOops and UseSerialGC/UseParallelGC

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

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


More information about the hotspot-dev mailing list