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

G1 Full GC should not process free regions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 9
    • hotspot
    • gc

      G1 full gc visits free regions during the various phases of the MSC algorithm.

      This is completely unnecessary, and just slows down performance.

      This mostly affects system.gc calls by the user called on almost empty heaps for whatever reason.

      Anecdotally, system.gc duration at startup for specjvm benchmarks can be decreased by ~15% already by only applying this optimization to the compaction phase (this is a very special case).

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

              Created:
              Updated:
              Resolved: