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

Deprecate and obsolete ParallelRefProcBalancingEnabled

XMLWordPrintable

    • gc
    • 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")   \
                                                                                   \

            ayang Albert Yang
            ayang Albert Yang
            Kim Barrett, Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: