Relates :
|
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).