src/hotspot/share/jfr/recorder/stacktrace/jfrStackTraceRepository.hpp
branchJEP-349-branch
changeset 58158 369ebc2a11c2
parent 58157 9dca61a7df19
equal deleted inserted replaced
58157:9dca61a7df19 58158:369ebc2a11c2
    49   u4 _entries;
    49   u4 _entries;
    50 
    50 
    51   JfrStackTraceRepository();
    51   JfrStackTraceRepository();
    52   static JfrStackTraceRepository& instance();
    52   static JfrStackTraceRepository& instance();
    53   static JfrStackTraceRepository* create();
    53   static JfrStackTraceRepository* create();
       
    54   static void destroy();
    54   bool initialize();
    55   bool initialize();
    55   static void destroy();
       
    56 
    56 
    57   size_t write_impl(JfrChunkWriter& cw, bool clear);
    57   bool is_modified() const;
    58   static void write_metadata(JfrCheckpointWriter& cpw);
       
    59   traceid write(JfrCheckpointWriter& cpw, traceid id, unsigned int hash);
       
    60   size_t write(JfrChunkWriter& cw, bool clear);
    58   size_t write(JfrChunkWriter& cw, bool clear);
    61   size_t clear();
    59   size_t clear();
       
    60 
       
    61   const JfrStackTrace* lookup(unsigned int hash, traceid id) const;
    62 
    62 
    63   traceid add_trace(const JfrStackTrace& stacktrace);
    63   traceid add_trace(const JfrStackTrace& stacktrace);
    64   static traceid add(const JfrStackTrace& stacktrace);
    64   static traceid add(const JfrStackTrace& stacktrace);
    65   traceid record_for(JavaThread* thread, int skip, JfrStackFrame* frames, u4 max_frames);
    65   traceid record_for(JavaThread* thread, int skip, JfrStackFrame* frames, u4 max_frames);
    66   const JfrStackTrace* lookup(unsigned int hash, traceid id) const;
       
    67   bool is_modified() const;
       
    68 
    66 
    69  public:
    67  public:
    70   static traceid record(Thread* thread, int skip = 0);
    68   static traceid record(Thread* thread, int skip = 0);
    71   static void record_and_cache(JavaThread* thread, int skip = 0);
    69   static void record_and_cache(JavaThread* thread, int skip = 0);
    72 };
    70 };