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

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • tbd
    • 8u40, 9
    • hotspot
    • gc

      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.

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

              Created:
              Updated:
              Resolved: