Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8205043 Make parallel reference processing default for G1
  3. JDK-8205328

Release Note: G1 Enables Adaptive Parallel Reference Processing by Default

XMLWordPrintable

    • gc
    • Verified

      By default, G1 now determines the optimal number of threads to use for `java.lang.ref.Reference` processing during garbage collection. The flag, `-XX:ParallelRefProcEnabled`, is now `true` (enabled) by default.

      The change improves this phase of the garbage collection pause significantly on machines with more than one thread available for garbage collection.

      If you experience increased garbage collection pauses, you can revert to the original behavior by specifying `-XX:-ParallelRefProcEnabled` on the command line.
      The adaptiveness of `java.lang.ref.Reference` processing can be tuned by using the experimental option, `-XX:ReferencesPerThread` (default value: 1000).

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

              Created:
              Updated:
              Resolved: