RFR: JDK-8151604: Rely on options range checking rather than explict checks (original) (raw)

Derek White derek.white at oracle.com
Thu Mar 10 16:03:41 UTC 2016


On 3/10/16 4:59 AM, Bengt Rutisson wrote:

Hi everyone, Could I have a couple of reviews for this change? http://cr.openjdk.java.net/~brutisso/8151604/webrev.00/ https://bugs.openjdk.java.net/browse/JDK-8151604 With the new range checking in the argument parsing we don't need to have explicit checks in the code to handle invalid arguments. Thanks, Bengt

Great idea. Only comment is that this can go further (I only checked g1CollectorPolicy):

g1CollectorPolicy.cpp:

range(1, max_uintx)

The checks from lines 220-228 are probably covered by the constraint functions (MaxGCPauseMillisConstraintFunc(), etc), but this RFE is about ranges :-)



More information about the hotspot-gc-dev mailing list