Skip to content

Commit ce51ee0

Browse files
authored
Merge pull request #22834 from ymanton/high-opt-fan-in
Enable fan-in heuristics at high opt, reduce method size threshold from 50 to 30 for all opt levels
2 parents 0965ddf + 9a53761 commit ce51ee0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

runtime/compiler/control/J9Options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ int32_t J9::Options::_maxIprofilingCount = TR_DEFAULT_INITIAL_COUNT; // 3000
196196
int32_t J9::Options::_maxIprofilingCountInStartupMode = TR_QUICKSTART_INITIAL_COUNT; // 1000
197197
int32_t J9::Options::_iprofilerFailRateThreshold = 70; // percent 1-100
198198
int32_t J9::Options::_iprofilerFailHistorySize = 10; // percent 1-100
199-
int32_t J9::Options::_iprofilerFaninMethodMinSize = 50; // bytecodes
199+
int32_t J9::Options::_iprofilerFaninMethodMinSize = 30; // bytecodes
200200

201201
int32_t J9::Options::_compYieldStatsThreshold = 1000; // usec
202202
int32_t J9::Options::_compYieldStatsHeartbeatPeriod = 0; // ms

runtime/compiler/optimizer/InlinerTempForJ9.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,8 @@ TR_J9InlinerPolicy::adjustFanInSizeInWeighCallSite(int32_t& weight,
29722972
29732973
INLINE_fanInCallGraphFactor is an integer number divided by 100. This allows us to avoid using float numbers for specifying the factor.
29742974
*/
2975-
if (comp()->getMethodHotness() > warm)
2975+
static bool disableFanInAtHighOpt = feGetEnv("TR_disableFanInAtHighOpt") != NULL;
2976+
if (disableFanInAtHighOpt && comp()->getMethodHotness() > warm)
29762977
return;
29772978

29782979
uint32_t thresholdSize = (!comp()->getOption(TR_InlinerFanInUseCalculatedSize)) ? getJ9InitialBytecodeSize(callee, 0, comp()) : size;

0 commit comments

Comments
 (0)