RFR: 8231563: ZGC: Fails to warn when user sets the max heap size to larger than 16TB

Stefan Karlsson stefan.karlsson at oracle.com
Thu Oct 3 07:48:25 UTC 2019


Thanks, Thomas.

StefanK

On 2019-09-27 10:46, Thomas Schatzl wrote:
> Hi,
> 
> On 27.09.19 09:16, Stefan Karlsson wrote:
>> Hi all,
>>
>> Please review this small patch to fix the max heap size check in ZGC.
>>
>> https://cr.openjdk.java.net/~stefank/8231563/webrev.01/
>> https://bugs.openjdk.java.net/browse/JDK-8231563
>>
>> After this fix the JVM refuses to start if a too high -Xmx is set:
>>
>> $ java -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -Xmx17t -version:
>> Error occurred during initialization of VM
>> Java heap too large
> 
>    looks good to me.
> 
> Thomas
> 



More information about the hotspot-gc-dev mailing list