Mercurial > hg > truffle
diff src/share/vm/runtime/arguments.hpp @ 1744:f8c5d1bdaad4
6885308: The incorrect -XX:StackRedPages, -XX:StackShadowPages, -XX:StackYellowPages could cause VM crash
Summary: Test minimal stack sizes given (also fixed linux compilation error)
Reviewed-by: never, phh, coleenp
author | ptisnovs |
---|---|
date | Thu, 19 Aug 2010 14:23:59 -0400 |
parents | c18cbe5936b8 |
children | d5d065957597 |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.hpp Fri Aug 13 07:33:20 2010 -0700 +++ b/src/share/vm/runtime/arguments.hpp Thu Aug 19 14:23:59 2010 -0400 @@ -338,6 +338,7 @@ } static bool verify_interval(uintx val, uintx min, uintx max, const char* name); + static bool verify_min_value(intx val, intx min, 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); @@ -400,6 +401,8 @@ static bool check_gc_consistency(); // Check consistecy or otherwise of VM argument settings static bool check_vm_args_consistency(); + // Check stack pages settings + static bool check_stack_pages(); // Used by os_solaris static bool process_settings_file(const char* file_name, bool should_exist, jboolean ignore_unrecognized);