comparison src/share/vm/runtime/arguments.cpp @ 14276:234d576115b5

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 eae426d683f6
children 8254553994b9
comparison
equal deleted inserted replaced
14275:efc27a069897 14276:234d576115b5
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) {