--- a/src/hotspot/share/gc/parallel/parallelArguments.cpp Fri Dec 07 18:00:41 2018 +0100
+++ b/src/hotspot/share/gc/parallel/parallelArguments.cpp Fri Dec 07 12:46:31 2018 +0800
@@ -29,10 +29,10 @@
#include "gc/shared/adaptiveSizePolicy.hpp"
#include "gc/shared/collectorPolicy.hpp"
#include "gc/shared/gcArguments.inline.hpp"
+#include "gc/shared/workerPolicy.hpp"
#include "runtime/globals.hpp"
#include "runtime/globals_extension.hpp"
#include "runtime/java.hpp"
-#include "runtime/vm_version.hpp"
#include "utilities/defaultStream.hpp"
size_t ParallelArguments::conservative_max_heap_alignment() {
@@ -51,7 +51,7 @@
// If no heap maximum was requested explicitly, use some reasonable fraction
// of the physical memory, up to a maximum of 1GB.
FLAG_SET_DEFAULT(ParallelGCThreads,
- VM_Version::parallel_worker_threads());
+ WorkerPolicy::parallel_worker_threads());
if (ParallelGCThreads == 0) {
jio_fprintf(defaultStream::error_stream(),
"The Parallel GC can not be combined with -XX:ParallelGCThreads=0\n");