hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp
void SimpleThresholdPolicy::initialize() {
{- -------------------------------------------
(1) オプションの値を調整
---------------------------------------- -}
if (FLAG_IS_DEFAULT(CICompilerCount)) {
FLAG_SET_DEFAULT(CICompilerCount, 3);
}
{- -------------------------------------------
(1) (変数宣言など)
---------------------------------------- -}
int count = CICompilerCount;
if (CICompilerCountPerCPU) {
count = MAX2(log2_intptr(os::active_processor_count()), 1) * 3 / 2;
}
{- -------------------------------------------
(1) (フィールドの初期化)
---------------------------------------- -}
set_c1_count(MAX2(count / 3, 1));
set_c2_count(MAX2(count - count / 3, 1));
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.