--- a/hotspot/src/share/vm/compiler/compilerOracle.hpp Thu Aug 28 23:30:13 2014 +0400
+++ b/hotspot/src/share/vm/compiler/compilerOracle.hpp Fri Aug 29 15:32:16 2014 +0200
@@ -64,6 +64,11 @@
// Check to see if this method has option set for it
static bool has_option_string(methodHandle method, const char * option);
+ // Check if method has option and value set. If yes, overwrite value and return true,
+ // otherwise leave value unchanged and return false.
+ template<typename T>
+ static bool has_option_value(methodHandle method, const char* option, T& value);
+
// Reads from string instead of file
static void parse_from_string(const char* command_string, void (*parser)(char*));