< prev index next >

src/hotspot/share/jfr/recorder/stacktrace/jfrStackTrace.hpp

Print this page

 76   u4 _nr_of_frames;
 77   u4 _max_frames;
 78   bool _frames_ownership;
 79   bool _reached_root;
 80   mutable bool _lineno;
 81   mutable bool _written;
 82 
 83   const JfrStackTrace* next() const { return _next; }
 84 
 85   bool should_write() const { return !_written; }
 86   void write(JfrChunkWriter& cw) const;
 87   void write(JfrCheckpointWriter& cpw) const;
 88   bool equals(const JfrStackTrace& rhs) const;
 89 
 90   void set_id(traceid id) { _id = id; }
 91   void set_nr_of_frames(u4 nr_of_frames) { _nr_of_frames = nr_of_frames; }
 92   void set_hash(unsigned int hash) { _hash = hash; }
 93   void set_reached_root(bool reached_root) { _reached_root = reached_root; }
 94   void resolve_linenos() const;
 95 
 96   bool record_thread(JavaThread& thread, frame& frame);
 97   bool record_safe(JavaThread* thread, int skip);

 98 
 99   bool have_lineno() const { return _lineno; }
100   bool full_stacktrace() const { return _reached_root; }
101 
102   JfrStackTrace(traceid id, const JfrStackTrace& trace, const JfrStackTrace* next);
103   JfrStackTrace(JfrStackFrame* frames, u4 max_frames);
104   ~JfrStackTrace();
105 
106  public:
107   unsigned int hash() const { return _hash; }
108   traceid id() const { return _id; }
109 };
110 
111 #endif // SHARE_JFR_RECORDER_STACKTRACE_JFRSTACKTRACE_HPP

 76   u4 _nr_of_frames;
 77   u4 _max_frames;
 78   bool _frames_ownership;
 79   bool _reached_root;
 80   mutable bool _lineno;
 81   mutable bool _written;
 82 
 83   const JfrStackTrace* next() const { return _next; }
 84 
 85   bool should_write() const { return !_written; }
 86   void write(JfrChunkWriter& cw) const;
 87   void write(JfrCheckpointWriter& cpw) const;
 88   bool equals(const JfrStackTrace& rhs) const;
 89 
 90   void set_id(traceid id) { _id = id; }
 91   void set_nr_of_frames(u4 nr_of_frames) { _nr_of_frames = nr_of_frames; }
 92   void set_hash(unsigned int hash) { _hash = hash; }
 93   void set_reached_root(bool reached_root) { _reached_root = reached_root; }
 94   void resolve_linenos() const;
 95 
 96   bool record(JavaThread* current_thread, int skip);
 97   bool record(JavaThread* thread, const frame& frame, int skip, bool asynch_mode, bool* virtual_thread);
 98   bool record_async(JavaThread* other_thread, frame& frame, bool* virtual_thread);
 99 
100   bool have_lineno() const { return _lineno; }
101   bool full_stacktrace() const { return _reached_root; }
102 
103   JfrStackTrace(traceid id, const JfrStackTrace& trace, const JfrStackTrace* next);
104   JfrStackTrace(JfrStackFrame* frames, u4 max_frames);
105   ~JfrStackTrace();
106 
107  public:
108   unsigned int hash() const { return _hash; }
109   traceid id() const { return _id; }
110 };
111 
112 #endif // SHARE_JFR_RECORDER_STACKTRACE_JFRSTACKTRACE_HPP
< prev index next >