equal
deleted
inserted
replaced
23 */ |
23 */ |
24 |
24 |
25 #ifndef SHARE_JFR_SUPPORT_JFRTHREADLOCAL_HPP |
25 #ifndef SHARE_JFR_SUPPORT_JFRTHREADLOCAL_HPP |
26 #define SHARE_JFR_SUPPORT_JFRTHREADLOCAL_HPP |
26 #define SHARE_JFR_SUPPORT_JFRTHREADLOCAL_HPP |
27 |
27 |
28 #include "jfr/recorder/checkpoint/jfrCheckpointBlob.hpp" |
28 #include "jfr/utilities/jfrBlob.hpp" |
29 #include "jfr/utilities/jfrTypes.hpp" |
29 #include "jfr/utilities/jfrTypes.hpp" |
30 |
30 |
31 class JavaThread; |
31 class JavaThread; |
32 class JfrBuffer; |
32 class JfrBuffer; |
33 class JfrStackFrame; |
33 class JfrStackFrame; |
39 mutable JfrBuffer* _java_buffer; |
39 mutable JfrBuffer* _java_buffer; |
40 mutable JfrBuffer* _native_buffer; |
40 mutable JfrBuffer* _native_buffer; |
41 JfrBuffer* _shelved_buffer; |
41 JfrBuffer* _shelved_buffer; |
42 mutable JfrStackFrame* _stackframes; |
42 mutable JfrStackFrame* _stackframes; |
43 mutable traceid _trace_id; |
43 mutable traceid _trace_id; |
44 JfrCheckpointBlobHandle _thread_cp; |
44 JfrBlobHandle _thread; |
45 u8 _data_lost; |
45 u8 _data_lost; |
46 traceid _stack_trace_id; |
46 traceid _stack_trace_id; |
47 jlong _user_time; |
47 jlong _user_time; |
48 jlong _cpu_time; |
48 jlong _cpu_time; |
49 jlong _wallclock_time; |
49 jlong _wallclock_time; |
111 |
111 |
112 void set_stackframes(JfrStackFrame* frames) { |
112 void set_stackframes(JfrStackFrame* frames) { |
113 _stackframes = frames; |
113 _stackframes = frames; |
114 } |
114 } |
115 |
115 |
116 u4 stackdepth() const { |
116 u4 stackdepth() const; |
117 return _stackdepth; |
|
118 } |
|
119 |
117 |
120 void set_stackdepth(u4 depth) { |
118 void set_stackdepth(u4 depth) { |
121 _stackdepth = depth; |
119 _stackdepth = depth; |
122 } |
120 } |
123 |
121 |
207 |
205 |
208 bool is_dead() const { |
206 bool is_dead() const { |
209 return _dead; |
207 return _dead; |
210 } |
208 } |
211 |
209 |
212 bool has_thread_checkpoint() const; |
210 bool has_thread_blob() const; |
213 void set_thread_checkpoint(const JfrCheckpointBlobHandle& handle); |
211 void set_thread_blob(const JfrBlobHandle& handle); |
214 const JfrCheckpointBlobHandle& thread_checkpoint() const; |
212 const JfrBlobHandle& thread_blob() const; |
215 |
213 |
216 static void on_start(Thread* t); |
214 static void on_start(Thread* t); |
217 static void on_exit(Thread* t); |
215 static void on_exit(Thread* t); |
218 |
216 |
219 // Code generation |
217 // Code generation |