RFR: 8359924: Deprecate and obsolete ParallelRefProcEnabled

Thomas Schatzl tschatzl at openjdk.org
Wed Jun 18 14:49:32 UTC 2025


On Wed, 18 Jun 2025 14:04:28 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> Deprecating `ParallelRefProcEnabled`, which is used only by Parallel and G1, and both have it enabled by default via:
> 
> 
>   if (FLAG_IS_DEFAULT(ParallelRefProcEnabled) && ParallelGCThreads > 1) {
>     FLAG_SET_DEFAULT(ParallelRefProcEnabled, true);
>   }
> 
> 
> Disabling it offers little benefit and its presence incurs some implementation complexity in the reference-processor.

I'm wondering whether we should make `ParallelRefProcBalancingEnabled` diagnostic at the same time? (Separately).

Same with `ReferencesPerThread`, again separately, but that does not need a CSR.

-------------

Marked as reviewed by tschatzl (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/25875#pullrequestreview-2939558285


More information about the hotspot-dev mailing list