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

G1 full GC does not compact into humongous regions freed in the same collection

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u40, 9
    • Fix Version/s: tbd_major
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      Given the following heap region type layout at the start of a full GC:

      SCCCscccSCCCOOO....

      (Legend:
      S = humongous starts region
      C = humongous continues region
      s = humongous starts region that is going to be freed in this full GC
      c = humongous continues region to be freed in this full GC
      O = region containing live old data
       . = free region
      )

      At the end of full GC the heap looks like this:

      SCCC...SCCCOOO....

      I.e. during compaction the full GC did not consider the not live humongous regions as compaction targets. This may leave some space unnecessarily committed after full GC particularly as humongous objects are never moved.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sjohanss Stefan Johansson
                Reporter:
                tschatzl Thomas Schatzl
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: