RFR: 8252513: ZGC: Contiguous memory reservation probing is broken for TB heap sizes
stefan.karlsson at oracle.com
Mon Aug 31 11:13:36 UTC 2020
Please review this patch to fix memory reservation probing for large
If the passed in 'size' is equal to ZAddressOffsetMax, both 'end' and
'increment' becomes 0, and the code will loop forever.
I've changed the code to at least increment with ZGranuleSize. I've also
replaced the usage of 'start <= end', with 'start + size <=
ZAddressOfsetMax', since it makes the code easier to reason about, IMHO.
More information about the hotspot-gc-dev