changeset 9322:e144340c417a

8135179: Fix conversion warning after 8067341 Summary: Add required casts. Reviewed-by: tschatzl, goetz
author simonis
date Mon, 21 Sep 2015 10:45:41 +0200
parents b19bd30ae9f3
children 111681c88c9a
files src/share/vm/gc/g1/g1EvacStats.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/gc/g1/g1EvacStats.cpp	Fri Sep 18 09:48:49 2015 -0700
+++ b/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