hotspot/src/share/vm/runtime/advancedThresholdPolicy.cpp
changeset 24013 1d16b0f1060d
parent 22551 9bf46d16dcc6
child 24321 621f7e09fc0a
--- a/hotspot/src/share/vm/runtime/advancedThresholdPolicy.cpp	Fri Apr 11 11:33:00 2014 +0200
+++ b/hotspot/src/share/vm/runtime/advancedThresholdPolicy.cpp	Mon Apr 14 08:24:28 2014 +0200
@@ -53,7 +53,8 @@
   }
 
   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());
 
   // Some inlining tuning
 #ifdef X86