RFR: 8341371: CDS cannot load archived heap objects with -XX:+UseSerialGC -XX:-UseCompressedOops

Matias Saavedra Silva matsaave at openjdk.org
Tue Oct 22 20:27:16 UTC 2024


[JDK-8298614](https://bugs.openjdk.org/browse/JDK-8298614) enabled writing the archived heap region with SerialGC and ParallelGC, but archives written with XX:-UseCompressedOops can't be loaded at runtime. This patch enables heap loading for SerialGC and ParallelGC as well as EpsilonGC and Shenandoah since they were enabled in [JDK-8341913](https://bugs.openjdk.org/browse/JDK-8341913). Related tests were updated to check for the new conditions. Verified with tier 1-5 tests.

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

Commit messages:
 - Enabled uncompressed oops on Epsilon and Shenandoah
 - Merge branch 'master' into archive_uncompressed_oops_8341371
 - Added uncompressed oops to tests
 - 8341371: CDS cannot load archived heap objects with -XX:+UseSerialGC -XX:-UseCompressedOops

Changes: https://git.openjdk.org/jdk/pull/21647/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21647&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341371
  Stats: 153 lines in 12 files changed: 117 ins; 21 del; 15 mod
  Patch: https://git.openjdk.org/jdk/pull/21647.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21647/head:pull/21647

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


More information about the shenandoah-dev mailing list