RFR: JDK-8315459: Print G1 reserved and committed sizes as separate items in VM.info and hs_err
Albert Mingkun Yang
ayang at openjdk.org
Thu Aug 31 18:32:03 UTC 2023
On Thu, 31 Aug 2023 12:50:29 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> 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).
Using `%zu` instead of `SIZE_FORMAT` probably makes it easier to read.
-------------
Marked as reviewed by ayang (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/15516#pullrequestreview-1605442303
More information about the hotspot-gc-dev
mailing list