public class org.apache.cassandra.utils.SyncUtil
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.cassandra.utils.SyncUtil
  super_class: java.lang.Object
{
  public static boolean SKIP_SYNC;
    descriptor: Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC

  private static final java.lang.reflect.Field mbbFDField;
    descriptor: Ljava/lang/reflect/Field;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final java.lang.reflect.Field fdClosedField;
    descriptor: Ljava/lang/reflect/Field;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final java.lang.reflect.Field fdUseCountField;
    descriptor: Ljava/lang/reflect/Field;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=3, args_size=0
         0: .line 41
            ldc "cassandra.skip_sync"
            invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
            putstatic org.apache.cassandra.utils.SyncUtil.SKIP_SYNC:Z
         1: .line 49
            aconst_null
            astore 0 /* mbbFDFieldTemp */
        start local 0 // java.lang.reflect.Field mbbFDFieldTemp
         2: .line 52
            ldc Ljava/nio/MappedByteBuffer;
            ldc "fd"
            invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
            astore 0 /* mbbFDFieldTemp */
         3: .line 53
            aload 0 /* mbbFDFieldTemp */
            iconst_1
            invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
         4: .line 54
            goto 6
         5: .line 55
      StackMap locals: java.lang.reflect.Field
      StackMap stack: java.lang.NoSuchFieldException
            pop
         6: .line 58
      StackMap locals:
      StackMap stack:
            aload 0 /* mbbFDFieldTemp */
            putstatic org.apache.cassandra.utils.SyncUtil.mbbFDField:Ljava/lang/reflect/Field;
         7: .line 61
            aconst_null
            astore 1 /* fdClosedFieldTemp */
        start local 1 // java.lang.reflect.Field fdClosedFieldTemp
         8: .line 64
            ldc Ljava/io/FileDescriptor;
            ldc "closed"
            invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
            astore 1 /* fdClosedFieldTemp */
         9: .line 65
            aload 1 /* fdClosedFieldTemp */
            iconst_1
            invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
        10: .line 66
            goto 12
        11: .line 67
      StackMap locals: java.lang.reflect.Field java.lang.reflect.Field
      StackMap stack: java.lang.NoSuchFieldException
            pop
        12: .line 70
      StackMap locals:
      StackMap stack:
            aload 1 /* fdClosedFieldTemp */
            putstatic org.apache.cassandra.utils.SyncUtil.fdClosedField:Ljava/lang/reflect/Field;
        13: .line 73
            aconst_null
            astore 2 /* fdUseCountTemp */
        start local 2 // java.lang.reflect.Field fdUseCountTemp
        14: .line 76
            ldc Ljava/io/FileDescriptor;
            ldc "useCount"
            invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
            astore 2 /* fdUseCountTemp */
        15: .line 77
            aload 2 /* fdUseCountTemp */
            iconst_1
            invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
        16: .line 78
            goto 18
        17: .line 79
      StackMap locals: java.lang.reflect.Field java.lang.reflect.Field java.lang.reflect.Field
      StackMap stack: java.lang.NoSuchFieldException
            pop
        18: .line 82
      StackMap locals:
      StackMap stack:
            aload 2 /* fdUseCountTemp */
            putstatic org.apache.cassandra.utils.SyncUtil.fdUseCountField:Ljava/lang/reflect/Field;
        end local 2 // java.lang.reflect.Field fdUseCountTemp
        end local 1 // java.lang.reflect.Field fdClosedFieldTemp
        end local 0 // java.lang.reflect.Field mbbFDFieldTemp
        19: .line 83
            return
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            2   19     0     mbbFDFieldTemp  Ljava/lang/reflect/Field;
            8   19     1  fdClosedFieldTemp  Ljava/lang/reflect/Field;
           14   19     2     fdUseCountTemp  Ljava/lang/reflect/Field;
      Exception table:
        from    to  target  type
           2     4       5  Class java.lang.NoSuchFieldException
           8    10      11  Class java.lang.NoSuchFieldException
          14    16      17  Class java.lang.NoSuchFieldException

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.cassandra.utils.SyncUtil this
         0: .line 39
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.apache.cassandra.utils.SyncUtil this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/cassandra/utils/SyncUtil;

  public static java.nio.MappedByteBuffer force(java.nio.MappedByteBuffer);
    descriptor: (Ljava/nio/MappedByteBuffer;)Ljava/nio/MappedByteBuffer;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // java.nio.MappedByteBuffer buf
         0: .line 87
            aload 0 /* buf */
            invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 88
            getstatic org.apache.cassandra.utils.SyncUtil.SKIP_SYNC:Z
            ifeq 11
         2: .line 90
            aconst_null
            astore 1 /* fd */
        start local 1 // java.lang.Object fd
         3: .line 93
            getstatic org.apache.cassandra.utils.SyncUtil.mbbFDField:Ljava/lang/reflect/Field;
            ifnull 8
         4: .line 95
            getstatic org.apache.cassandra.utils.SyncUtil.mbbFDField:Ljava/lang/reflect/Field;
            aload 0 /* buf */
            invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
            astore 1 /* fd */
         5: .line 97
            goto 8
         6: .line 98
      StackMap locals: java.nio.MappedByteBuffer java.lang.Object
      StackMap stack: java.lang.Exception
            astore 2 /* e */
        start local 2 // java.lang.Exception e
         7: .line 100
            new java.lang.RuntimeException
            dup
            aload 2 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.lang.Exception e
         8: .line 103
      StackMap locals:
      StackMap stack:
            getstatic org.apache.cassandra.utils.SyncUtil.mbbFDField:Ljava/lang/reflect/Field;
            ifnull 10
            aload 1 /* fd */
            ifnonnull 10
         9: .line 104
            new java.lang.UnsupportedOperationException
            dup
            invokespecial java.lang.UnsupportedOperationException.<init>:()V
            athrow
        10: .line 105
      StackMap locals:
      StackMap stack:
            aload 0 /* buf */
            areturn
        end local 1 // java.lang.Object fd
        11: .line 109
      StackMap locals:
      StackMap stack:
            aload 0 /* buf */
            invokevirtual java.nio.MappedByteBuffer.force:()Ljava/nio/MappedByteBuffer;
            areturn
        end local 0 // java.nio.MappedByteBuffer buf
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   12     0   buf  Ljava/nio/MappedByteBuffer;
            3   11     1    fd  Ljava/lang/Object;
            7    8     2     e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           3     5       6  Class java.lang.Exception
    MethodParameters:
      Name  Flags
      buf   

  public static void sync(java.io.FileDescriptor);
    descriptor: (Ljava/io/FileDescriptor;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=4, args_size=1
        start local 0 // java.io.FileDescriptor fd
         0: .line 115
            aload 0 /* fd */
            invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 116
            getstatic org.apache.cassandra.utils.SyncUtil.SKIP_SYNC:Z
            ifeq 16
         2: .line 118
            iconst_0
            istore 1 /* closed */
        start local 1 // boolean closed
         3: .line 121
            getstatic org.apache.cassandra.utils.SyncUtil.fdClosedField:Ljava/lang/reflect/Field;
            ifnull 8
         4: .line 122
            getstatic org.apache.cassandra.utils.SyncUtil.fdClosedField:Ljava/lang/reflect/Field;
            aload 0 /* fd */
            invokevirtual java.lang.reflect.Field.getBoolean:(Ljava/lang/Object;)Z
            istore 1 /* closed */
         5: .line 123
            goto 8
         6: .line 124
      StackMap locals: java.io.FileDescriptor int
      StackMap stack: java.lang.Exception
            astore 2 /* e */
        start local 2 // java.lang.Exception e
         7: .line 126
            new java.lang.RuntimeException
            dup
            aload 2 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.lang.Exception e
         8: .line 129
      StackMap locals:
      StackMap stack:
            iconst_1
            istore 2 /* useCount */
        start local 2 // int useCount
         9: .line 132
            getstatic org.apache.cassandra.utils.SyncUtil.fdUseCountField:Ljava/lang/reflect/Field;
            ifnull 14
        10: .line 133
            getstatic org.apache.cassandra.utils.SyncUtil.fdUseCountField:Ljava/lang/reflect/Field;
            aload 0 /* fd */
            invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.util.concurrent.atomic.AtomicInteger
            invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
            istore 2 /* useCount */
        11: .line 134
            goto 14
        12: .line 135
      StackMap locals: java.io.FileDescriptor int int
      StackMap stack: java.lang.Exception
            astore 3 /* e */
        start local 3 // java.lang.Exception e
        13: .line 137
            new java.lang.RuntimeException
            dup
            aload 3 /* e */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 3 // java.lang.Exception e
        14: .line 139
      StackMap locals:
      StackMap stack:
            iload 1 /* closed */
            ifne 15
            aload 0 /* fd */
            invokevirtual java.io.FileDescriptor.valid:()Z
            ifeq 15
            iload 2 /* useCount */
            ifge 17
        15: .line 140
      StackMap locals:
      StackMap stack:
            new java.io.SyncFailedException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Closed "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* closed */
            invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
            ldc " valid "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* fd */
            invokevirtual java.io.FileDescriptor.valid:()Z
            invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
            ldc " useCount "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            iload 2 /* useCount */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.io.SyncFailedException.<init>:(Ljava/lang/String;)V
            athrow
        end local 2 // int useCount
        end local 1 // boolean closed
        16: .line 144
      StackMap locals:
      StackMap stack:
            aload 0 /* fd */
            invokevirtual java.io.FileDescriptor.sync:()V
        17: .line 146
      StackMap locals:
      StackMap stack:
            return
        end local 0 // java.io.FileDescriptor fd
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   18     0        fd  Ljava/io/FileDescriptor;
            3   16     1    closed  Z
            7    8     2         e  Ljava/lang/Exception;
            9   16     2  useCount  I
           13   14     3         e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           3     5       6  Class java.lang.Exception
           9    11      12  Class java.lang.Exception
    Exceptions:
      throws java.io.SyncFailedException
    MethodParameters:
      Name  Flags
      fd    

  public static void force(java.nio.channels.FileChannel, boolean);
    descriptor: (Ljava/nio/channels/FileChannel;Z)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // java.nio.channels.FileChannel fc
        start local 1 // boolean metaData
         0: .line 150
            aload 0 /* fc */
            invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 151
            getstatic org.apache.cassandra.utils.SyncUtil.SKIP_SYNC:Z
            ifeq 4
         2: .line 153
            aload 0 /* fc */
            invokevirtual java.nio.channels.FileChannel.isOpen:()Z
            ifne 5
         3: .line 154
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            athrow
         4: .line 158
      StackMap locals:
      StackMap stack:
            aload 0 /* fc */
            iload 1 /* metaData */
            invokevirtual java.nio.channels.FileChannel.force:(Z)V
         5: .line 160
      StackMap locals:
      StackMap stack:
            return
        end local 1 // boolean metaData
        end local 0 // java.nio.channels.FileChannel fc
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    6     0        fc  Ljava/nio/channels/FileChannel;
            0    6     1  metaData  Z
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      fc        
      metaData  

  public static void sync(java.io.RandomAccessFile);
    descriptor: (Ljava/io/RandomAccessFile;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.io.RandomAccessFile ras
         0: .line 164
            aload 0 /* ras */
            invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 165
            aload 0 /* ras */
            invokevirtual java.io.RandomAccessFile.getFD:()Ljava/io/FileDescriptor;
            invokestatic org.apache.cassandra.utils.SyncUtil.sync:(Ljava/io/FileDescriptor;)V
         2: .line 166
            return
        end local 0 // java.io.RandomAccessFile ras
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0   ras  Ljava/io/RandomAccessFile;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      ras   

  public static void sync(java.io.FileOutputStream);
    descriptor: (Ljava/io/FileOutputStream;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.io.FileOutputStream fos
         0: .line 170
            aload 0 /* fos */
            invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 171
            aload 0 /* fos */
            invokevirtual java.io.FileOutputStream.getFD:()Ljava/io/FileDescriptor;
            invokestatic org.apache.cassandra.utils.SyncUtil.sync:(Ljava/io/FileDescriptor;)V
         2: .line 172
            return
        end local 0 // java.io.FileOutputStream fos
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0   fos  Ljava/io/FileOutputStream;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      fos   

  public static void trySync(int);
    descriptor: (I)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // int fd
         0: .line 176
            getstatic org.apache.cassandra.utils.SyncUtil.SKIP_SYNC:Z
            ifeq 2
         1: .line 177
            return
         2: .line 179
      StackMap locals:
      StackMap stack:
            iload 0 /* fd */
            invokestatic org.apache.cassandra.utils.NativeLibrary.trySync:(I)V
         3: .line 180
            return
        end local 0 // int fd
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0    fd  I
    MethodParameters:
      Name  Flags
      fd    

  public static void trySyncDir(java.io.File);
    descriptor: (Ljava/io/File;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=1, locals=3, args_size=1
        start local 0 // java.io.File dir
         0: .line 184
            getstatic org.apache.cassandra.utils.SyncUtil.SKIP_SYNC:Z
            ifeq 2
         1: .line 185
            return
         2: .line 187
      StackMap locals:
      StackMap stack:
            aload 0 /* dir */
            invokevirtual java.io.File.getPath:()Ljava/lang/String;
            invokestatic org.apache.cassandra.utils.NativeLibrary.tryOpenDirectory:(Ljava/lang/String;)I
            istore 1 /* directoryFD */
        start local 1 // int directoryFD
         3: .line 190
            iload 1 /* directoryFD */
            invokestatic org.apache.cassandra.utils.SyncUtil.trySync:(I)V
         4: .line 191
            goto 8
         5: .line 193
      StackMap locals: java.io.File int
      StackMap stack: java.lang.Throwable
            astore 2
         6: .line 194
            iload 1 /* directoryFD */
            invokestatic org.apache.cassandra.utils.NativeLibrary.tryCloseFD:(I)V
         7: .line 195
            aload 2
            athrow
         8: .line 194
      StackMap locals:
      StackMap stack:
            iload 1 /* directoryFD */
            invokestatic org.apache.cassandra.utils.NativeLibrary.tryCloseFD:(I)V
         9: .line 196
            return
        end local 1 // int directoryFD
        end local 0 // java.io.File dir
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   10     0          dir  Ljava/io/File;
            3   10     1  directoryFD  I
      Exception table:
        from    to  target  type
           3     5       5  any
    MethodParameters:
      Name  Flags
      dir   
}
SourceFile: "SyncUtil.java"