Skip to content

Commit ebb9a36

Browse files
committed
8309297: Adjust ShenandoahHeap print_heap_regions_on
Backport-of: 9233dcc8380c6e7cd7bbf7a1f4c0a6873429ea53
1 parent 8ac9c57 commit ebb9a36

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ void ShenandoahHeap::print_on(outputStream* st) const {
595595
MetaspaceUtils::print_on(st);
596596

597597
if (Verbose) {
598+
st->cr();
598599
print_heap_regions_on(st);
599600
}
600601
}
@@ -1023,10 +1024,13 @@ void ShenandoahHeap::trash_cset_regions() {
10231024

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

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

21252129
void ShenandoahHeap::print_extended_on(outputStream *st) const {
21262130
print_on(st);
2131+
st->cr();
21272132
print_heap_regions_on(st);
21282133
}
21292134

src/hotspot/share/gc/shenandoah/shenandoahHeapRegion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ void ShenandoahHeapRegion::print_on(outputStream* st) const {
351351
st->print("|CS ");
352352
break;
353353
case _trash:
354-
st->print("|T ");
354+
st->print("|TR ");
355355
break;
356356
case _pinned:
357357
st->print("|P ");

0 commit comments

Comments
 (0)