Skip to content


8315459: Print G1 reserved and committed sizes as separate items in V…
Browse files Browse the repository at this point in the history
… and hs_err

Reviewed-by: ayang, tschatzl
  • Loading branch information
tstuefe committed Sep 1, 2023
1 parent 764f65c commit 81b5d22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/g1/g1CollectedHeap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2199,8 +2199,8 @@ void G1CollectedHeap::print_heap_regions() const {
void G1CollectedHeap::print_on(outputStream* st) const {
size_t heap_used = Heap_lock->owned_by_self() ? used() : used_unlocked();
st->print(" %-20s", "garbage-first heap");
st->print(" total " SIZE_FORMAT "K, used " SIZE_FORMAT "K",
capacity()/K, heap_used/K);
st->print(" total reserved %zuK, committed %zuK, used %zuK",
_hrm.reserved().byte_size()/K, capacity()/K, heap_used/K);
st->print(" [" PTR_FORMAT ", " PTR_FORMAT ")",
Expand Down

1 comment on commit 81b5d22

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.