--- old/src/share/vm/runtime/thread.hpp 2019-02-15 19:02:45.854538982 +0300 +++ new/src/share/vm/runtime/thread.hpp 2019-02-15 19:02:45.666545546 +0300 @@ -42,8 +42,6 @@ #include "runtime/threadLocalStorage.hpp" #include "runtime/thread_ext.hpp" #include "runtime/unhandledOops.hpp" -#include "trace/traceBackend.hpp" -#include "trace/traceMacros.hpp" #include "utilities/exceptions.hpp" #include "utilities/macros.hpp" #include "utilities/top.hpp" @@ -54,6 +52,9 @@ #ifdef TARGET_ARCH_zero # include "stack_zero.hpp" #endif +#if INCLUDE_JFR +#include "jfr/support/jfrThreadExtension.hpp" +#endif class ThreadSafepointState; class ThreadProfiler; @@ -260,7 +261,7 @@ // Thread-local buffer used by MetadataOnStackMark. MetadataOnStackBuffer* _metadata_on_stack_buffer; - TRACE_DATA _trace_data; // Thread-local data for tracing + JFR_ONLY(DEFINE_THREAD_LOCAL_FIELD_JFR;) // Thread-local data for jfr ThreadExt _ext; @@ -441,7 +442,7 @@ void incr_allocated_bytes(jlong size) { _allocated_bytes += size; } inline jlong cooked_allocated_bytes(); - TRACE_DATA* trace_data() { return &_trace_data; } + JFR_ONLY(DEFINE_THREAD_LOCAL_ACCESSOR_JFR;) const ThreadExt& ext() const { return _ext; } ThreadExt& ext() { return _ext; } @@ -626,6 +627,8 @@ static ByteSize allocated_bytes_offset() { return byte_offset_of(Thread, _allocated_bytes ); } + JFR_ONLY(DEFINE_THREAD_LOCAL_OFFSET_JFR;) + public: volatile intptr_t _Stalled ; volatile int _TypeTag ;