src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp
changeset 54833 76751d3faf7b
parent 54477 511be32f3863
child 58543 a7a606f6311c
--- a/src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp	Tue May 14 09:12:00 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp	Tue May 14 09:12:06 2019 +0200
@@ -430,7 +430,7 @@
   }
 
   // Evac reserve: reserve trailing space for evacuations
-  size_t to_reserve = ShenandoahEvacReserve * _heap->max_capacity() / 100;
+  size_t to_reserve = _heap->max_capacity() / 100 * ShenandoahEvacReserve;
   size_t reserved = 0;
 
   for (size_t idx = _heap->num_regions() - 1; idx > 0; idx--) {