From ecff9c1ef7110ce80e5ba3e13af31e2c704eb3b0 Mon Sep 17 00:00:00 2001 From: Lei Zaakjyu Date: Mon, 18 Dec 2023 11:05:48 +0000 Subject: [PATCH] 8315040: Remove redundant check in WorkerPolicy::parallel_worker_threads Reviewed-by: ayang, tschatzl --- src/hotspot/share/gc/shared/workerPolicy.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/hotspot/share/gc/shared/workerPolicy.cpp b/src/hotspot/share/gc/shared/workerPolicy.cpp index 6db711a959e..4ab178dd6a7 100644 --- a/src/hotspot/share/gc/shared/workerPolicy.cpp +++ b/src/hotspot/share/gc/shared/workerPolicy.cpp @@ -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;