src/hotspot/share/gc/parallel/parallelArguments.cpp
changeset 52904 d2f118d3f8e7
parent 52148 2d9f8845d0ae
child 53117 37930c6ba6d7
equal deleted inserted replaced
52903:535144bfa542 52904:d2f118d3f8e7
    27 #include "gc/parallel/parallelArguments.hpp"
    27 #include "gc/parallel/parallelArguments.hpp"
    28 #include "gc/parallel/parallelScavengeHeap.hpp"
    28 #include "gc/parallel/parallelScavengeHeap.hpp"
    29 #include "gc/shared/adaptiveSizePolicy.hpp"
    29 #include "gc/shared/adaptiveSizePolicy.hpp"
    30 #include "gc/shared/collectorPolicy.hpp"
    30 #include "gc/shared/collectorPolicy.hpp"
    31 #include "gc/shared/gcArguments.inline.hpp"
    31 #include "gc/shared/gcArguments.inline.hpp"
       
    32 #include "gc/shared/workerPolicy.hpp"
    32 #include "runtime/globals.hpp"
    33 #include "runtime/globals.hpp"
    33 #include "runtime/globals_extension.hpp"
    34 #include "runtime/globals_extension.hpp"
    34 #include "runtime/java.hpp"
    35 #include "runtime/java.hpp"
    35 #include "runtime/vm_version.hpp"
       
    36 #include "utilities/defaultStream.hpp"
    36 #include "utilities/defaultStream.hpp"
    37 
    37 
    38 size_t ParallelArguments::conservative_max_heap_alignment() {
    38 size_t ParallelArguments::conservative_max_heap_alignment() {
    39   return CollectorPolicy::compute_heap_alignment();
    39   return CollectorPolicy::compute_heap_alignment();
    40 }
    40 }
    49   FLAG_SET_DEFAULT(UseParallelGC, true);
    49   FLAG_SET_DEFAULT(UseParallelGC, true);
    50 
    50 
    51   // If no heap maximum was requested explicitly, use some reasonable fraction
    51   // If no heap maximum was requested explicitly, use some reasonable fraction
    52   // of the physical memory, up to a maximum of 1GB.
    52   // of the physical memory, up to a maximum of 1GB.
    53   FLAG_SET_DEFAULT(ParallelGCThreads,
    53   FLAG_SET_DEFAULT(ParallelGCThreads,
    54                    VM_Version::parallel_worker_threads());
    54                    WorkerPolicy::parallel_worker_threads());
    55   if (ParallelGCThreads == 0) {
    55   if (ParallelGCThreads == 0) {
    56     jio_fprintf(defaultStream::error_stream(),
    56     jio_fprintf(defaultStream::error_stream(),
    57         "The Parallel GC can not be combined with -XX:ParallelGCThreads=0\n");
    57         "The Parallel GC can not be combined with -XX:ParallelGCThreads=0\n");
    58     vm_exit(1);
    58     vm_exit(1);
    59   }
    59   }