RFR: JDK-8315459: Print G1 reserved and committed sizes as separate items in VM.info and hs_err
Thomas Stuefe
stuefe at openjdk.org
Thu Aug 31 17:42:09 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).
-------------
Commit messages:
- JDK-8315459-Print-G1-reserved-and-committed-sizes-as-separate-items-in-VM.info-and-hs_err
Changes: https://git.openjdk.org/jdk/pull/15516/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15516&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8315459
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 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