6852873: Reduce safepoint cleanup time

New optional flags to reduce inflated monitor cleanup times

Reviewed-by: chrisphi, dice
This commit is contained in:
Karen Kinnear 2010-06-03 13:21:47 -04:00
parent d2703f3e8d
commit 9934e0af8e
5 changed files with 221 additions and 54 deletions

View file

@ -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(); }