diff src/share/vm/graal/graalEnv.hpp @ 7089:af30115c9d0e

added metering of code installation failure rate to detect excessive failure caused by overly optimistic assumptions
author Doug Simon <doug.simon@oracle.com>
date Wed, 28 Nov 2012 20:39:43 +0100
parents bf2ea3ed3bce
children eec7173947a1
line wrap: on
line diff
--- a/src/share/vm/graal/graalEnv.hpp	Wed Nov 28 19:18:39 2012 +0100
+++ b/src/share/vm/graal/graalEnv.hpp	Wed Nov 28 20:39:43 2012 +0100
@@ -46,6 +46,13 @@
 
 public:
 
+  // Must be kept in sync with the enum in the HotSpot implementation of CompilerToVM
+  enum CodeInstallResult {
+     ok,
+     dependencies_failed,
+     cache_full
+  };
+
   // Look up a klass by name from a particular class loader (the accessor's).
   // If require_local, result must be defined in that class loader, or NULL.
   // If !require_local, a result from remote class loader may be reported,
@@ -109,7 +116,9 @@
 
 public:
   // Register the result of a compilation.
-  static nmethod* register_method(methodHandle&             target,
+  static GraalEnv::CodeInstallResult register_method(
+                       methodHandle&             target,
+                       nmethod*&                 nm,
                        int                       entry_bci,
                        CodeOffsets*              offsets,
                        int                       orig_pc_offset,