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

Only trigger preventive collections when there is reason that it will help

XMLWordPrintable

    • gc

      Preventive collections were introduced in JDK-8257774 to help with evacuation failures.

      The assumption has been that we should do a young collection in presence of short bursts of short living humongous objects preventively because eager humongous reclaim would reclaim those quickly anyway, freeing enough space.

      The current implementation does not consider the fact that if there are no humongous eager reclaim candidates (or any humongous objects) g1 won't free any extra space, so the preventive collection is useless, wasting time to do these preventive collections before going into a full gc.

            Unassigned Unassigned
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: