--- old/src/share/vm/gc/g1/g1CollectorPolicy.cpp 2016-03-10 10:49:13.592014134 +0100 +++ new/src/share/vm/gc/g1/g1CollectorPolicy.cpp 2016-03-10 10:49:13.460014128 +0100 @@ -241,14 +241,8 @@ "if a user set it to 0"); _gc_overhead_perc = 100.0 * (1.0 / (1.0 + GCTimeRatio)); - uintx reserve_perc = G1ReservePercent; - // Put an artificial ceiling on this so that it's not set to a silly value. - if (reserve_perc > 50) { - reserve_perc = 50; - warning("G1ReservePercent is set to a value that is too large, " - "it's been updated to " UINTX_FORMAT, reserve_perc); - } - _reserve_factor = (double) reserve_perc / 100.0; + guarantee(G1ReservePercent <= 50, "Range checking should not allow values over 50."); + _reserve_factor = (double) G1ReservePercent / 100.0; // This will be set when the heap is expanded // for the first time during initialization. _reserve_regions = 0;