RFR: 8213175 - MaxHeapSize refuses to go over 32178700288 when running in a docker container

Bob Vandette bob.vandette at oracle.com
Tue Mar 12 15:04:37 UTC 2019


Please review this fix for correcting the Heap size when MaxRAMPercentage is used.

BUG:

https://bugs.openjdk.java.net/browse/JDK-8213175

WEBREV:

http://cr.openjdk.java.net/~bobv/8213175/webrev.0/

SUMMARY:

This fix changes the ordering of when we try to determine if we can
enable UseCompressedOops.  It is now done after more of the Heap size
calculations are completed.

The only behavioral change should be that UseCompressedOops will now be
disabled if someone specifies a MaxRAMPercentage that causes the heap size
to exceed the amount of memory that can be used with compressed oops.
Prior to this change, the amount of heap was reduced to the compressed oop
limit.

Bob.




More information about the hotspot-gc-dev mailing list