Skip to content

Commit 516197f

Browse files
committed
8359924: Deprecate and obsolete ParallelRefProcEnabled
Reviewed-by: tschatzl, kbarrett, dholmes
1 parent ad1033d commit 516197f

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

src/hotspot/share/gc/shared/gc_globals.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@
199199
range(1, (INT_MAX - 1)) \
200200
\
201201
product(bool, ParallelRefProcEnabled, false, \
202-
"Enable parallel reference processing whenever possible") \
202+
"(Deprecated) Enable parallel reference processing " \
203+
"whenever possible") \
203204
\
204205
product(bool, ParallelRefProcBalancingEnabled, true, \
205206
"Enable balancing of reference processing queues") \

src/hotspot/share/runtime/arguments.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ static SpecialFlag const special_jvm_flags[] = {
532532
#ifdef _LP64
533533
{ "UseCompressedClassPointers", JDK_Version::jdk(25), JDK_Version::jdk(26), JDK_Version::undefined() },
534534
#endif
535+
{ "ParallelRefProcEnabled", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
535536
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
536537
{ "CreateMinidumpOnCrash", JDK_Version::jdk(9), JDK_Version::undefined(), JDK_Version::undefined() },
537538

src/java.base/share/man/java.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2701,14 +2701,6 @@ Java HotSpot VM.
27012701

27022702
> `-XX:ParallelGCThreads=2`
27032703

2704-
`-XX:+ParallelRefProcEnabled`
2705-
: Enables parallel reference processing. By default, collectors employing multiple
2706-
threads perform parallel reference processing if the number of parallel threads
2707-
to use is larger than one.
2708-
The option is available only when the throughput or G1 garbage collector is used
2709-
(`-XX:+UseParallelGC` or `-XX:+UseG1GC`). Other collectors employing multiple
2710-
threads always perform reference processing in parallel.
2711-
27122704
`-XX:+PrintAdaptiveSizePolicy`
27132705
: Enables printing of information about adaptive-generation sizing. By
27142706
default, this option is disabled.
@@ -2904,6 +2896,14 @@ they're used.
29042896
: Enables the use of Java Flight Recorder (JFR) during the runtime of the
29052897
application. Since JDK 8u40 this option has not been required to use JFR.
29062898

2899+
`-XX:+ParallelRefProcEnabled`
2900+
: Enables parallel reference processing. By default, collectors employing multiple
2901+
threads perform parallel reference processing if the number of parallel threads
2902+
to use is larger than one.
2903+
The option is available only when the throughput or G1 garbage collector is used
2904+
(`-XX:+UseParallelGC` or `-XX:+UseG1GC`). Other collectors employing multiple
2905+
threads always perform reference processing in parallel.
2906+
29072907
## Obsolete Java Options
29082908

29092909
These `java` options are still accepted but ignored, and a warning is issued

0 commit comments

Comments
 (0)