Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
LizBing committed Dec 15, 2023
1 parent bdebf19 commit 6e618fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/hotspot/share/gc/shared/workerPolicy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ uint WorkerPolicy::calc_parallel_worker_threads() {

uint WorkerPolicy::parallel_worker_threads() {
if (!_parallel_worker_threads_initialized) {
if (FLAG_IS_DEFAULT(ParallelGCThreads)) {
_parallel_worker_threads = WorkerPolicy::calc_parallel_worker_threads();
} else {
_parallel_worker_threads = ParallelGCThreads;
}
_parallel_worker_threads = WorkerPolicy::calc_parallel_worker_threads();
_parallel_worker_threads_initialized = true;
}
return _parallel_worker_threads;
Expand Down

0 comments on commit 6e618fe

Please sign in to comment.