< prev index next >

src/jdk.jfr/share/classes/jdk/jfr/internal/EventWriter.java

Print this page
*** 54,11 ***
      private boolean started;
      private boolean flushOnEnd;
      private boolean largeSize = false;
  
      public static EventWriter getEventWriter() {
!         EventWriter ew = (EventWriter)JVM.getEventWriter();
          return ew != null ? ew : JVM.newEventWriter();
      }
  
      public void putBoolean(boolean i) {
          if (isValidForSize(Byte.BYTES)) {
--- 54,11 ---
      private boolean started;
      private boolean flushOnEnd;
      private boolean largeSize = false;
  
      public static EventWriter getEventWriter() {
!         EventWriter ew = JVM.getEventWriter();
          return ew != null ? ew : JVM.newEventWriter();
      }
  
      public void putBoolean(boolean i) {
          if (isValidForSize(Byte.BYTES)) {
< prev index next >