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

Ioi Lam iklam at openjdk.org
Tue Jul 29 21:19:53 UTC 2025


On Tue, 29 Jul 2025 06:14:46 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> 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.

LGTM

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

Marked as reviewed by iklam (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/26523#pullrequestreview-3069249805


More information about the hotspot-runtime-dev mailing list