< prev index next >

src/hotspot/share/gc/cms/cmsArguments.cpp

Print this page
rev 52689 : 8213224: Move code related to GC threads calculation out of AdaptiveSizePolicy
Summary: Consolidate code related to GC threads calculation into a single class

*** 28,41 **** #include "gc/cms/cmsCollectorPolicy.hpp" #include "gc/cms/cmsHeap.hpp" #include "gc/cms/compactibleFreeListSpace.hpp" #include "gc/shared/gcArguments.inline.hpp" #include "gc/shared/genCollectedHeap.hpp" #include "runtime/arguments.hpp" #include "runtime/globals.hpp" #include "runtime/globals_extension.hpp" - #include "runtime/vm_version.hpp" #include "utilities/defaultStream.hpp" size_t CMSArguments::conservative_max_heap_alignment() { return GenCollectedHeap::conservative_max_heap_alignment(); } --- 28,41 ---- #include "gc/cms/cmsCollectorPolicy.hpp" #include "gc/cms/cmsHeap.hpp" #include "gc/cms/compactibleFreeListSpace.hpp" #include "gc/shared/gcArguments.inline.hpp" #include "gc/shared/genCollectedHeap.hpp" + #include "gc/shared/workerPolicy.hpp" #include "runtime/arguments.hpp" #include "runtime/globals.hpp" #include "runtime/globals_extension.hpp" #include "utilities/defaultStream.hpp" size_t CMSArguments::conservative_max_heap_alignment() { return GenCollectedHeap::conservative_max_heap_alignment(); }
*** 44,54 **** assert(!UseSerialGC && !UseParallelOldGC && !UseParallelGC && !UseG1GC, "control point invariant"); assert(UseConcMarkSweepGC, "CMS is expected to be on here"); if (FLAG_IS_DEFAULT(ParallelGCThreads)) { ! FLAG_SET_DEFAULT(ParallelGCThreads, VM_Version::parallel_worker_threads()); assert(ParallelGCThreads > 0, "We should always have at least one thread by default"); } else if (ParallelGCThreads == 0) { jio_fprintf(defaultStream::error_stream(), "The ParNew GC can not be combined with -XX:ParallelGCThreads=0\n"); vm_exit(1); --- 44,54 ---- assert(!UseSerialGC && !UseParallelOldGC && !UseParallelGC && !UseG1GC, "control point invariant"); assert(UseConcMarkSweepGC, "CMS is expected to be on here"); if (FLAG_IS_DEFAULT(ParallelGCThreads)) { ! FLAG_SET_DEFAULT(ParallelGCThreads, WorkerPolicy::parallel_worker_threads()); assert(ParallelGCThreads > 0, "We should always have at least one thread by default"); } else if (ParallelGCThreads == 0) { jio_fprintf(defaultStream::error_stream(), "The ParNew GC can not be combined with -XX:ParallelGCThreads=0\n"); vm_exit(1);
< prev index next >