Skip to content

Commit 400a83d

Browse files
author
Ivan Walulya
committed
8371625: G1: G1HeapRegion::print_on misalignment
Reviewed-by: ayang, tschatzl
1 parent 76a0732 commit 400a83d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/gc/g1/g1HeapRegion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ bool G1HeapRegion::verify_code_roots(VerifyOption vo) const {
428428
void G1HeapRegion::print() const { print_on(tty); }
429429

430430
void G1HeapRegion::print_on(outputStream* st) const {
431-
st->print("|%4u", this->_hrm_index);
431+
st->print("|%5u", this->_hrm_index);
432432
st->print("|" PTR_FORMAT ", " PTR_FORMAT ", " PTR_FORMAT,
433433
p2i(bottom()), p2i(top()), p2i(end()));
434434
st->print("|%3d%%", (int) ((double) used() * 100 / capacity()));
@@ -442,7 +442,7 @@ void G1HeapRegion::print_on(outputStream* st) const {
442442
st->print("| ");
443443
}
444444
G1ConcurrentMark* cm = G1CollectedHeap::heap()->concurrent_mark();
445-
st->print("|TAMS " PTR_FORMAT "| PB " PTR_FORMAT "| %s ",
445+
st->print("|TAMS " PTR_FORMAT "| PB " PTR_FORMAT "| %-9s ",
446446
p2i(cm->top_at_mark_start(this)), p2i(parsable_bottom_acquire()), rem_set()->get_state_str());
447447
if (UseNUMA) {
448448
G1NUMA* numa = G1NUMA::numa();

0 commit comments

Comments
 (0)