[jdk25u-dev] RFR: 8361363: ShenandoahAsserts::print_obj() does not work for forwarded objects and UseCompactObjectHeaders

Vishal Chand duke at openjdk.org
Fri Nov 28 01:27:27 UTC 2025


Backport of:

JDK-8361363 - ShenandoahAsserts::print_obj() does not work for forwarded objects and UseCompactObjectHeaders
This change fixes Shenandoah’s print_obj() so it correctly prints forwarded objects when compact object headers are enabled, instead of crashing by reading an invalid klass from the forwarding pointer.

Risk is Low as this is a clean backport and the changes are in diagnostic code.

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

Commit messages:
 - Backport fe264676337cdef0d7477b0b57ff9d2fe8f9fc0f

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

PR: https://git.openjdk.org/jdk25u-dev/pull/28


More information about the jdk-updates-dev mailing list