RFR: 8341377: Update VMProps.isCDSRuntimeOptionsCompatible to include Parallel and Serial GC

Calvin Cheung ccheung at openjdk.org
Thu Oct 3 05:03:05 UTC 2024


After the fix for [JDK-8298614](https://bugs.openjdk.org/browse/JDK-8298614), CDS heap dumping works with Parallel and Serial GC. The `VMProps.isCDSRuntimeOptionsCompatible` method should be updated accordingly so that some CDS tests which requires `vm.cds.write.archived.java.heap` can be run with `-XX:+UseParallelGC` or `-XX:+UseSerialGC`.

Based on my testing, 25 more CDS tests can be run with `-XX:+UseParallelGC` or `-XX:+UseSerialGC`

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

Commit messages:
 - 8341377: Update VMProps.isCDSRuntimeOptionsCompatible to include Parallel and Serial GC

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

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


More information about the hotspot-runtime-dev mailing list