RFR: JDK-8315459: Print G1 reserved and committed sizes as separate items in VM.info and hs_err [v2]
Thomas Schatzl
tschatzl at openjdk.org
Fri Sep 1 07:26:38 UTC 2023
On Thu, 31 Aug 2023 19:15:59 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).
>
> Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:
>
> use %zu
Marked as reviewed by tschatzl (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/15516#pullrequestreview-1606402135
More information about the hotspot-gc-dev
mailing list