--- old/src/share/vm/runtime/advancedThresholdPolicy.cpp 2013-10-21 11:47:07.903829163 +0200 +++ new/src/share/vm/runtime/advancedThresholdPolicy.cpp 2013-10-21 11:47:07.791829165 +0200 @@ -52,8 +52,12 @@ count = MAX2(log_cpu * loglog_cpu, 1) * 3 / 2; } - set_c1_count(MAX2(count / 3, 1)); - set_c2_count(MAX2(count - count / 3, 1)); + assert ((c1_count() == 0) && (c2_count() == 0), "Must be initialized to 0"); + // Set number of compiler threads only if we also use the compiler + if (Arguments::mode() != Arguments::_int) { + set_c1_count(MAX2(count / 3, 1)); + set_c2_count(MAX2(count - count / 3, 1)); + } // Some inlining tuning #ifdef X86