RFR: 8369818: G1: Add missing region types in gc+heap=debug heap output

Thomas Schatzl tschatzl at openjdk.org
Tue Oct 14 12:37:40 UTC 2025


Hi all,

  please review this update to the `gc+heap=debug` output to contain all region types (I do not know why it only showed eden and survivor).

This is also printed in other places (like `hs_err` files) and it is sometimes very interesting to know that e.g. there are humongous regions around.

It also makes the unit MB because KB is too unwieldy, and the minimum region size is 1 MB anyway.

Testing: local compilation, checking the log output

Thanks,
  Thomas

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

Commit messages:
 - 8369818

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

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


More information about the hotspot-gc-dev mailing list