RFR: JDK-8315459: Print G1 reserved and committed sizes as separate items in VM.info and hs_err [v2]

Thomas Stuefe stuefe at openjdk.org
Thu Aug 31 19:15:59 UTC 2023


> Trivial printing change.
> 
> 
> Heap:
>  garbage-first heap total 1040384K, used 4985K [0x0000000414000000, 0x0000000800000000)
> 
> 
> We print the committed heap size as "total". Reserved size is missing and can only be deduced using the following address range size. And the apparent mismatch between that range size and the printed "total" value also confused some customers.
> 
> Let's print the reserved and committed total separately:
> 
> 
> Heap:
>  garbage-first heap   total reserved 16449536K, committed 1040384K, used 4985K [0x0000000414000000, 0x0000000800000000)
>  ```
> 
> Tests: I ran `serviceability/sa/TestUniverse.java`, which was the only test I could find that parsed this output. GHAs also ran successfully (not sure why they are marked as still running, though, they are long finished).

Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:

  use %zu

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15516/files
  - new: https://git.openjdk.org/jdk/pull/15516/files/b8ca4121..9bb62327

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=15516&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15516&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/15516.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15516/head:pull/15516

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


More information about the hotspot-gc-dev mailing list