comparison src/share/vm/graal/graalRuntime.hpp @ 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 4d0d1dc5db00
children 9d4c73b0646e
comparison
equal deleted inserted replaced
16869:6754b5b64978 16870:11b22ccafccd
66 * Parses a given argument and sets the denoted Graal option. 66 * Parses a given argument and sets the denoted Graal option.
67 * 67 *
68 * @throws InternalError if there was a problem parsing or setting the option 68 * @throws InternalError if there was a problem parsing or setting the option
69 */ 69 */
70 static void parse_argument(KlassHandle hotSpotOptionsClass, char* arg, TRAPS); 70 static void parse_argument(KlassHandle hotSpotOptionsClass, char* arg, TRAPS);
71
72 /**
73 * Searches for a Boolean Graal option denoted by a given name and sets it value.
74 *
75 * The definition of this method is in graalRuntime.inline.hpp
76 * which is generated by com.oracle.graal.hotspot.sourcegen.GenGraalRuntimeInlineHpp.
77 *
78 * @param hotSpotOptionsClass the HotSpotOptions klass or NULL if only checking for valid option
79 * @param name option name
80 * @param name_len length of option name
81 * @param value '+' to set the option, '-' to reset the option
82 * @returns true if the option was found
83 * @throws InternalError if there was a problem setting the option's value
84 */
85 static bool set_option_bool(KlassHandle hotSpotOptionsClass, char* name, int name_len, char value, TRAPS);
71 86
72 /** 87 /**
73 * Searches for a Graal option denoted by a given name and sets it value. 88 * Searches for a Graal option denoted by a given name and sets it value.
74 * 89 *
75 * The definition of this method is in graalRuntime.inline.hpp 90 * The definition of this method is in graalRuntime.inline.hpp