mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8138651: -XX:DisableIntrinsic matches intrinsics overly eagerly
Improve parsing of DisableIntrinsic flag. Reviewed-by: kvn, shade, neliasso
This commit is contained in:
parent
7793175141
commit
c04398f782
5 changed files with 284 additions and 19 deletions
|
@ -288,7 +288,7 @@ bool DirectivesParser::set_option_flag(JSON_TYPE t, JSON_VAL* v, const key* opti
|
|||
break;
|
||||
|
||||
case JSON_STRING:
|
||||
if (option_key->flag_type != ccstrFlag) {
|
||||
if (option_key->flag_type != ccstrFlag && option_key->flag_type != ccstrlistFlag) {
|
||||
error(VALUE_ERROR, "Cannot use string value for a %s flag", flag_type_names[option_key->flag_type]);
|
||||
return false;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue