--- old/src/hotspot/share/runtime/thread.hpp 2018-05-31 15:33:15.515550216 +0200 +++ new/src/hotspot/share/runtime/thread.hpp 2018-05-31 15:33:14.977559440 +0200 @@ -325,7 +325,9 @@ volatile void* _polling_page; // Thread local polling page ThreadLocalAllocBuffer _tlab; // Thread-local eden +#ifdef INCLUDE_ALL_GCS PLAB* _gclab; // Thread-local allocation buffer for GC (e.g. evacuation) +#endif jlong _allocated_bytes; // Cumulative number of bytes allocated on // the Java heap mutable TRACE_DATA _trace_data; // Thread-local data for tracing @@ -514,8 +516,10 @@ } // Thread-Local GC Allocation Buffer (GCLAB) support +#ifdef INCLUDE_ALL_GCS PLAB* gclab() { return _gclab; } void set_gclab(PLAB* gclab) { _gclab = gclab; } +#endif jlong allocated_bytes() { return _allocated_bytes; } void set_allocated_bytes(jlong value) { _allocated_bytes = value; } void incr_allocated_bytes(jlong size) { _allocated_bytes += size; }