diff src/share/vm/jvmci/jvmciEnv.hpp @ 22770:1fbfcc0334d3

JVMCI PrintCompilation support should reuse CompileBroker logic
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Thu, 14 Jan 2016 11:36:05 -0800
parents 24fd08e99b35
children f84a5ac3be22
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciEnv.hpp	Thu Jan 14 11:32:37 2016 -0800
+++ b/src/share/vm/jvmci/jvmciEnv.hpp	Thu Jan 14 11:36:05 2016 -0800
@@ -99,6 +99,10 @@
   CompileTask*     _task;
   int              _system_dictionary_modification_counter;
 
+  // Compilation result values
+  const char*      _failure_reason;
+  bool             _retryable;
+
   // Cache JVMTI state
   bool  _jvmti_can_hotswap_or_post_breakpoint;
   bool  _jvmti_can_access_local_variables;
@@ -140,6 +144,14 @@
 public:
   CompileTask* task() { return _task; }
 
+  const char* failure_reason() { return _failure_reason; }
+  bool retryable() { return _retryable; }
+
+  void set_failure(const char* reason, bool retryable) {
+    _failure_reason = reason;
+    _retryable = retryable;
+  }
+
   // Register the result of a compilation.
   static JVMCIEnv::CodeInstallResult register_method(
                        const methodHandle&       target,