src/hotspot/share/gc/shenandoah/heuristics/shenandoahPassiveHeuristics.cpp
changeset 54833 76751d3faf7b
parent 54477 511be32f3863
child 55587 4644b3155fce
child 58678 9cf78a70fa4f
--- a/src/hotspot/share/gc/shenandoah/heuristics/shenandoahPassiveHeuristics.cpp	Tue May 14 09:12:00 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/heuristics/shenandoahPassiveHeuristics.cpp	Tue May 14 09:12:06 2019 +0200
@@ -82,7 +82,7 @@
   // Do not select too large CSet that would overflow the available free space.
   // Take at least the entire evacuation reserve, and be free to overflow to free space.
   size_t capacity  = ShenandoahHeap::heap()->max_capacity();
-  size_t available = MAX2(ShenandoahEvacReserve * capacity / 100, actual_free);
+  size_t available = MAX2(capacity / 100 * ShenandoahEvacReserve, actual_free);
   size_t max_cset  = (size_t)(available / ShenandoahEvacWaste);
 
   log_info(gc, ergo)("CSet Selection. Actual Free: " SIZE_FORMAT "M, Max CSet: " SIZE_FORMAT "M",