diff 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
line wrap: on
line diff
--- a/src/share/vm/graal/graalRuntime.hpp	Wed Aug 20 15:17:17 2014 +0200
+++ b/src/share/vm/graal/graalRuntime.hpp	Wed Aug 20 15:35:27 2014 +0200
@@ -70,6 +70,21 @@
   static void parse_argument(KlassHandle hotSpotOptionsClass, char* arg, TRAPS);
 
   /**
+   * Searches for a Boolean Graal option denoted by a given name and sets it value.
+   *
+   * The definition of this method is in graalRuntime.inline.hpp
+   * which is generated by com.oracle.graal.hotspot.sourcegen.GenGraalRuntimeInlineHpp.
+   *
+   * @param hotSpotOptionsClass the HotSpotOptions klass or NULL if only checking for valid option
+   * @param name option name
+   * @param name_len length of option name
+   * @param value '+' to set the option, '-' to reset the option
+   * @returns true if the option was found
+   * @throws InternalError if there was a problem setting the option's value
+   */
+  static bool set_option_bool(KlassHandle hotSpotOptionsClass, char* name, int name_len, char value, TRAPS);
+
+  /**
    * Searches for a Graal option denoted by a given name and sets it value.
    *
    * The definition of this method is in graalRuntime.inline.hpp