< prev index next >
src/hotspot/share/runtime/thread.hpp
Print this page
rev 50303 : Thread Dump Extension (memory allocation)
@@ -51,10 +51,11 @@
# include "stack_zero.hpp"
#endif
#if INCLUDE_JFR
#include "jfr/support/jfrThreadExtension.hpp"
#endif
+#include "runtime/threadStatisticInfo.hpp"
class SafeThreadsListPtr;
class ThreadSafepointState;
class ThreadsList;
@@ -337,10 +338,12 @@
ThreadLocalAllocBuffer _tlab; // Thread-local eden
jlong _allocated_bytes; // Cumulative number of bytes allocated on
// the Java heap
+ ThreadStatisticInfo _statistic_info; // Statistic info about the thread
+
JFR_ONLY(DEFINE_THREAD_LOCAL_FIELD_JFR;) // Thread-local data for jfr
int _vm_operation_started_count; // VM_Operation support
int _vm_operation_completed_count; // VM_Operation support
@@ -515,10 +518,12 @@
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();
+ ThreadStatisticInfo& statistic_info() { return _statistic_info; }
+
JFR_ONLY(DEFINE_THREAD_LOCAL_ACCESSOR_JFR;)
bool is_trace_suspend() { return (_suspend_flags & _trace_flag) != 0; }
// VM operation support
< prev index next >