--- old/src/hotspot/share/runtime/thread.hpp 2018-09-13 13:11:57.441021342 +0200 +++ new/src/hotspot/share/runtime/thread.hpp 2018-09-13 13:11:57.003002375 +0200 @@ -698,20 +698,10 @@ 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); }