8210711: Remove unused offset getters in ThreadLocalAllocBuffer
Reviewed-by: rkennke, tschatzl, mdoerr
This commit is contained in:
parent
97f10c27d8
commit
26af771191
@ -192,15 +192,9 @@ public:
|
||||
|
||||
// Code generation support
|
||||
static ByteSize start_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _start); }
|
||||
static ByteSize end_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _end ); }
|
||||
static ByteSize top_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _top ); }
|
||||
static ByteSize pf_top_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _pf_top ); }
|
||||
static ByteSize size_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _desired_size ); }
|
||||
static ByteSize refill_waste_limit_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _refill_waste_limit ); }
|
||||
|
||||
static ByteSize number_of_refills_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _number_of_refills ); }
|
||||
static ByteSize fast_refill_waste_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _fast_refill_waste ); }
|
||||
static ByteSize slow_allocations_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _slow_allocations ); }
|
||||
static ByteSize end_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _end); }
|
||||
static ByteSize top_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _top); }
|
||||
static ByteSize pf_top_offset() { return byte_offset_of(ThreadLocalAllocBuffer, _pf_top); }
|
||||
|
||||
void verify();
|
||||
};
|
||||
|
@ -698,20 +698,10 @@ protected:
|
||||
|
||||
static ByteSize polling_page_offset() { return byte_offset_of(Thread, _polling_page); }
|
||||
|
||||
#define TLAB_FIELD_OFFSET(name) \
|
||||
static ByteSize tlab_##name##_offset() { return byte_offset_of(Thread, _tlab) + ThreadLocalAllocBuffer::name##_offset(); }
|
||||
|
||||
TLAB_FIELD_OFFSET(start)
|
||||
TLAB_FIELD_OFFSET(end)
|
||||
TLAB_FIELD_OFFSET(top)
|
||||
TLAB_FIELD_OFFSET(pf_top)
|
||||
TLAB_FIELD_OFFSET(size) // desired_size
|
||||
TLAB_FIELD_OFFSET(refill_waste_limit)
|
||||
TLAB_FIELD_OFFSET(number_of_refills)
|
||||
TLAB_FIELD_OFFSET(fast_refill_waste)
|
||||
TLAB_FIELD_OFFSET(slow_allocations)
|
||||
|
||||
#undef TLAB_FIELD_OFFSET
|
||||
static ByteSize tlab_start_offset() { return byte_offset_of(Thread, _tlab) + ThreadLocalAllocBuffer::start_offset(); }
|
||||
static ByteSize tlab_end_offset() { return byte_offset_of(Thread, _tlab) + ThreadLocalAllocBuffer::end_offset(); }
|
||||
static ByteSize tlab_top_offset() { return byte_offset_of(Thread, _tlab) + ThreadLocalAllocBuffer::top_offset(); }
|
||||
static ByteSize tlab_pf_top_offset() { return byte_offset_of(Thread, _tlab) + ThreadLocalAllocBuffer::pf_top_offset(); }
|
||||
|
||||
static ByteSize allocated_bytes_offset() { return byte_offset_of(Thread, _allocated_bytes); }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user