[9] RFR(M): 8078554: Compiler: implement ranges (optionally constraints) for those flags that have them missing
Zoltán Majó
zoltan.majo at oracle.com
Wed Sep 30 10:09:58 UTC 2015
Hi,
please review the following patch for JDK-8078554.
Bug: https://bugs.openjdk.java.net/browse/JDK-8078554
Problem: JEP-245 [1] proposes to validate all flags passed to the JVM at
the command-line. The goal of the JEP-245 is to avoid VM crashes caused
by flags having incorrect values. Instead, the JVM should print out an
error message meaningful to the user. The current issue is a sub-task of
JEP-245 and changes the handling of flags controlling the compiler.
Solution: Flags can be checked against predefined ranges and/or
constraints. This patch define ranges or constraints to all
compiler-related flags.
Webrev: http://cr.openjdk.java.net/~zmajo/8078554/
Testing:
- JPRT (incl. the currently disabled
runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java test);
- all hotspot tests (incl. TestOptionsWithRanges.java) executed on all
platforms (incl. embedded).
Thank you and best regards,
Zoltan
[1] https://bugs.openjdk.java.net/browse/JDK-8059557
More information about the hotspot-compiler-dev
mailing list