diff --git a/src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp b/src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp index 608aee71033..e40e5ee856e 100644 --- a/src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp +++ b/src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp @@ -300,7 +300,6 @@ JVMCIObjectArray CompilerToVM::initialize_intrinsics(JVMCI_TRAPS) { do_bool_flag(Inline) \ do_intx_flag(JVMCICounterSize) \ do_bool_flag(JVMCIPrintProperties) \ - do_bool_flag(JVMCIUseFastLocking) \ do_int_flag(ObjectAlignmentInBytes) \ do_bool_flag(PrintInlining) \ do_bool_flag(ReduceInitialCardMarks) \ diff --git a/src/hotspot/share/jvmci/jvmci_globals.cpp b/src/hotspot/share/jvmci/jvmci_globals.cpp index 48b04e4f448..4eea58b4b0c 100644 --- a/src/hotspot/share/jvmci/jvmci_globals.cpp +++ b/src/hotspot/share/jvmci/jvmci_globals.cpp @@ -118,7 +118,6 @@ bool JVMCIGlobals::check_jvmci_flags_are_consistent() { CHECK_NOT_SET(JVMCITraceLevel, EnableJVMCI) CHECK_NOT_SET(JVMCICounterSize, EnableJVMCI) CHECK_NOT_SET(JVMCICountersExcludeCompiler, EnableJVMCI) - CHECK_NOT_SET(JVMCIUseFastLocking, EnableJVMCI) CHECK_NOT_SET(JVMCINMethodSizeLimit, EnableJVMCI) CHECK_NOT_SET(JVMCIPrintProperties, EnableJVMCI) CHECK_NOT_SET(JVMCIThreadsPerNativeLibraryRuntime, EnableJVMCI) diff --git a/src/hotspot/share/jvmci/jvmci_globals.hpp b/src/hotspot/share/jvmci/jvmci_globals.hpp index 3eab6f1e7c4..b159d9d8d6b 100644 --- a/src/hotspot/share/jvmci/jvmci_globals.hpp +++ b/src/hotspot/share/jvmci/jvmci_globals.hpp @@ -127,9 +127,6 @@ class fileStream; product(bool, JVMCICountersExcludeCompiler, true, EXPERIMENTAL, \ "Exclude JVMCI compiler threads from benchmark counters") \ \ - develop(bool, JVMCIUseFastLocking, true, \ - "Use fast inlined locking code") \ - \ product(intx, JVMCINMethodSizeLimit, (80*K)*wordSize, EXPERIMENTAL, \ "Maximum size of a compiled method.") \ range(0, max_jint) \ diff --git a/src/hotspot/share/jvmci/vmStructs_jvmci.cpp b/src/hotspot/share/jvmci/vmStructs_jvmci.cpp index d084d6c548e..4a6440d1699 100644 --- a/src/hotspot/share/jvmci/vmStructs_jvmci.cpp +++ b/src/hotspot/share/jvmci/vmStructs_jvmci.cpp @@ -217,9 +217,12 @@ nonstatic_field(JavaThread, _poll_data, SafepointMechanism::ThreadData) \ nonstatic_field(JavaThread, _stack_overflow_state._reserved_stack_activation, address) \ nonstatic_field(JavaThread, _held_monitor_count, intx) \ + nonstatic_field(JavaThread, _lock_stack, LockStack) \ JVMTI_ONLY(nonstatic_field(JavaThread, _is_in_VTMS_transition, bool)) \ JVMTI_ONLY(nonstatic_field(JavaThread, _is_in_tmp_VTMS_transition, bool)) \ \ + nonstatic_field(LockStack, _top, uint32_t) \ + \ JVMTI_ONLY(static_field(JvmtiVTMSTransitionDisabler, _VTMS_notify_jvmti_events, bool)) \ \ static_field(java_lang_Class, _klass_offset, int) \ @@ -494,6 +497,7 @@ declare_constant(BranchData::not_taken_off_set) \ \ declare_constant_with_value("CardTable::dirty_card", CardTable::dirty_card_val()) \ + declare_constant_with_value("LockStack::_end_offset", LockStack::end_offset()) \ \ declare_constant(CodeInstaller::VERIFIED_ENTRY) \ declare_constant(CodeInstaller::UNVERIFIED_ENTRY) \ @@ -680,6 +684,10 @@ declare_constant(InstanceKlass::being_initialized) \ declare_constant(InstanceKlass::fully_initialized) \ \ + declare_constant(LockingMode::LM_MONITOR) \ + declare_constant(LockingMode::LM_LEGACY) \ + declare_constant(LockingMode::LM_LIGHTWEIGHT) \ + \ /*********************************/ \ /* InstanceKlass _misc_flags */ \ /*********************************/ \ @@ -727,6 +735,8 @@ AARCH64_ONLY(declare_constant(NMethodPatchingType::conc_instruction_and_data_patch)) \ AARCH64_ONLY(declare_constant(NMethodPatchingType::conc_data_patch)) \ \ + declare_constant(ObjectMonitor::ANONYMOUS_OWNER) \ + \ declare_constant(ReceiverTypeData::receiver_type_row_cell_count) \ declare_constant(ReceiverTypeData::receiver0_offset) \ declare_constant(ReceiverTypeData::count0_offset) \ diff --git a/src/hotspot/share/runtime/lockStack.hpp b/src/hotspot/share/runtime/lockStack.hpp index 25ab7a8de05..b8e2e4136e3 100644 --- a/src/hotspot/share/runtime/lockStack.hpp +++ b/src/hotspot/share/runtime/lockStack.hpp @@ -36,6 +36,7 @@ class outputStream; class LockStack { friend class VMStructs; + JVMCI_ONLY(friend class JVMCIVMStructs;) private: static const int CAPACITY = 8;