--- old/src/hotspot/share/gc/shared/gcInitLogger.cpp 2020-05-25 14:25:36.728456309 +0200 +++ new/src/hotspot/share/gc/shared/gcInitLogger.cpp 2020-05-25 14:25:36.460454980 +0200 @@ -59,7 +59,9 @@ } void GCInitLogger::print_memory() { - log_info(gc, init)("Memory: " JULONG_FORMAT "M", os::physical_memory() / M); + julong memory = os::physical_memory(); + log_info(gc, init)("Memory: " JULONG_FORMAT "%s", + byte_size_in_proper_unit(memory), proper_unit_for_byte_size(memory)); } void GCInitLogger::print_large_pages() {