src/hotspot/share/jfr/support/jfrThreadLocal.hpp
branchJEP-349-branch
changeset 57360 5d043a159d5c
parent 53244 9807daeb47c4
child 57870 00860d9caf4d
equal deleted inserted replaced
57359:4cab5edc2950 57360:5d043a159d5c
    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 _excluded;
    53   bool _dead;
    54   bool _dead;
    54 
    55 
    55   JfrBuffer* install_native_buffer() const;
    56   JfrBuffer* install_native_buffer() const;
    56   JfrBuffer* install_java_buffer() const;
    57   JfrBuffer* install_java_buffer() const;
    57   JfrStackFrame* install_stackframes() const;
    58   JfrStackFrame* install_stackframes() const;
   203 
   204 
   204   void set_trace_id(traceid id) const {
   205   void set_trace_id(traceid id) const {
   205     _trace_id = id;
   206     _trace_id = id;
   206   }
   207   }
   207 
   208 
       
   209   bool is_excluded() const {
       
   210     return _excluded;
       
   211   }
       
   212 
   208   bool is_dead() const {
   213   bool is_dead() const {
   209     return _dead;
   214     return _dead;
   210   }
   215   }
   211 
   216 
   212   bool has_thread_checkpoint() const;
   217   bool has_thread_checkpoint() const;
   213   void set_thread_checkpoint(const JfrCheckpointBlobHandle& handle);
   218   void set_thread_checkpoint(const JfrCheckpointBlobHandle& handle);
   214   const JfrCheckpointBlobHandle& thread_checkpoint() const;
   219   const JfrCheckpointBlobHandle& thread_checkpoint() const;
   215 
   220 
   216   static void on_start(Thread* t);
   221   static void on_start(Thread* t);
   217   static void on_exit(Thread* t);
   222   static void on_exit(Thread* t);
       
   223   static void exclude(Thread* t);
       
   224   static void include(Thread* t);
   218 
   225 
   219   // Code generation
   226   // Code generation
   220   static ByteSize trace_id_offset();
   227   static ByteSize trace_id_offset();
   221   static ByteSize java_event_writer_offset();
   228   static ByteSize java_event_writer_offset();
   222 };
   229 };