Skip to content

Commit 70efdd8

Browse files
committed
return MAX2(max_address_bit, MINIMUM_MAX_ADDRESS_BIT) instead of the if to make the intention more clear.
1 parent c5e11ca commit 70efdd8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/hotspot/cpu/aarch64/gc/z/zGlobals_aarch64.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,7 @@ static size_t probe_valid_max_address_bit() {
189189
}
190190
}
191191
log_info_p(gc, init)("Probing address space for the highest valid bit: " SIZE_FORMAT, max_address_bit);
192-
if (max_address_bit < MINIMUM_MAX_ADDRESS_BIT) {
193-
return MINIMUM_MAX_ADDRESS_BIT;
194-
}
195-
return max_address_bit;
192+
return MAX2(max_address_bit, MINIMUM_MAX_ADDRESS_BIT);
196193
#else // LINUX
197194
return DEFAULT_MAX_ADDRESS_BIT;
198195
#endif // LINUX

0 commit comments

Comments
 (0)