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

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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • tbd
    • 8u40, 9
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: