Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalRuntime.cpp @ 16870:11b22ccafccd
Correctly parse string option values that start with + or -.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Wed, 20 Aug 2014 15:35:27 +0200 |
parents | 91e7d77cfb81 |
children | 9d4c73b0646e |
comparison
equal
deleted
inserted
replaced
16869:6754b5b64978 | 16870:11b22ccafccd |
---|---|
788 size_t name_len; | 788 size_t name_len; |
789 bool recognized = true; | 789 bool recognized = true; |
790 if (first == '+' || first == '-') { | 790 if (first == '+' || first == '-') { |
791 name = arg + 1; | 791 name = arg + 1; |
792 name_len = strlen(name); | 792 name_len = strlen(name); |
793 recognized = set_option(hotSpotOptionsClass, name, (int)name_len, arg, CHECK); | 793 recognized = set_option_bool(hotSpotOptionsClass, name, (int)name_len, first, CHECK); |
794 } else { | 794 } else { |
795 char* sep = strchr(arg, '='); | 795 char* sep = strchr(arg, '='); |
796 name = arg; | 796 name = arg; |
797 char* value = NULL; | 797 char* value = NULL; |
798 if (sep != NULL) { | 798 if (sep != NULL) { |