Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8223693

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

    XMLWordPrintable

Details

    • gc
    • b24

    Backports

      Description

        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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: