--- old/src/hotspot/share/runtime/thread.hpp 2019-03-28 11:23:23.000000000 -0700 +++ new/src/hotspot/share/runtime/thread.hpp 2019-03-28 11:23:23.000000000 -0700 @@ -88,6 +88,9 @@ class ICRefillVerifier; class IdealGraphPrinter; +class JVMCIEnv; +class JVMCIPrimitiveArray; + class Metadata; class ResourceArea; @@ -1128,7 +1131,7 @@ // 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 + // Guard for re-entrant call to JVMCI::adjust_comp_level bool _adjusting_comp_level; // True if in a runtime call from compiled code that will deoptimize @@ -1137,7 +1140,7 @@ // An id of a speculation that JVMCI compiled code can use to further describe and // uniquely identify the speculative optimization guarded by the uncommon trap - long _pending_failed_speculation; + jlong _pending_failed_speculation; // These fields are mutually exclusive in terms of live ranges. union { @@ -1154,7 +1157,7 @@ public: static jlong* _jvmci_old_thread_counters; - static void collect_counters(typeArrayOop array); + static void collect_counters(JVMCIEnv* JVMCIENV, JVMCIPrimitiveArray array); private: #endif // INCLUDE_JVMCI @@ -1540,13 +1543,13 @@ #if INCLUDE_JVMCI int pending_deoptimization() const { return _pending_deoptimization; } - long pending_failed_speculation() const { return _pending_failed_speculation; } + jlong 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; } - void set_pending_failed_speculation(long failed_speculation) { _pending_failed_speculation = failed_speculation; } + void set_pending_failed_speculation(jlong failed_speculation) { _pending_failed_speculation = failed_speculation; } void set_pending_transfer_to_interpreter(bool b) { _pending_transfer_to_interpreter = b; } void set_jvmci_alternate_call_target(address a) { assert(_jvmci._alternate_call_target == NULL, "must be"); _jvmci._alternate_call_target = a; } void set_jvmci_implicit_exception_pc(address a) { assert(_jvmci._implicit_exception_pc == NULL, "must be"); _jvmci._implicit_exception_pc = a; }