8288052: Small logging clarification during failed heap shrinkage

Co-authored-by: Jonathan Joo <jonathanjoo@google.com>
Reviewed-by: tschatzl
This commit is contained in:
Man Cao 2022-06-08 20:18:28 +00:00
parent b623398555
commit 130ce7c6b8

View File

@ -1342,7 +1342,7 @@ void G1CollectedHeap::shrink_helper(size_t shrink_bytes) {
log_debug(gc, heap)("Uncommittable regions after shrink: %u", num_regions_removed);
policy()->record_new_heap_size(num_regions());
} else {
log_debug(gc, ergo, heap)("Did not expand the heap (heap shrinking operation failed)");
log_debug(gc, ergo, heap)("Did not shrink the heap (heap shrinking operation failed)");
}
}