Integrated: JDK-8315459: Print G1 reserved and committed sizes as separate items in VM.info and hs_err
Thomas Stuefe
stuefe at openjdk.org
Fri Sep 1 08:04:50 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).
This pull request has now been integrated.
Changeset: 81b5d221
Author: Thomas Stuefe <stuefe at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/81b5d2211eb2616f497c17114f0a475174ad3bef
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
8315459: Print G1 reserved and committed sizes as separate items in VM.info and hs_err
Reviewed-by: ayang, tschatzl
-------------
PR: https://git.openjdk.org/jdk/pull/15516
More information about the hotspot-gc-dev
mailing list