8135179: Fix conversion warning after 8067341
authorsimonis
Mon, 21 Sep 2015 10:45:41 +0200
changeset 32822 c49bdfeb5941
parent 32821 ef088e4410ea
child 32823 ca8fef4cd57b
8135179: Fix conversion warning after 8067341 Summary: Add required casts. Reviewed-by: tschatzl, goetz
hotspot/src/share/vm/gc/g1/g1EvacStats.cpp
--- a/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp	Fri Sep 18 09:48:49 2015 -0700
+++ b/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp	Mon Sep 21 10:45:41 2015 +0200
@@ -93,7 +93,7 @@
     size_t const used_for_waste_calculation = used() > _region_end_waste ? used() - _region_end_waste : 0;
 
     size_t const total_waste_allowed = used_for_waste_calculation * TargetPLABWastePct;
-    size_t const cur_plab_sz = (double)total_waste_allowed / G1LastPLABAverageOccupancy;
+    size_t const cur_plab_sz = (size_t)((double)total_waste_allowed / G1LastPLABAverageOccupancy);
     // Take historical weighted average
     _filter.sample(cur_plab_sz);
     // Clip from above and below, and align to object boundary