RFR: 8340631: assert(reserved_rgn->contain_region(base_addr, size)) failed: Reserved CDS region should contain this mapping region

Matias Saavedra Silva matsaave at openjdk.org
Fri Dec 13 19:59:10 UTC 2024


What testing with `UseCompressedClassPointers` set to false, this assert is hit due to memory being released twice during the failure path of CDS archive mapping. This patch makes it so the RW and RO regions are only released once at the end in `MetaspaceShared::release_reserved_spaces()`. Verified with tier 1-4 tests.

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

Commit messages:
 - Fixed assert
 - Reverted UseCompressedClassPointers
 - 8340631: assert(reserved_rgn->contain_region(base_addr, size)) failed: Reserved CDS region should contain this mapping region

Changes: https://git.openjdk.org/jdk/pull/22743/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22743&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8340631
  Stats: 19 lines in 4 files changed: 8 ins; 0 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/22743.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22743/head:pull/22743

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


More information about the hotspot-runtime-dev mailing list