< prev index next >

src/hotspot/share/gc/shenandoah/heuristics/shenandoahPassiveHeuristics.cpp

Print this page

        

*** 79,90 **** size_t actual_free) { assert(ShenandoahDegeneratedGC, "This path is only taken for Degenerated GC"); // 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(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", actual_free / M, max_cset / M); --- 79,90 ---- size_t actual_free) { assert(ShenandoahDegeneratedGC, "This path is only taken for Degenerated GC"); // 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()->capacity(); ! size_t available = MAX2(ShenandoahEvacReserve * capacity / 100, 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", actual_free / M, max_cset / M);
< prev index next >