< prev index next >

src/share/vm/jfr/writers/jfrJavaEventWriter.hpp

Print this page
rev 9061 : 8227011: Starting a JFR recording in response to JVMTI VMInit and / or Java agent premain corrupts memory
Reviewed-by: egahlin, rwestberg

@@ -31,18 +31,19 @@
 class JavaThread;
 class Thread;
 
 class JfrJavaEventWriter : AllStatic {
   friend class JfrCheckpointThreadClosure;
-  friend class JfrJavaEventWriterNotifyOperation;
   friend class JfrJavaEventWriterNotificationClosure;
+  friend class JfrJavaEventWriterNotifyOperation;
+  friend class JfrRecorder;
  private:
+  static bool initialize();
   static void notify(JavaThread* jt);
 
  public:
   static bool has_required_classes(TRAPS);
-  static bool initialize();
   static void notify();
   static jobject event_writer(Thread* t);
   static jobject new_event_writer(TRAPS);
   static jboolean flush(jobject writer, jint used, jint requested, JavaThread* jt);
 };
< prev index next >