src/hotspot/share/jfr/support/jfrThreadLocal.hpp
changeset 58132 caa25ab47aca
parent 55571 49102ba8cf14
child 58157 9dca61a7df19
child 58679 9c3209ff7550
child 58863 c16ac7a2eba4
equal deleted inserted replaced
58131:3054503bad7d 58132:caa25ab47aca
    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;
   205 
   205 
   206   bool is_dead() const {
   206   bool is_dead() const {
   207     return _dead;
   207     return _dead;
   208   }
   208   }
   209 
   209 
   210   bool has_thread_checkpoint() const;
   210   bool has_thread_blob() const;
   211   void set_thread_checkpoint(const JfrCheckpointBlobHandle& handle);
   211   void set_thread_blob(const JfrBlobHandle& handle);
   212   const JfrCheckpointBlobHandle& thread_checkpoint() const;
   212   const JfrBlobHandle& thread_blob() const;
   213 
   213 
   214   static void on_start(Thread* t);
   214   static void on_start(Thread* t);
   215   static void on_exit(Thread* t);
   215   static void on_exit(Thread* t);
   216 
   216 
   217   // Code generation
   217   // Code generation