< prev index next >

src/hotspot/share/runtime/thread.hpp

Print this page
rev 49812 : Thread Dump Extension (memory allocation)

@@ -49,10 +49,11 @@
 #include "utilities/exceptions.hpp"
 #include "utilities/macros.hpp"
 #ifdef ZERO
 # include "stack_zero.hpp"
 #endif
+#include "runtime/threadStatisticInfo.hpp"
 
 class ThreadSafepointState;
 class ThreadsList;
 class ThreadsSMRSupport;
 class NestedThreadsList;

@@ -342,10 +343,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
+
   mutable TRACE_DATA _trace_data;               // Thread-local data for tracing
 
   int   _vm_operation_started_count;            // VM_Operation support
   int   _vm_operation_completed_count;          // VM_Operation support
 

@@ -520,10 +523,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; }
+
   TRACE_DEFINE_THREAD_TRACE_DATA_OFFSET;
   TRACE_DATA* trace_data() const        { return &_trace_data; }
   bool is_trace_suspend()               { return (_suspend_flags & _trace_flag) != 0; }
 
   // VM operation support
< prev index next >