mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
6852873: Reduce safepoint cleanup time
New optional flags to reduce inflated monitor cleanup times Reviewed-by: chrisphi, dice
This commit is contained in:
parent
d2703f3e8d
commit
9934e0af8e
5 changed files with 221 additions and 54 deletions
|
@ -225,6 +225,8 @@ class Thread: public ThreadShadow {
|
|||
ObjectMonitor * omFreeList ;
|
||||
int omFreeCount ; // length of omFreeList
|
||||
int omFreeProvision ; // reload chunk size
|
||||
ObjectMonitor * omInUseList; // SLL to track monitors in circulation
|
||||
int omInUseCount; // length of omInUseList
|
||||
|
||||
public:
|
||||
enum {
|
||||
|
@ -493,7 +495,6 @@ public:
|
|||
|
||||
static ByteSize stack_base_offset() { return byte_offset_of(Thread, _stack_base ); }
|
||||
static ByteSize stack_size_offset() { return byte_offset_of(Thread, _stack_size ); }
|
||||
static ByteSize omFreeList_offset() { return byte_offset_of(Thread, omFreeList); }
|
||||
|
||||
#define TLAB_FIELD_OFFSET(name) \
|
||||
static ByteSize tlab_##name##_offset() { return byte_offset_of(Thread, _tlab) + ThreadLocalAllocBuffer::name##_offset(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue