src/hotspot/share/gc/shenandoah/heuristics/shenandoahStaticHeuristics.cpp
changeset 54833 76751d3faf7b
parent 54477 511be32f3863
child 55587 4644b3155fce
child 58678 9cf78a70fa4f
--- a/src/hotspot/share/gc/shenandoah/heuristics/shenandoahStaticHeuristics.cpp	Tue May 14 09:12:00 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/heuristics/shenandoahStaticHeuristics.cpp	Tue May 14 09:12:06 2019 +0200
@@ -54,7 +54,7 @@
 
   size_t capacity = heap->max_capacity();
   size_t available = heap->free_set()->available();
-  size_t threshold_available = (capacity * ShenandoahFreeThreshold) / 100;
+  size_t threshold_available = capacity / 100 * ShenandoahFreeThreshold;
 
   if (available < threshold_available) {
     log_info(gc)("Trigger: Free (" SIZE_FORMAT "M) is below free threshold (" SIZE_FORMAT "M)",