8309297: Adjust ShenandoahHeap print_heap_regions_on

Reviewed-by: ysr, mdoerr
(cherry picked from commit 9233dcc838)
This commit is contained in:
Matthias Baesken
2023-06-07 10:51:10 +00:00
committed by Vitaly Provodin
parent f352d1ab9c
commit 001aa3e47d
2 changed files with 10 additions and 5 deletions

View File

@@ -593,6 +593,7 @@ void ShenandoahHeap::print_on(outputStream* st) const {
MetaspaceUtils::print_on(st);
if (Verbose) {
st->cr();
print_heap_regions_on(st);
}
}
@@ -1021,10 +1022,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);
@@ -2115,6 +2119,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);
}

View File

@@ -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 ");