src/hotspot/share/jfr/support/jfrThreadLocal.hpp
changeset 51004 162867fa0f8d
parent 50113 caf115bb98ad
child 52569 1a534c7926cc
equal deleted inserted replaced
51003:f8ebefc29b79 51004:162867fa0f8d
    48   jlong _cpu_time;
    48   jlong _cpu_time;
    49   jlong _wallclock_time;
    49   jlong _wallclock_time;
    50   unsigned int _stack_trace_hash;
    50   unsigned int _stack_trace_hash;
    51   mutable u4 _stackdepth;
    51   mutable u4 _stackdepth;
    52   volatile jint _entering_suspend_flag;
    52   volatile jint _entering_suspend_flag;
       
    53   bool _dead;
    53 
    54 
    54   JfrBuffer* install_native_buffer() const;
    55   JfrBuffer* install_native_buffer() const;
    55   JfrBuffer* install_java_buffer() const;
    56   JfrBuffer* install_java_buffer() const;
    56   JfrStackFrame* install_stackframes() const;
    57   JfrStackFrame* install_stackframes() const;
    57 
    58 
       
    59   void set_dead();
       
    60 
    58  public:
    61  public:
    59   JfrThreadLocal();
    62   JfrThreadLocal();
    60 
    63 
    61   JfrBuffer* native_buffer() const {
    64   JfrBuffer* native_buffer() const {
    62     return _native_buffer != NULL ? _native_buffer : install_native_buffer();
    65     return _native_buffer != NULL ? _native_buffer : install_native_buffer();
   198     return &_trace_id;
   201     return &_trace_id;
   199   }
   202   }
   200 
   203 
   201   void set_trace_id(traceid id) const {
   204   void set_trace_id(traceid id) const {
   202     _trace_id = id;
   205     _trace_id = id;
       
   206   }
       
   207 
       
   208   bool is_dead() const {
       
   209     return _dead;
   203   }
   210   }
   204 
   211 
   205   bool has_thread_checkpoint() const;
   212   bool has_thread_checkpoint() const;
   206   void set_thread_checkpoint(const JfrCheckpointBlobHandle& handle);
   213   void set_thread_checkpoint(const JfrCheckpointBlobHandle& handle);
   207   const JfrCheckpointBlobHandle& thread_checkpoint() const;
   214   const JfrCheckpointBlobHandle& thread_checkpoint() const;