--- 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)",