public class org.apache.tomcat.util.buf.ByteBufferUtils
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.tomcat.util.buf.ByteBufferUtils
  super_class: java.lang.Object
{
  private static final org.apache.tomcat.util.res.StringManager sm;
    descriptor: Lorg/apache/tomcat/util/res/StringManager;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final org.apache.juli.logging.Log log;
    descriptor: Lorg/apache/juli/logging/Log;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

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

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

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

  private static final java.lang.reflect.Method invokeCleanerMethod;
    descriptor: Ljava/lang/reflect/Method;
    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 31
            ldc Lorg/apache/tomcat/util/buf/ByteBufferUtils;
            invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
            putstatic org.apache.tomcat.util.buf.ByteBufferUtils.sm:Lorg/apache/tomcat/util/res/StringManager;
         1: .line 32
            ldc Lorg/apache/tomcat/util/buf/ByteBufferUtils;
            invokestatic org.apache.juli.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/juli/logging/Log;
            putstatic org.apache.tomcat.util.buf.ByteBufferUtils.log:Lorg/apache/juli/logging/Log;
         2: .line 40
            iconst_0
            invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
            astore 0 /* tempBuffer */
        start local 0 // java.nio.ByteBuffer tempBuffer
         3: .line 41
            aconst_null
            astore 1 /* cleanerMethodLocal */
        start local 1 // java.lang.reflect.Method cleanerMethodLocal
         4: .line 42
            aconst_null
            astore 2 /* cleanMethodLocal */
        start local 2 // java.lang.reflect.Method cleanMethodLocal
         5: .line 43
            aconst_null
            astore 3 /* unsafeLocal */
        start local 3 // java.lang.Object unsafeLocal
         6: .line 44
            aconst_null
            astore 4 /* invokeCleanerMethodLocal */
        start local 4 // java.lang.reflect.Method invokeCleanerMethodLocal
         7: .line 45
            invokestatic org.apache.tomcat.util.compat.JreCompat.isJre9Available:()Z
            ifeq 20
         8: .line 47
            ldc "sun.misc.Unsafe"
            invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
            astore 5 /* clazz */
        start local 5 // java.lang.Class clazz
         9: .line 48
            aload 5 /* clazz */
            ldc "theUnsafe"
            invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
            astore 6 /* theUnsafe */
        start local 6 // java.lang.reflect.Field theUnsafe
        10: .line 49
            aload 6 /* theUnsafe */
            iconst_1
            invokevirtual java.lang.reflect.Field.setAccessible:(Z)V
        11: .line 50
            aload 6 /* theUnsafe */
            aconst_null
            invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
            astore 3 /* unsafeLocal */
        12: .line 51
            aload 5 /* clazz */
            ldc "invokeCleaner"
            iconst_1
            anewarray java.lang.Class
            dup
            iconst_0
            ldc Ljava/nio/ByteBuffer;
            aastore
            invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
            astore 4 /* invokeCleanerMethodLocal */
        13: .line 52
            aload 4 /* invokeCleanerMethodLocal */
            aload 3 /* unsafeLocal */
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* tempBuffer */
            aastore
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            pop
        end local 6 // java.lang.reflect.Field theUnsafe
        end local 5 // java.lang.Class clazz
        14: .line 53
            goto 30
        15: .line 55
      StackMap locals: java.nio.ByteBuffer java.lang.reflect.Method java.lang.reflect.Method java.lang.Object java.lang.reflect.Method
      StackMap stack: java.lang.Exception
            astore 5 /* e */
        start local 5 // java.lang.Exception e
        16: .line 56
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.log:Lorg/apache/juli/logging/Log;
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.sm:Lorg/apache/tomcat/util/res/StringManager;
            ldc "byteBufferUtils.cleaner"
            invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
            aload 5 /* e */
            invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
        17: .line 57
            aconst_null
            astore 3 /* unsafeLocal */
        18: .line 58
            aconst_null
            astore 4 /* invokeCleanerMethodLocal */
        end local 5 // java.lang.Exception e
        19: .line 60
            goto 30
        20: .line 62
      StackMap locals:
      StackMap stack:
            aload 0 /* tempBuffer */
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            ldc "cleaner"
            iconst_0
            anewarray java.lang.Class
            invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
            astore 1 /* cleanerMethodLocal */
        21: .line 63
            aload 1 /* cleanerMethodLocal */
            iconst_1
            invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
        22: .line 64
            aload 1 /* cleanerMethodLocal */
            aload 0 /* tempBuffer */
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            astore 5 /* cleanerObject */
        start local 5 // java.lang.Object cleanerObject
        23: .line 65
            aload 5 /* cleanerObject */
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            ldc "clean"
            iconst_0
            anewarray java.lang.Class
            invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
            astore 2 /* cleanMethodLocal */
        24: .line 66
            aload 2 /* cleanMethodLocal */
            aload 5 /* cleanerObject */
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            pop
        end local 5 // java.lang.Object cleanerObject
        25: .line 67
            goto 30
        26: .line 68
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 5 /* e */
        start local 5 // java.lang.Exception e
        27: .line 69
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.log:Lorg/apache/juli/logging/Log;
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.sm:Lorg/apache/tomcat/util/res/StringManager;
            ldc "byteBufferUtils.cleaner"
            invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
            aload 5 /* e */
            invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
        28: .line 70
            aconst_null
            astore 1 /* cleanerMethodLocal */
        29: .line 71
            aconst_null
            astore 2 /* cleanMethodLocal */
        end local 5 // java.lang.Exception e
        30: .line 74
      StackMap locals:
      StackMap stack:
            aload 1 /* cleanerMethodLocal */
            putstatic org.apache.tomcat.util.buf.ByteBufferUtils.cleanerMethod:Ljava/lang/reflect/Method;
        31: .line 75
            aload 2 /* cleanMethodLocal */
            putstatic org.apache.tomcat.util.buf.ByteBufferUtils.cleanMethod:Ljava/lang/reflect/Method;
        32: .line 76
            aload 3 /* unsafeLocal */
            putstatic org.apache.tomcat.util.buf.ByteBufferUtils.unsafe:Ljava/lang/Object;
        33: .line 77
            aload 4 /* invokeCleanerMethodLocal */
            putstatic org.apache.tomcat.util.buf.ByteBufferUtils.invokeCleanerMethod:Ljava/lang/reflect/Method;
        end local 4 // java.lang.reflect.Method invokeCleanerMethodLocal
        end local 3 // java.lang.Object unsafeLocal
        end local 2 // java.lang.reflect.Method cleanMethodLocal
        end local 1 // java.lang.reflect.Method cleanerMethodLocal
        end local 0 // java.nio.ByteBuffer tempBuffer
        34: .line 78
            return
      LocalVariableTable:
        Start  End  Slot                      Name  Signature
            3   34     0                tempBuffer  Ljava/nio/ByteBuffer;
            4   34     1        cleanerMethodLocal  Ljava/lang/reflect/Method;
            5   34     2          cleanMethodLocal  Ljava/lang/reflect/Method;
            6   34     3               unsafeLocal  Ljava/lang/Object;
            7   34     4  invokeCleanerMethodLocal  Ljava/lang/reflect/Method;
            9   14     5                     clazz  Ljava/lang/Class<*>;
           10   14     6                 theUnsafe  Ljava/lang/reflect/Field;
           16   19     5                         e  Ljava/lang/Exception;
           23   25     5             cleanerObject  Ljava/lang/Object;
           27   30     5                         e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           8    14      15  Class java.lang.IllegalAccessException
           8    14      15  Class java.lang.IllegalArgumentException
           8    14      15  Class java.lang.reflect.InvocationTargetException
           8    14      15  Class java.lang.NoSuchMethodException
           8    14      15  Class java.lang.SecurityException
           8    14      15  Class java.lang.ClassNotFoundException
           8    14      15  Class java.lang.NoSuchFieldException
          20    25      26  Class java.lang.NoSuchMethodException
          20    25      26  Class java.lang.SecurityException
          20    25      26  Class java.lang.IllegalAccessException
          20    25      26  Class java.lang.IllegalArgumentException
          20    25      26  Class java.lang.reflect.InvocationTargetException

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.tomcat.util.buf.ByteBufferUtils this
         0: .line 80
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 82
            return
        end local 0 // org.apache.tomcat.util.buf.ByteBufferUtils this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/tomcat/util/buf/ByteBufferUtils;

  public static java.nio.ByteBuffer expand(java.nio.ByteBuffer, int);
    descriptor: (Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=4, args_size=2
        start local 0 // java.nio.ByteBuffer in
        start local 1 // int newSize
         0: .line 97
            aload 0 /* in */
            invokevirtual java.nio.ByteBuffer.capacity:()I
            iload 1 /* newSize */
            if_icmplt 2
         1: .line 98
            aload 0 /* in */
            areturn
         2: .line 102
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 3 /* direct */
        start local 3 // boolean direct
         3: .line 103
            aload 0 /* in */
            invokevirtual java.nio.ByteBuffer.isDirect:()Z
            ifeq 7
         4: .line 104
            iload 1 /* newSize */
            invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
            astore 2 /* out */
        start local 2 // java.nio.ByteBuffer out
         5: .line 105
            iconst_1
            istore 3 /* direct */
         6: .line 106
            goto 8
        end local 2 // java.nio.ByteBuffer out
         7: .line 107
      StackMap locals: java.nio.ByteBuffer int top int
      StackMap stack:
            iload 1 /* newSize */
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
            astore 2 /* out */
        start local 2 // java.nio.ByteBuffer out
         8: .line 111
      StackMap locals: java.nio.ByteBuffer int java.nio.ByteBuffer int
      StackMap stack:
            aload 0 /* in */
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
            pop
         9: .line 112
            aload 2 /* out */
            aload 0 /* in */
            invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
            pop
        10: .line 114
            iload 3 /* direct */
            ifeq 12
        11: .line 115
            aload 0 /* in */
            invokestatic org.apache.tomcat.util.buf.ByteBufferUtils.cleanDirectBuffer:(Ljava/nio/ByteBuffer;)V
        12: .line 118
      StackMap locals:
      StackMap stack:
            aload 2 /* out */
            areturn
        end local 3 // boolean direct
        end local 2 // java.nio.ByteBuffer out
        end local 1 // int newSize
        end local 0 // java.nio.ByteBuffer in
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   13     0       in  Ljava/nio/ByteBuffer;
            0   13     1  newSize  I
            5    7     2      out  Ljava/nio/ByteBuffer;
            8   13     2      out  Ljava/nio/ByteBuffer;
            3   13     3   direct  Z
    MethodParameters:
         Name  Flags
      in       
      newSize  

  public static void cleanDirectBuffer(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 buf
         0: .line 122
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.cleanMethod:Ljava/lang/reflect/Method;
            ifnull 7
         1: .line 124
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.cleanMethod:Ljava/lang/reflect/Method;
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.cleanerMethod:Ljava/lang/reflect/Method;
            aload 0 /* buf */
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            iconst_0
            anewarray java.lang.Object
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            pop
         2: .line 125
            goto 13
         3: .line 126
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 1 /* e */
        start local 1 // java.lang.Exception e
         4: .line 127
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.log:Lorg/apache/juli/logging/Log;
            invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
            ifeq 13
         5: .line 128
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.log:Lorg/apache/juli/logging/Log;
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.sm:Lorg/apache/tomcat/util/res/StringManager;
            ldc "byteBufferUtils.cleaner"
            invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
            aload 1 /* e */
            invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;Ljava/lang/Throwable;)V
        end local 1 // java.lang.Exception e
         6: .line 131
            goto 13
      StackMap locals:
      StackMap stack:
         7: getstatic org.apache.tomcat.util.buf.ByteBufferUtils.invokeCleanerMethod:Ljava/lang/reflect/Method;
            ifnull 13
         8: .line 133
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.invokeCleanerMethod:Ljava/lang/reflect/Method;
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.unsafe:Ljava/lang/Object;
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* buf */
            aastore
            invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
            pop
         9: .line 134
            goto 13
        10: .line 135
      StackMap locals:
      StackMap stack: java.lang.Exception
            astore 1 /* e */
        start local 1 // java.lang.Exception e
        11: .line 136
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.log:Lorg/apache/juli/logging/Log;
            invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
            ifeq 13
        12: .line 137
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.log:Lorg/apache/juli/logging/Log;
            getstatic org.apache.tomcat.util.buf.ByteBufferUtils.sm:Lorg/apache/tomcat/util/res/StringManager;
            ldc "byteBufferUtils.cleaner"
            invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
            aload 1 /* e */
            invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;Ljava/lang/Throwable;)V
        end local 1 // java.lang.Exception e
        13: .line 141
      StackMap locals:
      StackMap stack:
            return
        end local 0 // java.nio.ByteBuffer buf
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   14     0   buf  Ljava/nio/ByteBuffer;
            4    6     1     e  Ljava/lang/Exception;
           11   13     1     e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           1     2       3  Class java.lang.IllegalAccessException
           1     2       3  Class java.lang.IllegalArgumentException
           1     2       3  Class java.lang.reflect.InvocationTargetException
           1     2       3  Class java.lang.SecurityException
           8     9      10  Class java.lang.IllegalAccessException
           8     9      10  Class java.lang.IllegalArgumentException
           8     9      10  Class java.lang.reflect.InvocationTargetException
           8     9      10  Class java.lang.SecurityException
    MethodParameters:
      Name  Flags
      buf   
}
SourceFile: "ByteBufferUtils.java"