< prev index next >
src/hotspot/share/runtime/thread.hpp
Print this page
*** 323,333 ****
--- 323,335 ----
friend class GCLocker;
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
ThreadExt _ext;
*** 512,523 ****
--- 514,527 ----
tlab().initialize();
}
}
// 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; }
inline jlong cooked_allocated_bytes();
< prev index next >