Skip to content

Commit 9233dcc

Browse files
committed
8309297: Adjust ShenandoahHeap print_heap_regions_on
Reviewed-by: ysr, mdoerr
1 parent 749d480 commit 9233dcc

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
@@ -593,6 +593,7 @@ void ShenandoahHeap::print_on(outputStream* st) const {
593593
MetaspaceUtils::print_on(st);
594594

595595
if (Verbose) {
596+
st->cr();
596597
print_heap_regions_on(st);
597598
}
598599
}
@@ -1021,10 +1022,13 @@ void ShenandoahHeap::trash_cset_regions() {
10211022

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

10291033
for (size_t i = 0; i < num_regions(); i++) {
10301034
get_region(i)->print_on(st);
@@ -2115,6 +2119,7 @@ void ShenandoahHeap::rebuild_free_set(bool concurrent) {
21152119

21162120
void ShenandoahHeap::print_extended_on(outputStream *st) const {
21172121
print_on(st);
2122+
st->cr();
21182123
print_heap_regions_on(st);
21192124
}
21202125

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)