Skip to content

Commit 9718f49

Browse files
Yudi ZhengDoug Simon
Yudi Zheng
authored and
Doug Simon
committedOct 4, 2023
8317452: [JVMCI] Export symbols used by lightweight locking to JVMCI compilers.
Reviewed-by: dnsimon
1 parent 0d4de8a commit 9718f49

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed
 

‎src/hotspot/share/jvmci/jvmciCompilerToVMInit.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ JVMCIObjectArray CompilerToVM::initialize_intrinsics(JVMCI_TRAPS) {
300300
do_bool_flag(Inline) \
301301
do_intx_flag(JVMCICounterSize) \
302302
do_bool_flag(JVMCIPrintProperties) \
303-
do_bool_flag(JVMCIUseFastLocking) \
304303
do_int_flag(ObjectAlignmentInBytes) \
305304
do_bool_flag(PrintInlining) \
306305
do_bool_flag(ReduceInitialCardMarks) \

‎src/hotspot/share/jvmci/jvmci_globals.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ bool JVMCIGlobals::check_jvmci_flags_are_consistent() {
118118
CHECK_NOT_SET(JVMCITraceLevel, EnableJVMCI)
119119
CHECK_NOT_SET(JVMCICounterSize, EnableJVMCI)
120120
CHECK_NOT_SET(JVMCICountersExcludeCompiler, EnableJVMCI)
121-
CHECK_NOT_SET(JVMCIUseFastLocking, EnableJVMCI)
122121
CHECK_NOT_SET(JVMCINMethodSizeLimit, EnableJVMCI)
123122
CHECK_NOT_SET(JVMCIPrintProperties, EnableJVMCI)
124123
CHECK_NOT_SET(JVMCIThreadsPerNativeLibraryRuntime, EnableJVMCI)

‎src/hotspot/share/jvmci/jvmci_globals.hpp

-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ class fileStream;
127127
product(bool, JVMCICountersExcludeCompiler, true, EXPERIMENTAL, \
128128
"Exclude JVMCI compiler threads from benchmark counters") \
129129
\
130-
develop(bool, JVMCIUseFastLocking, true, \
131-
"Use fast inlined locking code") \
132-
\
133130
product(intx, JVMCINMethodSizeLimit, (80*K)*wordSize, EXPERIMENTAL, \
134131
"Maximum size of a compiled method.") \
135132
range(0, max_jint) \

‎src/hotspot/share/jvmci/vmStructs_jvmci.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,12 @@
217217
nonstatic_field(JavaThread, _poll_data, SafepointMechanism::ThreadData) \
218218
nonstatic_field(JavaThread, _stack_overflow_state._reserved_stack_activation, address) \
219219
nonstatic_field(JavaThread, _held_monitor_count, intx) \
220+
nonstatic_field(JavaThread, _lock_stack, LockStack) \
220221
JVMTI_ONLY(nonstatic_field(JavaThread, _is_in_VTMS_transition, bool)) \
221222
JVMTI_ONLY(nonstatic_field(JavaThread, _is_in_tmp_VTMS_transition, bool)) \
222223
\
224+
nonstatic_field(LockStack, _top, uint32_t) \
225+
\
223226
JVMTI_ONLY(static_field(JvmtiVTMSTransitionDisabler, _VTMS_notify_jvmti_events, bool)) \
224227
\
225228
static_field(java_lang_Class, _klass_offset, int) \
@@ -494,6 +497,7 @@
494497
declare_constant(BranchData::not_taken_off_set) \
495498
\
496499
declare_constant_with_value("CardTable::dirty_card", CardTable::dirty_card_val()) \
500+
declare_constant_with_value("LockStack::_end_offset", LockStack::end_offset()) \
497501
\
498502
declare_constant(CodeInstaller::VERIFIED_ENTRY) \
499503
declare_constant(CodeInstaller::UNVERIFIED_ENTRY) \
@@ -680,6 +684,10 @@
680684
declare_constant(InstanceKlass::being_initialized) \
681685
declare_constant(InstanceKlass::fully_initialized) \
682686
\
687+
declare_constant(LockingMode::LM_MONITOR) \
688+
declare_constant(LockingMode::LM_LEGACY) \
689+
declare_constant(LockingMode::LM_LIGHTWEIGHT) \
690+
\
683691
/*********************************/ \
684692
/* InstanceKlass _misc_flags */ \
685693
/*********************************/ \
@@ -727,6 +735,8 @@
727735
AARCH64_ONLY(declare_constant(NMethodPatchingType::conc_instruction_and_data_patch)) \
728736
AARCH64_ONLY(declare_constant(NMethodPatchingType::conc_data_patch)) \
729737
\
738+
declare_constant(ObjectMonitor::ANONYMOUS_OWNER) \
739+
\
730740
declare_constant(ReceiverTypeData::receiver_type_row_cell_count) \
731741
declare_constant(ReceiverTypeData::receiver0_offset) \
732742
declare_constant(ReceiverTypeData::count0_offset) \

‎src/hotspot/share/runtime/lockStack.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class outputStream;
3636

3737
class LockStack {
3838
friend class VMStructs;
39+
JVMCI_ONLY(friend class JVMCIVMStructs;)
3940
private:
4041
static const int CAPACITY = 8;
4142

0 commit comments

Comments
 (0)
Please sign in to comment.