8315040: Remove redundant check in WorkerPolicy::parallel_worker_threads

Reviewed-by: ayang, tschatzl
This commit is contained in:
Lei Zaakjyu 2023-12-18 11:05:48 +00:00 committed by Thomas Schatzl
parent a247d0c74b
commit ecff9c1ef7

View File

@ -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;