Mercurial > hg > graal-compiler
diff src/share/vm/runtime/arguments.hpp @ 1244:745c853ee57f
6885297: java -XX:RefDiscoveryPolicy=2 or -XX:TLABWasteTargetPercent=0 cause VM crash
Summary: Interval checking is now being performed on the values passed in for these two flags. The current acceptable range for RefDiscoveryPolicy is [0..1], and for TLABWasteTargetPercent it is [1..100].
Reviewed-by: apetrusenko, ysr
author | johnc |
---|---|
date | Fri, 29 Jan 2010 14:51:38 -0800 |
parents | 473cce303f13 |
children | 5f1f51edaff6 |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.hpp Wed Jan 27 22:38:37 2010 -0800 +++ b/src/share/vm/runtime/arguments.hpp Fri Jan 29 14:51:38 2010 -0800 @@ -336,6 +336,8 @@ static bool is_bad_option(const JavaVMOption* option, jboolean ignore) { return is_bad_option(option, ignore, NULL); } + static bool verify_interval(uintx val, uintx min, + uintx max, const char* name); static bool verify_percentage(uintx value, const char* name); static void describe_range_error(ArgsRange errcode); static ArgsRange check_memory_size(julong size, julong min_size);