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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8u40, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: