hotspot/src/share/vm/gc/g1/g1EvacStats.cpp
changeset 32822 c49bdfeb5941
parent 32739 eaafda0f76d9
child 33105 294e48b4f704
--- 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