-
CSR
-
Resolution: Approved
-
P4
-
behavioral
-
minimal
-
The current default value has been to use parallel reference processing for many releases and heard no complaints. Other parallel collectors also do not allow this choice. Searching on internet found no usages of this flag.
-
add/remove/modify command line option
-
JDK
Summary
Deprecate the ParallelRefProcBalancingEnabled
flag in JDK 26 and obsolete it in JDK 27, then remove in JDK 28.
Problem
ParallelRefProcBalancingEnabled
incurs some implementation complexity in reference processing. However, there is no benefit in disabling this flag, as the cost of balancing is proportional to the number of elements that need to be moved -- if the queues are already balanced, the overhead is minimal.
This flag is used only by the Parallel and G1 collectors, and both have it enabled by default.
Solution
Deprecate the ParallelRefProcBalancingEnabled
flag in JDK 26 and obsolete it in JDK 27, then remove in JDK 28.
Specification
product(bool, ParallelRefProcBalancingEnabled, true, \
- "Enable balancing of reference processing queues") \
+ "(Deprecated) Enable balancing of reference processing queues") \
\
- csr of
-
JDK-8360220 Deprecate and obsolete ParallelRefProcBalancingEnabled
-
- Resolved
-