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

changeset 4387
ca0a78017dc7
parent 4299
f34d701e952e
child 4962
6f817ce50129
     1.1 --- a/src/share/vm/gc_implementation/concurrentMarkSweep/cmsCollectorPolicy.cpp	Thu Jan 03 16:28:22 2013 -0800
     1.2 +++ b/src/share/vm/gc_implementation/concurrentMarkSweep/cmsCollectorPolicy.cpp	Sun Dec 30 08:47:52 2012 +0100
     1.3 @@ -56,7 +56,7 @@
     1.4    if (_generations == NULL)
     1.5      vm_exit_during_initialization("Unable to allocate gen spec");
     1.6  
     1.7 -  if (ParNewGeneration::in_use()) {
     1.8 +  if (UseParNewGC) {
     1.9      if (UseAdaptiveSizePolicy) {
    1.10        _generations[0] = new GenerationSpec(Generation::ASParNew,
    1.11                                             _initial_gen0_size, _max_gen0_size);
    1.12 @@ -96,7 +96,7 @@
    1.13  
    1.14  void ConcurrentMarkSweepPolicy::initialize_gc_policy_counters() {
    1.15    // initialize the policy counters - 2 collectors, 3 generations
    1.16 -  if (ParNewGeneration::in_use()) {
    1.17 +  if (UseParNewGC) {
    1.18      _gc_policy_counters = new GCPolicyCounters("ParNew:CMS", 2, 3);
    1.19    }
    1.20    else {
    1.21 @@ -119,7 +119,7 @@
    1.22  
    1.23    assert(size_policy() != NULL, "A size policy is required");
    1.24    // initialize the policy counters - 2 collectors, 3 generations
    1.25 -  if (ParNewGeneration::in_use()) {
    1.26 +  if (UseParNewGC) {
    1.27      _gc_policy_counters = new CMSGCAdaptivePolicyCounters("ParNew:CMS", 2, 3,
    1.28        size_policy());
    1.29    }

mercurial