8287704: Small logging clarification about shrunk bytes after heap shrinkage
Co-authored-by: Jonathan Joo <jonathanjoo@google.com> Reviewed-by: tschatzl
This commit is contained in:
parent
7f44f572ea
commit
ccec5d1e85
@ -1336,7 +1336,7 @@ void G1CollectedHeap::shrink_helper(size_t shrink_bytes) {
|
||||
uint num_regions_removed = _hrm.shrink_by(num_regions_to_remove);
|
||||
size_t shrunk_bytes = num_regions_removed * HeapRegion::GrainBytes;
|
||||
|
||||
log_debug(gc, ergo, heap)("Shrink the heap. requested shrinking amount: " SIZE_FORMAT "B aligned shrinking amount: " SIZE_FORMAT "B attempted shrinking amount: " SIZE_FORMAT "B",
|
||||
log_debug(gc, ergo, heap)("Shrink the heap. requested shrinking amount: " SIZE_FORMAT "B aligned shrinking amount: " SIZE_FORMAT "B actual amount shrunk: " SIZE_FORMAT "B",
|
||||
shrink_bytes, aligned_shrink_bytes, shrunk_bytes);
|
||||
if (num_regions_removed > 0) {
|
||||
log_debug(gc, heap)("Uncommittable regions after shrink: %u", num_regions_removed);
|
||||
|
Loading…
x
Reference in New Issue
Block a user