< prev index next >

src/hotspot/share/jfr/recorder/checkpoint/jfrCheckpointManager.hpp

Print this page
@@ -27,11 +27,14 @@
  
  #include "jfr/recorder/storage/jfrBuffer.hpp"
  #include "jfr/recorder/storage/jfrEpochStorage.hpp"
  #include "jfr/recorder/storage/jfrMemorySpace.hpp"
  #include "jfr/recorder/storage/jfrMemorySpaceRetrieval.hpp"
+ #include "jfr/utilities/jfrBlob.hpp"
  #include "jfr/utilities/jfrLinkedList.hpp"
+ #include "jfr/utilities/jfrTypes.hpp"
+ #include "runtime/thread.hpp"
  
  class JfrCheckpointManager;
  class JfrChunkWriter;
  class Thread;
  

@@ -55,24 +58,26 @@
   public:
    typedef JfrCheckpointMspace::Node Buffer;
    typedef JfrCheckpointMspace::NodePtr BufferPtr;
   private:
    JfrCheckpointMspace* _global_mspace;
-   JfrThreadLocalCheckpointMspace* _thread_local_mspace;
+   JfrThreadLocalCheckpointMspace* _java_thread_local_mspace;
    JfrChunkWriter& _chunkwriter;
  
    JfrCheckpointManager(JfrChunkWriter& cw);
    ~JfrCheckpointManager();
    static JfrCheckpointManager& instance();
    static JfrCheckpointManager* create(JfrChunkWriter& cw);
    bool initialize();
    static void destroy();
  
+   static BufferPtr get_thread_local(Thread* thread);
+   static void set_thread_local(Thread* thread, BufferPtr buffer);
+   static BufferPtr acquire_thread_local(size_t size, Thread* thread);
+ 
    static BufferPtr lease(Thread* thread, bool previous_epoch = false, size_t size = 0);
    static BufferPtr lease(BufferPtr old, Thread* thread, size_t size);
- 
-   static BufferPtr acquire_thread_local(size_t size, Thread* thread);
    static BufferPtr lease_thread_local(Thread* thread, size_t size = 0);
  
    static BufferPtr flush(BufferPtr old, size_t used, size_t requested, Thread* thread);
  
    size_t clear();

@@ -93,13 +98,13 @@
  
    // mspace callback
    void register_full(BufferPtr buffer, Thread* thread);
  
   public:
+   static JfrBlobHandle create_thread_blob(JavaThread* jt, traceid tid = 0, oop vthread = NULL);
+   static void write_checkpoint(Thread* t, traceid tid = 0, oop vthread = NULL);
    size_t flush_type_set();
-   static void create_thread_blob(Thread* thread);
-   static void write_thread_checkpoint(Thread* thread);
  
    friend class Jfr;
    friend class JfrRecorder;
    friend class JfrRecorderService;
    friend class JfrCheckpointFlush;
< prev index next >