Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit 643f5b5

Browse files
committed
8241534: Shenandoah: region status should include update watermark
Reviewed-by: rkennke
1 parent cb1632e commit 643f5b5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ void ShenandoahHeap::print_heap_regions_on(outputStream* st) const {
991991
st->print_cr("Heap Regions:");
992992
st->print_cr("EU=empty-uncommitted, EC=empty-committed, R=regular, H=humongous start, HC=humongous continuation, CS=collection set, T=trash, P=pinned");
993993
st->print_cr("BTE=bottom/top/end, U=used, T=TLAB allocs, G=GCLAB allocs, S=shared allocs, L=live data");
994-
st->print_cr("R=root, CP=critical pins, TAMS=top-at-mark-start (previous, next)");
994+
st->print_cr("R=root, CP=critical pins, TAMS=top-at-mark-start, UWM=update watermark");
995995
st->print_cr("SN=alloc sequence number");
996996

997997
for (size_t i = 0; i < num_regions(); i++) {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ void ShenandoahHeapRegion::print_on(outputStream* st) const {
413413
p2i(bottom()), p2i(top()), p2i(end()));
414414
st->print("|TAMS " INTPTR_FORMAT_W(12),
415415
p2i(_heap->marking_context()->top_at_mark_start(const_cast<ShenandoahHeapRegion*>(this))));
416+
st->print("|UWM " INTPTR_FORMAT_W(12),
417+
p2i(_update_watermark));
416418
st->print("|U " SIZE_FORMAT_W(5) "%1s", byte_size_in_proper_unit(used()), proper_unit_for_byte_size(used()));
417419
st->print("|T " SIZE_FORMAT_W(5) "%1s", byte_size_in_proper_unit(get_tlab_allocs()), proper_unit_for_byte_size(get_tlab_allocs()));
418420
st->print("|G " SIZE_FORMAT_W(5) "%1s", byte_size_in_proper_unit(get_gclab_allocs()), proper_unit_for_byte_size(get_gclab_allocs()));

0 commit comments

Comments
 (0)