< prev index next >

src/hotspot/share/gc/parallel/asPSYoungGen.cpp

Print this page
rev 56944 : imported patch 8233702-function-to-clamp-value-to-range

*** 165,176 **** "just checking"); // Adjust new generation size const size_t eden_plus_survivors = align_up(eden_size + 2 * survivor_size, alignment); ! size_t desired_size = MAX2(MIN2(eden_plus_survivors, gen_size_limit()), ! min_gen_size()); assert(desired_size <= gen_size_limit(), "just checking"); if (desired_size > orig_size) { // Grow the generation size_t change = desired_size - orig_size; --- 165,175 ---- "just checking"); // Adjust new generation size const size_t eden_plus_survivors = align_up(eden_size + 2 * survivor_size, alignment); ! size_t desired_size = clamp(eden_plus_survivors, min_gen_size(), gen_size_limit()); assert(desired_size <= gen_size_limit(), "just checking"); if (desired_size > orig_size) { // Grow the generation size_t change = desired_size - orig_size;
< prev index next >