< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahFreeSet.cpp

Print this page

        

@@ -428,11 +428,11 @@
       _mutator_free_bitmap.set_bit(idx);
     }
   }
 
   // Evac reserve: reserve trailing space for evacuations
-  size_t to_reserve = _heap->max_capacity() / 100 * ShenandoahEvacReserve;
+  size_t to_reserve = ShenandoahEvacReserve * _heap->capacity() / 100;
   size_t reserved = 0;
 
   for (size_t idx = _heap->num_regions() - 1; idx > 0; idx--) {
     if (reserved >= to_reserve) break;
 
< prev index next >