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

G1 may incorrectly try to reclaim humongous non-Array objects containing references

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 8u40, 9
    • hotspot
    • gc

      In JDK-8027959 G1 introduced early reclaim for humongous objects that have no references.

      The check whether a humongous object has no references is performed whether the object is not an object array.
      This automatically exclude those.

      However it is possible that regular non-array objects are humongous: while there is a limit on the number of members of a particular class, subclasses may be larger. That means that regular objects can be humongous.

      Which is a problem because regular objects may contain references that might be missed if they are reclaimed during a concurrent marking cycle.

            kbarrett Kim Barrett
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: