RFR: 8364202: CDS without G1 gives build error in slowdebug, asserts in fastdebug

Thomas Stuefe stuefe at openjdk.org
Tue Jul 29 13:32:07 UTC 2025


This patch fixes two problems:

- when building without INCLUDE_CDS_JAVA_HEAP (disabling G1 at configure, or building 32-bit), we get a linker error in slowdebug.
- when running with CDS, but without INCLUDE_CDS_JAVA_HEAP, we initialize CompressedKlassPointers via the "lenient" route where we allow optimized encoding base choice. This can lead to zero-based encoding, in which case we should not attempt to setup a protection zone at the start of the encoding range.

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

Commit messages:
 - redo assertion fix
 - fix build error
 - Fix assert when running with CDS but without heap

Changes: https://git.openjdk.org/jdk/pull/26523/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26523&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8364202
  Stats: 19 lines in 5 files changed: 12 ins; 2 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/26523.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26523/head:pull/26523

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


More information about the hotspot-runtime-dev mailing list