Mercurial > hg > graal-compiler
diff src/share/vm/memory/collectorPolicy.cpp @ 7451:ca0a78017dc7
8005396: Use ParNew with only one thread instead of DefNew as default for CMS on single CPU machines
Reviewed-by: jmasa, jcoomes
author | brutisso |
---|---|
date | Sun, 30 Dec 2012 08:47:52 +0100 |
parents | e51c9860cf66 |
children | db9981fd3124 95ccff9eee8e |
line wrap: on
line diff
--- a/src/share/vm/memory/collectorPolicy.cpp Thu Jan 03 16:28:22 2013 -0800 +++ b/src/share/vm/memory/collectorPolicy.cpp Sun Dec 30 08:47:52 2012 +0100 @@ -827,7 +827,7 @@ if (_generations == NULL) vm_exit_during_initialization("Unable to allocate gen spec"); - if (UseParNewGC && ParallelGCThreads > 0) { + if (UseParNewGC) { _generations[0] = new GenerationSpec(Generation::ParNew, _initial_gen0_size, _max_gen0_size); } else { _generations[0] = new GenerationSpec(Generation::DefNew, _initial_gen0_size, _max_gen0_size); @@ -840,10 +840,9 @@ void MarkSweepPolicy::initialize_gc_policy_counters() { // initialize the policy counters - 2 collectors, 3 generations - if (UseParNewGC && ParallelGCThreads > 0) { + if (UseParNewGC) { _gc_policy_counters = new GCPolicyCounters("ParNew:MSC", 2, 3); - } - else { + } else { _gc_policy_counters = new GCPolicyCounters("Copy:MSC", 2, 3); } }