< prev index next >

src/hotspot/share/jfr/recorder/checkpoint/types/traceid/jfrTraceIdEpoch.hpp

Print this page
@@ -53,10 +53,11 @@
   // (klasses, methods, CLDs, etc), purpose of which is to trigger collection of artifacts.
   //
  class JfrTraceIdEpoch : AllStatic {
    friend class JfrCheckpointManager;
   private:
+   static u2 _generation;
    static JfrSignal _tag_state;
    static bool _epoch_state;
    static bool _synchronizing;
  
    static void begin_epoch_shift();

@@ -73,10 +74,18 @@
  
    static u1 current() {
      return _epoch_state ? (u1)1 : (u1)0;
    }
  
+   static traceid epoch_generation() {
+     return _generation;
+   }
+ 
+   static bool is_current_epoch_generation(traceid generation) {
+     return _generation == generation;
+   }
+ 
    static u1 previous() {
      return _epoch_state ? (u1)0 : (u1)1;
    }
  
    static bool is_synchronizing() {
< prev index next >