File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3636#include " gc/shared/fullGCForwarding.hpp"
3737#include " gc/shared/gcArguments.hpp"
3838#include " gc/shared/workerPolicy.hpp"
39+ #include " runtime/flags/jvmFlagLimit.hpp"
3940#include " runtime/globals.hpp"
4041#include " runtime/globals_extension.hpp"
4142#include " runtime/java.hpp"
@@ -190,7 +191,8 @@ void G1Arguments::initialize() {
190191 }
191192 FLAG_SET_DEFAULT (G1ConcRefinementThreads, 0 );
192193 } else if (FLAG_IS_DEFAULT (G1ConcRefinementThreads)) {
193- FLAG_SET_ERGO (G1ConcRefinementThreads, ParallelGCThreads);
194+ const JVMTypedFlagLimit<uint>* conc_refinement_threads_limits = JVMFlagLimit::get_range_at (FLAG_MEMBER_ENUM (G1ConcRefinementThreads))->cast <uint>();
195+ FLAG_SET_ERGO (G1ConcRefinementThreads, MIN2 (ParallelGCThreads, conc_refinement_threads_limits->max ()));
194196 }
195197
196198 if (FLAG_IS_DEFAULT (ConcGCThreads) || ConcGCThreads == 0 ) {
You can’t perform that action at this time.
0 commit comments