Skip to content

Commit f35af71

Browse files
kdnilsenshipilev
authored andcommittedJul 26, 2024
8334315: Shenandoah: reduce GC logging noise
Reviewed-by: wkemper, ysr, shade
1 parent 4bcb8f0 commit f35af71

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed
 

‎src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp

+17-17
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,19 @@ static const char* partition_name(ShenandoahFreeSetPartitionId t) {
4848

4949
#ifndef PRODUCT
5050
void ShenandoahRegionPartitions::dump_bitmap() const {
51-
log_info(gc)("Mutator range [" SSIZE_FORMAT ", " SSIZE_FORMAT "], Collector range [" SSIZE_FORMAT ", " SSIZE_FORMAT "]",
52-
_leftmosts[int(ShenandoahFreeSetPartitionId::Mutator)],
53-
_rightmosts[int(ShenandoahFreeSetPartitionId::Mutator)],
54-
_leftmosts[int(ShenandoahFreeSetPartitionId::Collector)],
55-
_rightmosts[int(ShenandoahFreeSetPartitionId::Collector)]);
56-
log_info(gc)("Empty Mutator range [" SSIZE_FORMAT ", " SSIZE_FORMAT
57-
"], Empty Collector range [" SSIZE_FORMAT ", " SSIZE_FORMAT "]",
58-
_leftmosts_empty[int(ShenandoahFreeSetPartitionId::Mutator)],
59-
_rightmosts_empty[int(ShenandoahFreeSetPartitionId::Mutator)],
60-
_leftmosts_empty[int(ShenandoahFreeSetPartitionId::Collector)],
61-
_rightmosts_empty[int(ShenandoahFreeSetPartitionId::Collector)]);
62-
63-
log_info(gc)("%6s: %18s %18s %18s", "index", "Mutator Bits", "Collector Bits", "NotFree Bits");
51+
log_debug(gc)("Mutator range [" SSIZE_FORMAT ", " SSIZE_FORMAT "], Collector range [" SSIZE_FORMAT ", " SSIZE_FORMAT "]",
52+
_leftmosts[int(ShenandoahFreeSetPartitionId::Mutator)],
53+
_rightmosts[int(ShenandoahFreeSetPartitionId::Mutator)],
54+
_leftmosts[int(ShenandoahFreeSetPartitionId::Collector)],
55+
_rightmosts[int(ShenandoahFreeSetPartitionId::Collector)]);
56+
log_debug(gc)("Empty Mutator range [" SSIZE_FORMAT ", " SSIZE_FORMAT
57+
"], Empty Collector range [" SSIZE_FORMAT ", " SSIZE_FORMAT "]",
58+
_leftmosts_empty[int(ShenandoahFreeSetPartitionId::Mutator)],
59+
_rightmosts_empty[int(ShenandoahFreeSetPartitionId::Mutator)],
60+
_leftmosts_empty[int(ShenandoahFreeSetPartitionId::Collector)],
61+
_rightmosts_empty[int(ShenandoahFreeSetPartitionId::Collector)]);
62+
63+
log_debug(gc)("%6s: %18s %18s %18s", "index", "Mutator Bits", "Collector Bits", "NotFree Bits");
6464
dump_bitmap_range(0, _max-1);
6565
}
6666

@@ -83,8 +83,8 @@ void ShenandoahRegionPartitions::dump_bitmap_row(idx_t region_idx) const {
8383
uintx collector_bits = _membership[int(ShenandoahFreeSetPartitionId::Collector)].bits_at(aligned_idx);
8484
uintx free_bits = mutator_bits | collector_bits;
8585
uintx notfree_bits = ~free_bits;
86-
log_info(gc)(SSIZE_FORMAT_W(6) ": " SIZE_FORMAT_X_0 " 0x" SIZE_FORMAT_X_0 " 0x" SIZE_FORMAT_X_0,
87-
aligned_idx, mutator_bits, collector_bits, notfree_bits);
86+
log_debug(gc)(SSIZE_FORMAT_W(6) ": " SIZE_FORMAT_X_0 " 0x" SIZE_FORMAT_X_0 " 0x" SIZE_FORMAT_X_0,
87+
aligned_idx, mutator_bits, collector_bits, notfree_bits);
8888
}
8989
#endif
9090

@@ -1060,8 +1060,8 @@ void ShenandoahFreeSet::move_regions_from_collector_to_mutator(size_t max_xfer_r
10601060
}
10611061

10621062
size_t collector_xfer = collector_empty_xfer + collector_not_empty_xfer;
1063-
log_info(gc)("At start of update refs, moving " SIZE_FORMAT "%s to Mutator free partition from Collector Reserve",
1064-
byte_size_in_proper_unit(collector_xfer), proper_unit_for_byte_size(collector_xfer));
1063+
log_info(gc, ergo)("At start of update refs, moving " SIZE_FORMAT "%s to Mutator free partition from Collector Reserve",
1064+
byte_size_in_proper_unit(collector_xfer), proper_unit_for_byte_size(collector_xfer));
10651065
}
10661066

10671067
void ShenandoahFreeSet::prepare_to_rebuild(size_t &cset_regions) {

0 commit comments

Comments
 (0)
Please sign in to comment.