hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp
changeset 24013 1d16b0f1060d
parent 22551 9bf46d16dcc6
child 24321 621f7e09fc0a
--- a/hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp	Fri Apr 11 11:33:00 2014 +0200
+++ b/hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp	Mon Apr 14 08:24:28 2014 +0200
@@ -142,7 +142,8 @@
     count = MAX2(log2_intptr(os::active_processor_count()), 1) * 3 / 2;
   }
   set_c1_count(MAX2(count / 3, 1));
-  set_c2_count(MAX2(count - count / 3, 1));
+  set_c2_count(MAX2(count - c1_count(), 1));
+  FLAG_SET_ERGO(intx, CICompilerCount, c1_count() + c2_count());
 }
 
 void SimpleThresholdPolicy::set_carry_if_necessary(InvocationCounter *counter) {