JDK-8276929 : Release Note: Allow G1 Heap Regions up to 512MB
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2021-11-10
  • Updated: 2022-02-04
  • Resolved: 2021-11-15
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 18
18Resolved
Description
The JDK-8275056 enhancement extends the maximum allowed heap region size from 32MB to 512MB for the G1 garbage collector.
Default ergonomic heap region size selection is still limited to 32MB regions maximum. Heap region sizes beyond that must be selected manually by using the `-XX:G1HeapRegionSize` command line option.

This can be used to mitigate both inner and outer fragmentation issues with large objects on large heaps.

On very large heaps, using a larger heap region size may also decrease internal region management overhead and increase performance due to larger local allocation buffers.