8210711: Remove unused offset getters in ThreadLocalAllocBuffer
Reviewed-by: rkennke, tschatzl, mdoerr
--- a/src/hotspot/share/gc/shared/threadLocalAllocBuffer.hpp Fri Sep 14 14:44:11 2018 +0200
+++ b/src/hotspot/share/gc/shared/threadLocalAllocBuffer.hpp Fri Sep 14 14:44:11 2018 +0200
@@ -192,15 +192,9 @@
// 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();
};
--- a/src/hotspot/share/runtime/thread.hpp Fri Sep 14 14:44:11 2018 +0200
+++ b/src/hotspot/share/runtime/thread.hpp Fri Sep 14 14:44:11 2018 +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); }