hotspot/src/share/vm/runtime/advancedThresholdPolicy.cpp
changeset 35155 db692d3ebbcc
parent 33593 60764a78fa5c
child 35547 0ee84aa8e705
--- a/hotspot/src/share/vm/runtime/advancedThresholdPolicy.cpp	Mon Dec 28 23:11:01 2015 -0800
+++ b/hotspot/src/share/vm/runtime/advancedThresholdPolicy.cpp	Mon Dec 21 16:58:29 2015 +0000
@@ -133,7 +133,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