--- old/src/hotspot/cpu/x86/gc/z/zGlobals_x86.cpp 2019-11-14 15:57:28.195458538 +0100 +++ new/src/hotspot/cpu/x86/gc/z/zGlobals_x86.cpp 2019-11-14 15:57:27.853447618 +0100 @@ -144,7 +144,7 @@ const size_t max_address_offset_bits = 44; // 16TB const size_t address_offset = ZUtils::round_up_power_of_2(MaxHeapSize * ZVirtualToPhysicalRatio); const size_t address_offset_bits = log2_intptr(address_offset); - return MIN2(MAX2(address_offset_bits, min_address_offset_bits), max_address_offset_bits); + return clamp(address_offset_bits, min_address_offset_bits, max_address_offset_bits); } size_t ZPlatformAddressMetadataShift() {