diff -r 3b998574be4b -r 82b2ba888190 src/hotspot/share/gc/z/zArguments.cpp --- a/src/hotspot/share/gc/z/zArguments.cpp Wed Nov 20 10:37:46 2019 +0100 +++ b/src/hotspot/share/gc/z/zArguments.cpp Wed Nov 20 10:37:46 2019 +0100 @@ -25,7 +25,7 @@ #include "gc/z/zAddressSpaceLimit.hpp" #include "gc/z/zArguments.hpp" #include "gc/z/zCollectedHeap.hpp" -#include "gc/z/zWorkers.hpp" +#include "gc/z/zHeuristics.hpp" #include "gc/shared/gcArguments.hpp" #include "runtime/globals.hpp" #include "runtime/globals_extension.hpp" @@ -59,7 +59,7 @@ // Select number of parallel threads if (FLAG_IS_DEFAULT(ParallelGCThreads)) { - FLAG_SET_DEFAULT(ParallelGCThreads, ZWorkers::calculate_nparallel()); + FLAG_SET_DEFAULT(ParallelGCThreads, ZHeuristics::nparallel_workers()); } if (ParallelGCThreads == 0) { @@ -68,7 +68,7 @@ // Select number of concurrent threads if (FLAG_IS_DEFAULT(ConcGCThreads)) { - FLAG_SET_DEFAULT(ConcGCThreads, ZWorkers::calculate_nconcurrent()); + FLAG_SET_DEFAULT(ConcGCThreads, ZHeuristics::nconcurrent_workers()); } if (ConcGCThreads == 0) {