8359224: G1: Incorrect size unit in logging of G1CollectedHeap::alloc_archive_region

Reviewed-by: tschatzl, shade
This commit is contained in:
Albert Mingkun Yang 2025-06-13 13:40:43 +00:00
parent 57cabc6d74
commit 417f8ecf07

View File

@ -499,7 +499,7 @@ HeapWord* G1CollectedHeap::alloc_archive_region(size_t word_size, HeapWord* pref
if (reserved.word_size() <= word_size) {
log_info(gc, heap)("Unable to allocate regions as archive heap is too large; size requested = %zu"
" bytes, heap = %zu bytes", word_size, reserved.word_size());
" bytes, heap = %zu bytes", word_size * HeapWordSize, reserved.byte_size());
return nullptr;
}