1.1 --- a/src/share/vm/runtime/advancedThresholdPolicy.cpp Wed Jan 30 17:32:47 2019 +0000 1.2 +++ b/src/share/vm/runtime/advancedThresholdPolicy.cpp Fri Feb 01 10:47:30 2019 +0100 1.3 @@ -131,7 +131,8 @@ 1.4 } 1.5 1.6 double AdvancedThresholdPolicy::weight(Method* method) { 1.7 - return (method->rate() + 1) * ((method->invocation_count() + 1) * (method->backedge_count() + 1)); 1.8 + return (double)(method->rate() + 1) * 1.9 + (method->invocation_count() + 1) * (method->backedge_count() + 1); 1.10 } 1.11 1.12 // Apply heuristics and return true if x should be compiled before y