8138651: -XX:DisableIntrinsic matches intrinsics overly eagerly

Improve parsing of DisableIntrinsic flag.

Reviewed-by: kvn, shade, neliasso
This commit is contained in:
Zoltan Majo 2015-10-29 09:24:00 +01:00
parent 7793175141
commit c04398f782
5 changed files with 284 additions and 19 deletions

View file

@ -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 {