8291555: Implement alternative fast-locking scheme

Co-authored-by: Fei Yang <fyang@openjdk.org>
Co-authored-by: Thomas Stuefe <stuefe@openjdk.org>
Reviewed-by: dcubed, stuefe, shade, dholmes, dlong
This commit is contained in:
Roman Kennke 2023-05-08 17:51:39 +00:00
parent 4116b109f0
commit 7f6358a8b5
70 changed files with 2444 additions and 767 deletions

View file

@ -702,6 +702,9 @@
nonstatic_field(ThreadShadow, _exception_line, int) \
nonstatic_field(Thread, _tlab, ThreadLocalAllocBuffer) \
nonstatic_field(Thread, _allocated_bytes, jlong) \
nonstatic_field(JavaThread, _lock_stack, LockStack) \
nonstatic_field(LockStack, _top, uint32_t) \
nonstatic_field(LockStack, _base[0], oop) \
nonstatic_field(NamedThread, _name, char*) \
nonstatic_field(NamedThread, _processed_thread, Thread*) \
nonstatic_field(JavaThread, _threadObj, OopHandle) \
@ -1317,6 +1320,7 @@
\
declare_toplevel_type(ThreadsSMRSupport) \
declare_toplevel_type(ThreadsList) \
declare_toplevel_type(LockStack) \
\
/***************/ \
/* Interpreter */ \
@ -2413,6 +2417,14 @@
declare_constant(T_NARROWKLASS_size) \
declare_constant(T_VOID_size) \
\
/**********************************************/ \
/* LockingMode enum (globalDefinitions.hpp) */ \
/**********************************************/ \
\
declare_constant(LM_MONITOR) \
declare_constant(LM_LEGACY) \
declare_constant(LM_LIGHTWEIGHT) \
\
/*********************/ \
/* Matcher (C2 only) */ \
/*********************/ \
@ -2597,8 +2609,10 @@
\
/* InvocationCounter constants */ \
declare_constant(InvocationCounter::count_increment) \
declare_constant(InvocationCounter::count_shift)
declare_constant(InvocationCounter::count_shift) \
\
/* ObjectMonitor constants */ \
declare_constant(ObjectMonitor::ANONYMOUS_OWNER) \
//--------------------------------------------------------------------------------
//