JDK-8242057 : Release Note: Improved Ergonomics for G1 Heap Region Size
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 15
  • Priority: P3
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2020-04-02
  • Updated: 2021-05-14
  • Resolved: 2020-05-19
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 15
15Resolved
Description
The default heap region size calculation has been changed to return larger regions by default. The calculation still aims to have 2048 regions, but two aspects have changed:

 - Only the maximum heap size is considered. The old calculation also took the initial heap size into consideration, but this can give unexpected behavior when no heap size is set.
 - The region size is rounded up to the nearest power of 2 instead of down. This will return larger region sizes in cases where the maximum heap size is not a power of 2.  

These changes improve startup and runtime performance.