1.1 --- a/src/share/vm/runtime/thread.hpp Mon Jan 09 10:27:24 2012 +0100 1.2 +++ b/src/share/vm/runtime/thread.hpp Wed Jan 11 17:34:02 2012 -0500 1.3 @@ -41,6 +41,7 @@ 1.4 #include "runtime/stubRoutines.hpp" 1.5 #include "runtime/threadLocalStorage.hpp" 1.6 #include "runtime/unhandledOops.hpp" 1.7 +#include "trace/tracing.hpp" 1.8 #include "utilities/exceptions.hpp" 1.9 #include "utilities/top.hpp" 1.10 #ifndef SERIALGC 1.11 @@ -246,6 +247,8 @@ 1.12 jlong _allocated_bytes; // Cumulative number of bytes allocated on 1.13 // the Java heap 1.14 1.15 + TRACE_BUFFER _trace_buffer; // Thread-local buffer for tracing 1.16 + 1.17 int _vm_operation_started_count; // VM_Operation support 1.18 int _vm_operation_completed_count; // VM_Operation support 1.19 1.20 @@ -414,6 +417,9 @@ 1.21 return allocated_bytes; 1.22 } 1.23 1.24 + TRACE_BUFFER trace_buffer() { return _trace_buffer; } 1.25 + void set_trace_buffer(TRACE_BUFFER buf) { _trace_buffer = buf; } 1.26 + 1.27 // VM operation support 1.28 int vm_operation_ticket() { return ++_vm_operation_started_count; } 1.29 int vm_operation_completed_count() { return _vm_operation_completed_count; }