JDK-8014716 : G1: heap (re-)sizing does not take card table alignment required into account
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs25
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-05-16
  • Updated: 2014-08-22
  • Resolved: 2014-08-22
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.
Related Reports
Duplicate :  
Heap sizing (and possibly resizing) in Hotspot GCs needs to take various alignment constraints into amount.

One of them is that Hotspot supports only heap sizes that are aligned to the area a full vm page of card table entries spans. Hotspot does not support card tables which entries do not correspond to non-committed heap memory (1).

All collectors but G1 take that into account in their sizing decisions (2).

(1),(2) needs to be verified before starting work.

This bug has been observed when fixing bug 8014408, see also http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2013-May/007181.html

The fix for JDK-8038423 is a superset of this functionality by automatically (de-)committing appropriate regions and their auxiliary data.