< prev index next >
src/hotspot/share/runtime/thread.hpp
Print this page
*** 696,719 ****
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 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 allocated_bytes_offset() { return byte_offset_of(Thread, _allocated_bytes); }
JFR_ONLY(DEFINE_THREAD_LOCAL_OFFSET_JFR;)
--- 696,709 ----
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 polling_page_offset() { return byte_offset_of(Thread, _polling_page); }
! 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); }
JFR_ONLY(DEFINE_THREAD_LOCAL_OFFSET_JFR;)
< prev index next >