Skip to content

Commit

Permalink
8309297: Adjust ShenandoahHeap print_heap_regions_on
Browse files Browse the repository at this point in the history
Backport-of: 9233dcc8380c6e7cd7bbf7a1f4c0a6873429ea53
  • Loading branch information
MBaesken committed Jun 14, 2023
1 parent 8ac9c57 commit ebb9a36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
Expand Up @@ -595,6 +595,7 @@ void ShenandoahHeap::print_on(outputStream* st) const {
MetaspaceUtils::print_on(st);

if (Verbose) {
st->cr();
print_heap_regions_on(st);
}
}
Expand Down Expand Up @@ -1023,10 +1024,13 @@ void ShenandoahHeap::trash_cset_regions() {

void ShenandoahHeap::print_heap_regions_on(outputStream* st) const {
st->print_cr("Heap Regions:");
st->print_cr("EU=empty-uncommitted, EC=empty-committed, R=regular, H=humongous start, HC=humongous continuation, CS=collection set, T=trash, P=pinned");
st->print_cr("BTE=bottom/top/end, U=used, T=TLAB allocs, G=GCLAB allocs, S=shared allocs, L=live data");
st->print_cr("R=root, CP=critical pins, TAMS=top-at-mark-start, UWM=update watermark");
st->print_cr("SN=alloc sequence number");
st->print_cr("Region state: EU=empty-uncommitted, EC=empty-committed, R=regular, H=humongous start, HP=pinned humongous start");
st->print_cr(" HC=humongous continuation, CS=collection set, TR=trash, P=pinned, CSP=pinned collection set");
st->print_cr("BTE=bottom/top/end, TAMS=top-at-mark-start");
st->print_cr("UWM=update watermark, U=used");
st->print_cr("T=TLAB allocs, G=GCLAB allocs");
st->print_cr("S=shared allocs, L=live data");
st->print_cr("CP=critical pins");

for (size_t i = 0; i < num_regions(); i++) {
get_region(i)->print_on(st);
Expand Down Expand Up @@ -2124,6 +2128,7 @@ void ShenandoahHeap::rebuild_free_set(bool concurrent) {

void ShenandoahHeap::print_extended_on(outputStream *st) const {
print_on(st);
st->cr();
print_heap_regions_on(st);
}

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp
Expand Up @@ -351,7 +351,7 @@ void ShenandoahHeapRegion::print_on(outputStream* st) const {
st->print("|CS ");
break;
case _trash:
st->print("|T ");
st->print("|TR ");
break;
case _pinned:
st->print("|P ");
Expand Down

1 comment on commit ebb9a36

@openjdk-notifier
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.