30 lines
1.5 KiB
Diff
30 lines
1.5 KiB
Diff
Date: Thu, 8 Jun 2023 20:38:26 +0800
|
|
Subject: 8198510: Enable UseDynamicNumberOfGCThreads by default
|
|
|
|
Bug url: https://bugs.openjdk.org/browse/JDK-8198510
|
|
---
|
|
hotspot/src/share/vm/runtime/globals.hpp | 7 ++++---
|
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/hotspot/src/share/vm/runtime/globals.hpp b/hotspot/src/share/vm/runtime/globals.hpp
|
|
index ac9165031..bdc49332a 100644
|
|
--- a/hotspot/src/share/vm/runtime/globals.hpp
|
|
+++ b/hotspot/src/share/vm/runtime/globals.hpp
|
|
@@ -1504,9 +1504,10 @@ class CommandLineFlags {
|
|
product(uintx, ParallelGCThreads, 0, \
|
|
"Number of parallel threads parallel gc will use") \
|
|
\
|
|
- product(bool, UseDynamicNumberOfGCThreads, false, \
|
|
- "Dynamically choose the number of parallel threads " \
|
|
- "parallel gc will use") \
|
|
+ product(bool, UseDynamicNumberOfGCThreads, true, \
|
|
+ "Dynamically choose the number of threads up to a maximum of " \
|
|
+ "ParallelGCThreads parallel collectors will use for garbage " \
|
|
+ "collection work") \
|
|
\
|
|
diagnostic(bool, ForceDynamicNumberOfGCThreads, false, \
|
|
"Force dynamic selection of the number of " \
|
|
--
|
|
2.22.0
|
|
|