Memory wastage in size of per-region type buffers in GC

XMLWordPrintable

    • gc
    • b24

        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)

              Assignee:
              Thomas Schatzl
              Reporter:
              Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: