JDK-8205328 : Release Note: G1 Enables Adaptive Parallel Reference Processing by Default
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2018-06-19
  • Updated: 2019-05-07
  • Resolved: 2018-10-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11Resolved
Related Reports
Relates :  
Description
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).