--- old/src/share/vm/runtime/advancedThresholdPolicy.cpp 2019-02-01 11:42:03.417032795 +0100 +++ new/src/share/vm/runtime/advancedThresholdPolicy.cpp 2019-02-01 11:41:57.726077906 +0100 @@ -131,7 +131,8 @@ } double AdvancedThresholdPolicy::weight(Method* method) { - return (method->rate() + 1) * ((method->invocation_count() + 1) * (method->backedge_count() + 1)); + return (double)(method->rate() + 1) * + (method->invocation_count() + 1) * (method->backedge_count() + 1); } // Apply heuristics and return true if x should be compiled before y