Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8225904 | 14 | Thomas Schatzl | P5 | Resolved | Fixed | team |
For various buffers in the G1Allocators and G1ParScanThreadState we have per-region attribute type arrays.
These are sized one element too large (G1HeapRegionAttr::Num is 3) although it would be sufficient to use 2 with a slightly different encoding of the G1HeapRegionAttr:region_type_t member, i.e. making "Young" and "Old" get values of "0" and "1" respectively instead of current "1" and "2".
(These values were defined like that for historical reasons)
These are sized one element too large (G1HeapRegionAttr::Num is 3) although it would be sufficient to use 2 with a slightly different encoding of the G1HeapRegionAttr:region_type_t member, i.e. making "Young" and "Old" get values of "0" and "1" respectively instead of current "1" and "2".
(These values were defined like that for historical reasons)
- backported by
-
JDK-8225904 Memory wastage in size of per-region type buffers in GC
- Resolved