public final class io.undertow.server.DirectByteBufferDeallocator
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: io.undertow.server.DirectByteBufferDeallocator
  super_class: java.lang.Object
{
  private static final boolean SUPPORTED;
    descriptor: Z
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

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

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

  private static final sun.misc.Unsafe UNSAFE;
    descriptor: Lsun/misc/Unsafe;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=6, locals=7, args_size=0
         0: .line 24
            ldc "java.specification.version"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            astore 0 /* versionString */
        start local 0 // java.lang.String versionString
         1: .line 25
            aload 0 /* versionString */
            ldc "1."
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 3
         2: .line 26
            aload 0 /* versionString */
            iconst_2
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 0 /* versionString */
         3: .line 28
      StackMap locals: java.lang.String
      StackMap stack:
            aload 0 /* versionString */
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            istore 1 /* version */
        start local 1 // int version
         4: .line 30
            aconst_null
            astore 2 /* tmpCleaner */
        start local 2 // java.lang.reflect.Method tmpCleaner
         5: .line 31
            aconst_null
            astore 3 /* tmpCleanerClean */
        start local 3 // java.lang.reflect.Method tmpCleanerClean
         6: .line 33
            aconst_null
            astore 5 /* tmpUnsafe */
        start local 5 // sun.misc.Unsafe tmpUnsafe
         7: .line 34
            iload 1 /* version */
            bipush 9
            if_icmpge 16
         8: .line 36
            ldc "java.nio.DirectByteBuffer"
            ldc "cleaner"
            invokestatic io.undertow.server.DirectByteBufferDeallocator.getAccesibleMethod:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/reflect/Method;
            astore 2 /* tmpCleaner */
         9: .line 37
            ldc "sun.misc.Cleaner"
            ldc "clean"
            invokestatic io.undertow.server.DirectByteBufferDeallocator.getAccesibleMethod:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/reflect/Method;
            astore 3 /* tmpCleanerClean */
        10: .line 38
            iconst_1
            istore 4 /* supported */
        start local 4 // boolean supported
        11: .line 39
            goto 24
        end local 4 // boolean supported
      StackMap locals: java.lang.String int java.lang.reflect.Method java.lang.reflect.Method top sun.misc.Unsafe
      StackMap stack: java.lang.Throwable
        12: astore 6 /* t */
        start local 6 // java.lang.Throwable t
        13: .line 40
            getstatic io.undertow.UndertowLogger.ROOT_LOGGER:Lio/undertow/UndertowLogger;
            aload 6 /* t */
            invokeinterface io.undertow.UndertowLogger.directBufferDeallocatorInitializationFailed:(Ljava/lang/Throwable;)V
        14: .line 41
            iconst_0
            istore 4 /* supported */
        end local 6 // java.lang.Throwable t
        start local 4 // boolean supported
        15: .line 43
            goto 24
        end local 4 // boolean supported
        16: .line 45
      StackMap locals:
      StackMap stack:
            invokestatic io.undertow.server.DirectByteBufferDeallocator.getUnsafe:()Lsun/misc/Unsafe;
            astore 5 /* tmpUnsafe */
        17: .line 46
            aload 5 /* tmpUnsafe */
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            ldc "invokeCleaner"
            iconst_1
            anewarray java.lang.Class
            dup
            iconst_0
            ldc Ljava/nio/ByteBuffer;
            aastore
            invokevirtual java.lang.Class.getDeclaredMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
            astore 3 /* tmpCleanerClean */
        18: .line 47
            aload 3 /* tmpCleanerClean */
            iconst_1
            invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
        19: .line 48
            iconst_1
            istore 4 /* supported */
        start local 4 // boolean supported
        20: .line 49
            goto 24
        end local 4 // boolean supported
      StackMap locals:
      StackMap stack: java.lang.Throwable
        21: astore 6 /* t */
        start local 6 // java.lang.Throwable t
        22: .line 50
            getstatic io.undertow.UndertowLogger.ROOT_LOGGER:Lio/undertow/UndertowLogger;
            aload 6 /* t */
            invokeinterface io.undertow.UndertowLogger.directBufferDeallocatorInitializationFailed:(Ljava/lang/Throwable;)V
        23: .line 51
            iconst_0
            istore 4 /* supported */
        end local 6 // java.lang.Throwable t
        start local 4 // boolean supported
        24: .line 54
      StackMap locals: java.lang.String int java.lang.reflect.Method java.lang.reflect.Method int sun.misc.Unsafe
      StackMap stack:
            iload 4 /* supported */
            putstatic io.undertow.server.DirectByteBufferDeallocator.SUPPORTED:Z
        25: .line 55
            aload 2 /* tmpCleaner */
            putstatic io.undertow.server.DirectByteBufferDeallocator.cleaner:Ljava/lang/reflect/Method;
        26: .line 56
            aload 3 /* tmpCleanerClean */
            putstatic io.undertow.server.DirectByteBufferDeallocator.cleanerClean:Ljava/lang/reflect/Method;
        27: .line 57
            aload 5 /* tmpUnsafe */
            putstatic io.undertow.server.DirectByteBufferDeallocator.UNSAFE:Lsun/misc/Unsafe;
        end local 5 // sun.misc.Unsafe tmpUnsafe
        end local 4 // boolean supported
        end local 3 // java.lang.reflect.Method tmpCleanerClean
        end local 2 // java.lang.reflect.Method tmpCleaner
        end local 1 // int version
        end local 0 // java.lang.String versionString
        28: .line 59
            return
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            1   28     0    versionString  Ljava/lang/String;
            4   28     1          version  I
            5   28     2       tmpCleaner  Ljava/lang/reflect/Method;
            6   28     3  tmpCleanerClean  Ljava/lang/reflect/Method;
           11   12     4        supported  Z
           15   16     4        supported  Z
           20   21     4        supported  Z
           24   28     4        supported  Z
            7   28     5        tmpUnsafe  Lsun/misc/Unsafe;
           13   15     6                t  Ljava/lang/Throwable;
           22   24     6                t  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           8    11      12  Class java.lang.Throwable
          16    20      21  Class java.lang.Throwable

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // io.undertow.server.DirectByteBufferDeallocator this
         0: .line 61
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 63
            return
        end local 0 // io.undertow.server.DirectByteBufferDeallocator this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lio/undertow/server/DirectByteBufferDeallocator;

  public static void free(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=2, args_size=1
        start local 0 // java.nio.ByteBuffer buffer
         0: .line 72
            getstatic io.undertow.server.DirectByteBufferDeallocator.SUPPORTED:Z
            ifeq 9
            aload 0 /* buffer */
            ifnull 9
            aload 0 /* buffer */
            invokevirtual java.nio.ByteBuffer.isDirect:()Z
            ifeq 9
         1: .line 74
            getstatic io.undertow.server.DirectByteBufferDeallocator.UNSAFE:Lsun/misc/Unsafe;
            ifnull 4
         2: .line 76
            getstatic io.undertow.server.DirectByteBufferDeallocator.cleanerClean:Ljava/lang/reflect/Method;
            getstatic io.undertow.server.DirectByteBufferDeallocator.UNSAFE:Lsun/misc/Unsafe;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* buffer */
            aastore
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            pop
         3: .line 77
            goto 9
         4: .line 78
      StackMap locals:
      StackMap stack:
            getstatic io.undertow.server.DirectByteBufferDeallocator.cleaner:Ljava/lang/reflect/Method;
            aload 0 /* buffer */
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            astore 1 /* cleaner */
        start local 1 // java.lang.Object cleaner
         5: .line 79
            getstatic io.undertow.server.DirectByteBufferDeallocator.cleanerClean:Ljava/lang/reflect/Method;
            aload 1 /* cleaner */
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            pop
        end local 1 // java.lang.Object cleaner
         6: .line 81
            goto 9
      StackMap locals:
      StackMap stack: java.lang.Throwable
         7: astore 1 /* t */
        start local 1 // java.lang.Throwable t
         8: .line 82
            getstatic io.undertow.UndertowLogger.ROOT_LOGGER:Lio/undertow/UndertowLogger;
            aload 1 /* t */
            invokeinterface io.undertow.UndertowLogger.directBufferDeallocationFailed:(Ljava/lang/Throwable;)V
        end local 1 // java.lang.Throwable t
         9: .line 85
      StackMap locals:
      StackMap stack:
            return
        end local 0 // java.nio.ByteBuffer buffer
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   10     0   buffer  Ljava/nio/ByteBuffer;
            5    6     1  cleaner  Ljava/lang/Object;
            8    9     1        t  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           1     6       7  Class java.lang.Throwable
    MethodParameters:
        Name  Flags
      buffer  

  private static sun.misc.Unsafe getUnsafe();
    descriptor: ()Lsun/misc/Unsafe;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 88
            invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
            ifnull 2
         1: .line 89
            new io.undertow.server.DirectByteBufferDeallocator$1
            dup
            invokespecial io.undertow.server.DirectByteBufferDeallocator$1.<init>:()V
            invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
            checkcast sun.misc.Unsafe
            areturn
         2: .line 95
      StackMap locals:
      StackMap stack:
            invokestatic io.undertow.server.DirectByteBufferDeallocator.getUnsafe0:()Lsun/misc/Unsafe;
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private static sun.misc.Unsafe getUnsafe0();
    descriptor: ()Lsun/misc/Unsafe;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=1, args_size=0
         0: .line 100
            ldc Lsun/misc/Unsafe;
            ldc "theUnsafe"
            invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
            astore 0 /* theUnsafe */
        start local 0 // java.lang.reflect.Field theUnsafe
         1: .line 101
            aload 0 /* theUnsafe */
            iconst_1
            invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
         2: .line 102
            aload 0 /* theUnsafe */
            aconst_null
            invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast sun.misc.Unsafe
         3: areturn
        end local 0 // java.lang.reflect.Field theUnsafe
         4: .line 103
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 0 /* t */
        start local 0 // java.lang.Throwable t
         5: .line 104
            new java.lang.RuntimeException
            dup
            ldc "JDK did not allow accessing unsafe"
            aload 0 /* t */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 0 // java.lang.Throwable t
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            1    4     0  theUnsafe  Ljava/lang/reflect/Field;
            5    6     0          t  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           0     3       4  Class java.lang.Throwable

  private static java.lang.reflect.Method getAccesibleMethod(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/reflect/Method;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // java.lang.String className
        start local 1 // java.lang.String methodName
         0: .line 109
            invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
            ifnull 2
         1: .line 110
            new io.undertow.server.DirectByteBufferDeallocator$2
            dup
            aload 0 /* className */
            aload 1 /* methodName */
            invokespecial io.undertow.server.DirectByteBufferDeallocator$2.<init>:(Ljava/lang/String;Ljava/lang/String;)V
            invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
            checkcast java.lang.reflect.Method
            areturn
         2: .line 117
      StackMap locals:
      StackMap stack:
            aload 0 /* className */
            aload 1 /* methodName */
            invokestatic io.undertow.server.DirectByteBufferDeallocator.getAccesibleMethod0:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/reflect/Method;
            areturn
        end local 1 // java.lang.String methodName
        end local 0 // java.lang.String className
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    3     0   className  Ljava/lang/String;
            0    3     1  methodName  Ljava/lang/String;
    MethodParameters:
            Name  Flags
      className   
      methodName  

  private static java.lang.reflect.Method getAccesibleMethod0(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/reflect/Method;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // java.lang.String className
        start local 1 // java.lang.String methodName
         0: .line 122
            aload 0 /* className */
            invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
            aload 1 /* methodName */
            iconst_0
            anewarray java.lang.Class
            invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
            astore 2 /* method */
        start local 2 // java.lang.reflect.Method method
         1: .line 123
            aload 2 /* method */
            iconst_1
            invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
         2: .line 124
            aload 2 /* method */
         3: areturn
        end local 2 // java.lang.reflect.Method method
         4: .line 125
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 2 /* t */
        start local 2 // java.lang.Throwable t
         5: .line 126
            new java.lang.RuntimeException
            dup
            ldc "JDK did not allow accessing method"
            aload 2 /* t */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.lang.Throwable t
        end local 1 // java.lang.String methodName
        end local 0 // java.lang.String className
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    6     0   className  Ljava/lang/String;
            0    6     1  methodName  Ljava/lang/String;
            1    4     2      method  Ljava/lang/reflect/Method;
            5    6     2           t  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           0     3       4  Class java.lang.Throwable
    MethodParameters:
            Name  Flags
      className   
      methodName  
}
SourceFile: "DirectByteBufferDeallocator.java"
NestMembers:
  io.undertow.server.DirectByteBufferDeallocator$1  io.undertow.server.DirectByteBufferDeallocator$2
InnerClasses:
  io.undertow.server.DirectByteBufferDeallocator$1
  io.undertow.server.DirectByteBufferDeallocator$2