Skip to content

Commit e8214e8

Browse files
committed
global profiles: in jit no function is extra hot
1 parent e715aac commit e8214e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/phases/common/util/GlobalProfilesOptimizationUtility.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public static boolean shouldPrioritizeForOptimization(StructuredGraph graph) {
7676
final double globalSelfTimePercent = graph.globalProfileProvider().getGlobalSelfTimePercent();
7777
if (globalSelfTimePercent == StructuredGraph.GlobalProfileProvider.GLOBAL_PROFILE_PROVIDER_DISABLED) {
7878
// We are in a mode where there is no self time data available. In JIT all compilation
79-
// units are hot.
80-
return true;
79+
// units are hot but none is extra hot.
80+
return false;
8181
}
8282
return globalSelfTimePercent > Options.HotCodeMinSelfTime.getValue(graph.getOptions());
8383
}

0 commit comments

Comments
 (0)