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

Per Liden per.liden at oracle.com
Fri Sep 27 13:18:31 UTC 2019

Looks good!


On 9/27/19 9:16 AM, 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
> Thanks,
> StefanK

More information about the hotspot-gc-dev mailing list