--- a/hotspot/src/share/vm/runtime/thread.hpp Sat May 14 15:34:30 2016 -0700
+++ b/hotspot/src/share/vm/runtime/thread.hpp Fri May 20 18:05:09 2016 +0300
@@ -933,6 +933,9 @@
// Specifies if the DeoptReason for the last uncommon trap was Reason_transfer_to_interpreter
bool _pending_transfer_to_interpreter;
+ // Guard for re-entrant call to JVMCIRuntime::adjust_comp_level
+ bool _adjusting_comp_level;
+
// An object that JVMCI compiled code can use to further describe and
// uniquely identify the speculative optimization guarded by the uncommon trap
oop _pending_failed_speculation;
@@ -1321,6 +1324,8 @@
#if INCLUDE_JVMCI
int pending_deoptimization() const { return _pending_deoptimization; }
oop pending_failed_speculation() const { return _pending_failed_speculation; }
+ bool adjusting_comp_level() const { return _adjusting_comp_level; }
+ void set_adjusting_comp_level(bool b) { _adjusting_comp_level = b; }
bool has_pending_monitorenter() const { return _pending_monitorenter; }
void set_pending_monitorenter(bool b) { _pending_monitorenter = b; }
void set_pending_deoptimization(int reason) { _pending_deoptimization = reason; }