diff src/share/vm/compiler/compilerOracle.hpp @ 20429:14b356bbca27

8055286: Extend CompileCommand=option to handle numeric parameters Summary: Changed CompileCommand=option to handle "extended" parameters: Klass::method,type,flag,value. Types supported are bool, intx, and uintx. Reviewed-by: kvn, roland
author zmajo
date Fri, 29 Aug 2014 15:32:16 +0200
parents 1e76463170b3
children
line wrap: on
line diff
--- a/src/share/vm/compiler/compilerOracle.hpp	Wed Sep 03 15:26:06 2014 +0400
+++ b/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*));