Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/arguments.cpp @ 17667:cd7a42c7be06
8027314: Java should recognize Diagnostic options if -XX:+UnlockDiagnosticVMOptions is not specified and print an informative message
Summary: clarifying the error messages associated with vm options of type diagnostic, experimental, develop, and notproduct
Reviewed-by: kvn, twisti, ctornqvi
author | ccheung |
---|---|
date | Thu, 16 Jan 2014 10:51:16 -0800 |
parents | a034dc5e910b |
children | 1419657ed891 |
comparison
equal
deleted
inserted
replaced
17666:a81bc2b2c4d3 | 17667:cd7a42c7be06 |
---|---|
876 arg_len = strlen(argname); | 876 arg_len = strlen(argname); |
877 } else { | 877 } else { |
878 arg_len = equal_sign - argname; | 878 arg_len = equal_sign - argname; |
879 } | 879 } |
880 | 880 |
881 Flag* found_flag = Flag::find_flag((const char*)argname, arg_len, true); | 881 Flag* found_flag = Flag::find_flag((const char*)argname, arg_len, true, true); |
882 if (found_flag != NULL) { | 882 if (found_flag != NULL) { |
883 char locked_message_buf[BUFLEN]; | 883 char locked_message_buf[BUFLEN]; |
884 found_flag->get_locked_message(locked_message_buf, BUFLEN); | 884 found_flag->get_locked_message(locked_message_buf, BUFLEN); |
885 if (strlen(locked_message_buf) == 0) { | 885 if (strlen(locked_message_buf) == 0) { |
886 if (found_flag->is_bool() && !has_plus_minus) { | 886 if (found_flag->is_bool() && !has_plus_minus) { |