hotspot/src/share/vm/gc/g1/g1EvacStats.cpp
changeset 37068 fd8357c31be4
parent 36390 a2d991d1d628
child 37997 db6541410dfb
--- a/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp	Thu Mar 10 21:57:27 2016 +0000
+++ b/hotspot/src/share/vm/gc/g1/g1EvacStats.cpp	Fri Mar 11 09:50:23 2016 +0100
@@ -110,15 +110,9 @@
   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
-  size_t plab_sz;
-  plab_sz = MAX2(min_size(), (size_t)_filter.average());
-  plab_sz = MIN2(max_size(), plab_sz);
-  plab_sz = align_object_size(plab_sz);
-  // Latch the result
-  _desired_net_plab_sz = plab_sz;
+  _desired_net_plab_sz = MAX2(min_size(), (size_t)_filter.average());
 
-  log_sizing(cur_plab_sz, plab_sz);
+  log_sizing(cur_plab_sz, _desired_net_plab_sz);
   // Clear accumulators for next round.
   reset();
 }