src/share/vm/gc_implementation/concurrentMarkSweep/cmsCollectorPolicy.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hs-gc-reduce Cdiff src/share/vm/gc_implementation/concurrentMarkSweep/cmsCollectorPolicy.cpp

src/share/vm/gc_implementation/concurrentMarkSweep/cmsCollectorPolicy.cpp

Print this page

        

*** 54,64 **** void ConcurrentMarkSweepPolicy::initialize_generations() { _generations = new GenerationSpecPtr[number_of_generations()]; if (_generations == NULL) vm_exit_during_initialization("Unable to allocate gen spec"); ! if (ParNewGeneration::in_use()) { if (UseAdaptiveSizePolicy) { _generations[0] = new GenerationSpec(Generation::ASParNew, _initial_gen0_size, _max_gen0_size); } else { _generations[0] = new GenerationSpec(Generation::ParNew, --- 54,64 ---- void ConcurrentMarkSweepPolicy::initialize_generations() { _generations = new GenerationSpecPtr[number_of_generations()]; if (_generations == NULL) vm_exit_during_initialization("Unable to allocate gen spec"); ! if (UseParNewGC) { if (UseAdaptiveSizePolicy) { _generations[0] = new GenerationSpec(Generation::ASParNew, _initial_gen0_size, _max_gen0_size); } else { _generations[0] = new GenerationSpec(Generation::ParNew,
*** 94,104 **** GCTimeRatio); } void ConcurrentMarkSweepPolicy::initialize_gc_policy_counters() { // initialize the policy counters - 2 collectors, 3 generations ! if (ParNewGeneration::in_use()) { _gc_policy_counters = new GCPolicyCounters("ParNew:CMS", 2, 3); } else { _gc_policy_counters = new GCPolicyCounters("Copy:CMS", 2, 3); } --- 94,104 ---- GCTimeRatio); } void ConcurrentMarkSweepPolicy::initialize_gc_policy_counters() { // initialize the policy counters - 2 collectors, 3 generations ! if (UseParNewGC) { _gc_policy_counters = new GCPolicyCounters("ParNew:CMS", 2, 3); } else { _gc_policy_counters = new GCPolicyCounters("Copy:CMS", 2, 3); }
*** 117,127 **** void ASConcurrentMarkSweepPolicy::initialize_gc_policy_counters() { assert(size_policy() != NULL, "A size policy is required"); // initialize the policy counters - 2 collectors, 3 generations ! if (ParNewGeneration::in_use()) { _gc_policy_counters = new CMSGCAdaptivePolicyCounters("ParNew:CMS", 2, 3, size_policy()); } else { _gc_policy_counters = new CMSGCAdaptivePolicyCounters("Copy:CMS", 2, 3, --- 117,127 ---- void ASConcurrentMarkSweepPolicy::initialize_gc_policy_counters() { assert(size_policy() != NULL, "A size policy is required"); // initialize the policy counters - 2 collectors, 3 generations ! if (UseParNewGC) { _gc_policy_counters = new CMSGCAdaptivePolicyCounters("ParNew:CMS", 2, 3, size_policy()); } else { _gc_policy_counters = new CMSGCAdaptivePolicyCounters("Copy:CMS", 2, 3,
src/share/vm/gc_implementation/concurrentMarkSweep/cmsCollectorPolicy.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File