JDK-8226901 : Release Note: Improve the Behavior of MaxRAM Settings and UseCompressedOops
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 13
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2019-06-27
  • Updated: 2019-08-12
  • Resolved: 2019-06-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13Resolved
Description
The behavior of several GC Heap selection flags have been changed to better meet the expectation of users.  

Prior to this change, if the heap size selection resulting from the use of these flags exceeded the maximum reachable address when `UseCompressedOops` is enabled, the heap size would be truncated to be within the `CompressedOops` range.  Also, the percentage or fractional calculation performed was based on the value of `MaxRAM` and not the amount of physical memory available in the system.  The following are the options impacted by this change:

- `-XX:MaxRAMPercentage`
- `-XX:MaxRAMFraction`
- `-XX:MinRAMPercentage`
- `-XX:MinRAMFraction`
- `-XX:InitialRAMPercentage`
- `-XX:InitialRAMFraction`
- `-XX:MaxRAM`

The new behavior calculates the percentage or fraction based on the host's available memory unless the user also specifies `-XX:MaxRAM`.  In addition, `UseCompressedOops` is automatically disabled if the heap size resulting from the use of any of these options, including `-XX:MaxRAM`, is greater than can be addressed in `CompressedOops` mode, unless the `-XX:+UseCompressedOops` option is specified to override this behavior.

Note:  This change only impacts 64-bit platforms.

Comments
This looks good to me. I made a couple of minor edits.
27-06-2019