public class org.apache.cassandra.utils.memory.BufferPool
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.cassandra.utils.memory.BufferPool
  super_class: java.lang.Object
{
  public static final int CHUNK_SIZE;
    descriptor: I
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
    ConstantValue: 65536

  public static long MEMORY_USAGE_THRESHOLD;
    descriptor: J
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()

  public static boolean ALLOCATE_ON_HEAP_WHEN_EXAHUSTED;
    descriptor: Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()

  public static boolean DISABLED;
    descriptor: Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()

  public static boolean DEBUG;
    descriptor: Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()

  private static final org.slf4j.Logger logger;
    descriptor: Lorg/slf4j/Logger;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final org.apache.cassandra.utils.NoSpamLogger noSpamLogger;
    descriptor: Lorg/apache/cassandra/utils/NoSpamLogger;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final java.nio.ByteBuffer EMPTY_BUFFER;
    descriptor: Ljava/nio/ByteBuffer;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final org.apache.cassandra.utils.memory.BufferPool$GlobalPool globalPool;
    descriptor: Lorg/apache/cassandra/utils/memory/BufferPool$GlobalPool;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final io.netty.util.concurrent.FastThreadLocal<org.apache.cassandra.utils.memory.BufferPool$LocalPool> localPool;
    descriptor: Lio/netty/util/concurrent/FastThreadLocal;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Signature: Lio/netty/util/concurrent/FastThreadLocal<Lorg/apache/cassandra/utils/memory/BufferPool$LocalPool;>;

  private static final java.util.concurrent.ConcurrentLinkedQueue<org.apache.cassandra.utils.memory.BufferPool$LocalPoolRef> localPoolReferences;
    descriptor: Ljava/util/concurrent/ConcurrentLinkedQueue;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Signature: Ljava/util/concurrent/ConcurrentLinkedQueue<Lorg/apache/cassandra/utils/memory/BufferPool$LocalPoolRef;>;

  private static final java.lang.ref.ReferenceQueue<java.lang.Object> localPoolRefQueue;
    descriptor: Ljava/lang/ref/ReferenceQueue;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;

  private static final org.apache.cassandra.concurrent.InfiniteLoopExecutor EXEC;
    descriptor: Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=4, locals=0, args_size=0
         0: .line 56
            invokestatic org.apache.cassandra.config.DatabaseDescriptor.getFileCacheSizeInMB:()I
            i2l
            ldc 1024
            lmul
            ldc 1024
            lmul
            putstatic org.apache.cassandra.utils.memory.BufferPool.MEMORY_USAGE_THRESHOLD:J
         1: .line 59
            invokestatic org.apache.cassandra.config.DatabaseDescriptor.getBufferPoolUseHeapIfExhausted:()Z
            putstatic org.apache.cassandra.utils.memory.BufferPool.ALLOCATE_ON_HEAP_WHEN_EXAHUSTED:Z
         2: .line 62
            ldc "cassandra.test.disable_buffer_pool"
            ldc "false"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
            invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
            putstatic org.apache.cassandra.utils.memory.BufferPool.DISABLED:Z
         3: .line 65
            iconst_0
            putstatic org.apache.cassandra.utils.memory.BufferPool.DEBUG:Z
         4: .line 67
            ldc Lorg/apache/cassandra/utils/memory/BufferPool;
            invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
            putstatic org.apache.cassandra.utils.memory.BufferPool.logger:Lorg/slf4j/Logger;
         5: .line 68
            getstatic org.apache.cassandra.utils.memory.BufferPool.logger:Lorg/slf4j/Logger;
            ldc 15
            getstatic java.util.concurrent.TimeUnit.MINUTES:Ljava/util/concurrent/TimeUnit;
            invokestatic org.apache.cassandra.utils.NoSpamLogger.getLogger:(Lorg/slf4j/Logger;JLjava/util/concurrent/TimeUnit;)Lorg/apache/cassandra/utils/NoSpamLogger;
            putstatic org.apache.cassandra.utils.memory.BufferPool.noSpamLogger:Lorg/apache/cassandra/utils/NoSpamLogger;
         6: .line 69
            iconst_0
            invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
            putstatic org.apache.cassandra.utils.memory.BufferPool.EMPTY_BUFFER:Ljava/nio/ByteBuffer;
         7: .line 72
            new org.apache.cassandra.utils.memory.BufferPool$GlobalPool
            dup
            invokespecial org.apache.cassandra.utils.memory.BufferPool$GlobalPool.<init>:()V
            putstatic org.apache.cassandra.utils.memory.BufferPool.globalPool:Lorg/apache/cassandra/utils/memory/BufferPool$GlobalPool;
         8: .line 75
            new org.apache.cassandra.utils.memory.BufferPool$1
            dup
            invokespecial org.apache.cassandra.utils.memory.BufferPool$1.<init>:()V
            putstatic org.apache.cassandra.utils.memory.BufferPool.localPool:Lio/netty/util/concurrent/FastThreadLocal;
         9: .line 497
            new java.util.concurrent.ConcurrentLinkedQueue
            dup
            invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
            putstatic org.apache.cassandra.utils.memory.BufferPool.localPoolReferences:Ljava/util/concurrent/ConcurrentLinkedQueue;
        10: .line 499
            new java.lang.ref.ReferenceQueue
            dup
            invokespecial java.lang.ref.ReferenceQueue.<init>:()V
            putstatic org.apache.cassandra.utils.memory.BufferPool.localPoolRefQueue:Ljava/lang/ref/ReferenceQueue;
        11: .line 500
            new org.apache.cassandra.concurrent.InfiniteLoopExecutor
            dup
            ldc "LocalPool-Cleaner"
            invokedynamic run()Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor$InterruptibleRunnable;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  ()V
                  org/apache/cassandra/utils/memory/BufferPool.cleanupOneReference()V (6)
                  ()V
            invokespecial org.apache.cassandra.concurrent.InfiniteLoopExecutor.<init>:(Ljava/lang/String;Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor$InterruptibleRunnable;)V
            invokevirtual org.apache.cassandra.concurrent.InfiniteLoopExecutor.start:()Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
            putstatic org.apache.cassandra.utils.memory.BufferPool.EXEC:Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

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

  public static java.nio.ByteBuffer get(int);
    descriptor: (I)Ljava/nio/ByteBuffer;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // int size
         0: .line 86
            getstatic org.apache.cassandra.utils.memory.BufferPool.DISABLED:Z
            ifeq 2
         1: .line 87
            iload 0 /* size */
            getstatic org.apache.cassandra.utils.memory.BufferPool.ALLOCATE_ON_HEAP_WHEN_EXAHUSTED:Z
            invokestatic org.apache.cassandra.utils.memory.BufferPool.allocate:(IZ)Ljava/nio/ByteBuffer;
            areturn
         2: .line 89
      StackMap locals:
      StackMap stack:
            iload 0 /* size */
            getstatic org.apache.cassandra.utils.memory.BufferPool.ALLOCATE_ON_HEAP_WHEN_EXAHUSTED:Z
            invokestatic org.apache.cassandra.utils.memory.BufferPool.takeFromPool:(IZ)Ljava/nio/ByteBuffer;
            areturn
        end local 0 // int size
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  size  I
    MethodParameters:
      Name  Flags
      size  

  public static java.nio.ByteBuffer get(int, org.apache.cassandra.io.compress.BufferType);
    descriptor: (ILorg/apache/cassandra/io/compress/BufferType;)Ljava/nio/ByteBuffer;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // int size
        start local 1 // org.apache.cassandra.io.compress.BufferType bufferType
         0: .line 94
            aload 1 /* bufferType */
            getstatic org.apache.cassandra.io.compress.BufferType.OFF_HEAP:Lorg/apache/cassandra/io/compress/BufferType;
            if_acmpne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: istore 2 /* direct */
        start local 2 // boolean direct
         3: .line 95
            getstatic org.apache.cassandra.utils.memory.BufferPool.DISABLED:Z
            ifne 4
            iload 2 /* direct */
            ifne 7
         4: .line 96
      StackMap locals: int
      StackMap stack:
            iload 0 /* size */
            iload 2 /* direct */
            ifeq 5
            iconst_0
            goto 6
      StackMap locals:
      StackMap stack: int
         5: iconst_1
      StackMap locals: int org.apache.cassandra.io.compress.BufferType int
      StackMap stack: int int
         6: invokestatic org.apache.cassandra.utils.memory.BufferPool.allocate:(IZ)Ljava/nio/ByteBuffer;
            areturn
         7: .line 98
      StackMap locals:
      StackMap stack:
            iload 0 /* size */
            iload 2 /* direct */
            ifeq 8
            iconst_0
            goto 9
      StackMap locals:
      StackMap stack: int
         8: iconst_1
      StackMap locals: int org.apache.cassandra.io.compress.BufferType int
      StackMap stack: int int
         9: invokestatic org.apache.cassandra.utils.memory.BufferPool.takeFromPool:(IZ)Ljava/nio/ByteBuffer;
            areturn
        end local 2 // boolean direct
        end local 1 // org.apache.cassandra.io.compress.BufferType bufferType
        end local 0 // int size
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   10     0        size  I
            0   10     1  bufferType  Lorg/apache/cassandra/io/compress/BufferType;
            3   10     2      direct  Z
    MethodParameters:
            Name  Flags
      size        
      bufferType  

  public static java.nio.ByteBuffer tryGet(int);
    descriptor: (I)Ljava/nio/ByteBuffer;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // int size
         0: .line 104
            getstatic org.apache.cassandra.utils.memory.BufferPool.DISABLED:Z
            ifeq 2
         1: .line 105
            iload 0 /* size */
            getstatic org.apache.cassandra.utils.memory.BufferPool.ALLOCATE_ON_HEAP_WHEN_EXAHUSTED:Z
            invokestatic org.apache.cassandra.utils.memory.BufferPool.allocate:(IZ)Ljava/nio/ByteBuffer;
            areturn
         2: .line 107
      StackMap locals:
      StackMap stack:
            iload 0 /* size */
            getstatic org.apache.cassandra.utils.memory.BufferPool.ALLOCATE_ON_HEAP_WHEN_EXAHUSTED:Z
            invokestatic org.apache.cassandra.utils.memory.BufferPool.maybeTakeFromPool:(IZ)Ljava/nio/ByteBuffer;
            areturn
        end local 0 // int size
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  size  I
    MethodParameters:
      Name  Flags
      size  

  private static java.nio.ByteBuffer allocate(int, boolean);
    descriptor: (IZ)Ljava/nio/ByteBuffer;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=1, locals=2, args_size=2
        start local 0 // int size
        start local 1 // boolean onHeap
         0: .line 112
            iload 1 /* onHeap */
            ifeq 2
         1: .line 113
            iload 0 /* size */
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
            goto 3
         2: .line 114
      StackMap locals:
      StackMap stack:
            iload 0 /* size */
            invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
         3: .line 112
      StackMap locals:
      StackMap stack: java.nio.ByteBuffer
            areturn
        end local 1 // boolean onHeap
        end local 0 // int size
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    4     0    size  I
            0    4     1  onHeap  Z
    MethodParameters:
        Name  Flags
      size    
      onHeap  

  private static java.nio.ByteBuffer takeFromPool(int, boolean);
    descriptor: (IZ)Ljava/nio/ByteBuffer;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // int size
        start local 1 // boolean allocateOnHeapWhenExhausted
         0: .line 119
            iload 0 /* size */
            iload 1 /* allocateOnHeapWhenExhausted */
            invokestatic org.apache.cassandra.utils.memory.BufferPool.maybeTakeFromPool:(IZ)Ljava/nio/ByteBuffer;
            astore 2 /* ret */
        start local 2 // java.nio.ByteBuffer ret
         1: .line 120
            aload 2 /* ret */
            ifnull 3
         2: .line 121
            aload 2 /* ret */
            areturn
         3: .line 123
      StackMap locals: java.nio.ByteBuffer
      StackMap stack:
            getstatic org.apache.cassandra.utils.memory.BufferPool.logger:Lorg/slf4j/Logger;
            invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
            ifeq 5
         4: .line 124
            getstatic org.apache.cassandra.utils.memory.BufferPool.logger:Lorg/slf4j/Logger;
            ldc "Requested buffer size {} has been allocated directly due to lack of capacity"
            iload 0 /* size */
            i2l
            invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
            invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
         5: .line 126
      StackMap locals:
      StackMap stack:
            getstatic org.apache.cassandra.utils.memory.BufferPool.localPool:Lio/netty/util/concurrent/FastThreadLocal;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
            checkcast org.apache.cassandra.utils.memory.BufferPool$LocalPool
            iload 0 /* size */
            iload 1 /* allocateOnHeapWhenExhausted */
            invokevirtual org.apache.cassandra.utils.memory.BufferPool$LocalPool.allocate:(IZ)Ljava/nio/ByteBuffer;
            areturn
        end local 2 // java.nio.ByteBuffer ret
        end local 1 // boolean allocateOnHeapWhenExhausted
        end local 0 // int size
      LocalVariableTable:
        Start  End  Slot                         Name  Signature
            0    6     0                         size  I
            0    6     1  allocateOnHeapWhenExhausted  Z
            1    6     2                          ret  Ljava/nio/ByteBuffer;
    MethodParameters:
                             Name  Flags
      size                         
      allocateOnHeapWhenExhausted  

  private static java.nio.ByteBuffer maybeTakeFromPool(int, boolean);
    descriptor: (IZ)Ljava/nio/ByteBuffer;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // int size
        start local 1 // boolean allocateOnHeapWhenExhausted
         0: .line 131
            iload 0 /* size */
            ifge 2
         1: .line 132
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Size must be positive ("
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 0 /* size */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc ")"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 134
      StackMap locals:
      StackMap stack:
            iload 0 /* size */
            ifne 4
         3: .line 135
            getstatic org.apache.cassandra.utils.memory.BufferPool.EMPTY_BUFFER:Ljava/nio/ByteBuffer;
            areturn
         4: .line 137
      StackMap locals:
      StackMap stack:
            iload 0 /* size */
            ldc 65536
            if_icmple 11
         5: .line 139
            getstatic org.apache.cassandra.utils.memory.BufferPool.logger:Lorg/slf4j/Logger;
            invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
            ifeq 10
         6: .line 140
            getstatic org.apache.cassandra.utils.memory.BufferPool.logger:Lorg/slf4j/Logger;
            ldc "Requested buffer size {} is bigger than {}, allocating directly"
         7: .line 141
            iload 0 /* size */
            i2l
            invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
         8: .line 142
            ldc 65536
            invokestatic org.apache.cassandra.utils.FBUtilities.prettyPrintMemory:(J)Ljava/lang/String;
         9: .line 140
            invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
        10: .line 144
      StackMap locals:
      StackMap stack:
            getstatic org.apache.cassandra.utils.memory.BufferPool.localPool:Lio/netty/util/concurrent/FastThreadLocal;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
            checkcast org.apache.cassandra.utils.memory.BufferPool$LocalPool
            iload 0 /* size */
            iload 1 /* allocateOnHeapWhenExhausted */
            invokevirtual org.apache.cassandra.utils.memory.BufferPool$LocalPool.allocate:(IZ)Ljava/nio/ByteBuffer;
            areturn
        11: .line 147
      StackMap locals:
      StackMap stack:
            getstatic org.apache.cassandra.utils.memory.BufferPool.localPool:Lio/netty/util/concurrent/FastThreadLocal;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
            checkcast org.apache.cassandra.utils.memory.BufferPool$LocalPool
            iload 0 /* size */
            invokevirtual org.apache.cassandra.utils.memory.BufferPool$LocalPool.get:(I)Ljava/nio/ByteBuffer;
            areturn
        end local 1 // boolean allocateOnHeapWhenExhausted
        end local 0 // int size
      LocalVariableTable:
        Start  End  Slot                         Name  Signature
            0   12     0                         size  I
            0   12     1  allocateOnHeapWhenExhausted  Z
    MethodParameters:
                             Name  Flags
      size                         
      allocateOnHeapWhenExhausted  

  public static void put(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.nio.ByteBuffer buffer
         0: .line 152
            getstatic org.apache.cassandra.utils.memory.BufferPool.DISABLED:Z
            ifne 2
            aload 0 /* buffer */
            invokevirtual java.nio.ByteBuffer.hasArray:()Z
            ifne 2
         1: .line 153
            getstatic org.apache.cassandra.utils.memory.BufferPool.localPool:Lio/netty/util/concurrent/FastThreadLocal;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
            checkcast org.apache.cassandra.utils.memory.BufferPool$LocalPool
            aload 0 /* buffer */
            invokevirtual org.apache.cassandra.utils.memory.BufferPool$LocalPool.put:(Ljava/nio/ByteBuffer;)V
         2: .line 154
      StackMap locals:
      StackMap stack:
            return
        end local 0 // java.nio.ByteBuffer buffer
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    3     0  buffer  Ljava/nio/ByteBuffer;
    MethodParameters:
        Name  Flags
      buffer  

  static void reset();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 160
            getstatic org.apache.cassandra.utils.memory.BufferPool.localPool:Lio/netty/util/concurrent/FastThreadLocal;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
            checkcast org.apache.cassandra.utils.memory.BufferPool$LocalPool
            invokevirtual org.apache.cassandra.utils.memory.BufferPool$LocalPool.reset:()V
         1: .line 161
            getstatic org.apache.cassandra.utils.memory.BufferPool.globalPool:Lorg/apache/cassandra/utils/memory/BufferPool$GlobalPool;
            invokevirtual org.apache.cassandra.utils.memory.BufferPool$GlobalPool.reset:()V
         2: .line 162
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()

  static org.apache.cassandra.utils.memory.BufferPool$Chunk currentChunk();
    descriptor: ()Lorg/apache/cassandra/utils/memory/BufferPool$Chunk;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 167
            getstatic org.apache.cassandra.utils.memory.BufferPool.localPool:Lio/netty/util/concurrent/FastThreadLocal;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
            checkcast org.apache.cassandra.utils.memory.BufferPool$LocalPool
            getfield org.apache.cassandra.utils.memory.BufferPool$LocalPool.chunks:[Lorg/apache/cassandra/utils/memory/BufferPool$Chunk;
            iconst_0
            aaload
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()
    RuntimeInvisibleTypeAnnotations: 
      METHOD_RETURN
        com.google.common.annotations.VisibleForTesting()

  static int numChunks();
    descriptor: ()I
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=5, args_size=0
         0: .line 173
            iconst_0
            istore 0 /* ret */
        start local 0 // int ret
         1: .line 174
            getstatic org.apache.cassandra.utils.memory.BufferPool.localPool:Lio/netty/util/concurrent/FastThreadLocal;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
            checkcast org.apache.cassandra.utils.memory.BufferPool$LocalPool
            getfield org.apache.cassandra.utils.memory.BufferPool$LocalPool.chunks:[Lorg/apache/cassandra/utils/memory/BufferPool$Chunk;
            dup
            astore 4
            arraylength
            istore 3
            iconst_0
            istore 2
            goto 6
      StackMap locals: int top int int org.apache.cassandra.utils.memory.BufferPool$Chunk[]
      StackMap stack:
         2: aload 4
            iload 2
            aaload
            astore 1 /* chunk */
        start local 1 // org.apache.cassandra.utils.memory.BufferPool$Chunk chunk
         3: .line 176
            aload 1 /* chunk */
            ifnull 5
         4: .line 177
            iinc 0 /* ret */ 1
        end local 1 // org.apache.cassandra.utils.memory.BufferPool$Chunk chunk
         5: .line 174
      StackMap locals:
      StackMap stack:
            iinc 2 1
      StackMap locals:
      StackMap stack:
         6: iload 2
            iload 3
            if_icmplt 2
         7: .line 179
            iload 0 /* ret */
            ireturn
        end local 0 // int ret
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            1    8     0    ret  I
            3    5     1  chunk  Lorg/apache/cassandra/utils/memory/BufferPool$Chunk;
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()
    RuntimeInvisibleTypeAnnotations: 
      METHOD_RETURN
        com.google.common.annotations.VisibleForTesting()

  static void assertAllRecycled();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 185
            getstatic org.apache.cassandra.utils.memory.BufferPool.globalPool:Lorg/apache/cassandra/utils/memory/BufferPool$GlobalPool;
            getfield org.apache.cassandra.utils.memory.BufferPool$GlobalPool.debug:Lorg/apache/cassandra/utils/memory/BufferPool$Debug;
            invokevirtual org.apache.cassandra.utils.memory.BufferPool$Debug.check:()V
         1: .line 186
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()

  public static long sizeInBytes();
    descriptor: ()J
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 190
            getstatic org.apache.cassandra.utils.memory.BufferPool.globalPool:Lorg/apache/cassandra/utils/memory/BufferPool$GlobalPool;
            invokevirtual org.apache.cassandra.utils.memory.BufferPool$GlobalPool.sizeInBytes:()J
            lreturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private static void cleanupOneReference();
    descriptor: ()V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=1, args_size=0
         0: .line 504
            getstatic org.apache.cassandra.utils.memory.BufferPool.localPoolRefQueue:Ljava/lang/ref/ReferenceQueue;
            ldc 100
            invokevirtual java.lang.ref.ReferenceQueue.remove:(J)Ljava/lang/ref/Reference;
            astore 0 /* obj */
        start local 0 // java.lang.Object obj
         1: .line 505
            aload 0 /* obj */
            instanceof org.apache.cassandra.utils.memory.BufferPool$LocalPoolRef
            ifeq 4
         2: .line 507
            aload 0 /* obj */
            checkcast org.apache.cassandra.utils.memory.BufferPool$LocalPoolRef
            invokevirtual org.apache.cassandra.utils.memory.BufferPool$LocalPoolRef.release:()V
         3: .line 508
            getstatic org.apache.cassandra.utils.memory.BufferPool.localPoolReferences:Ljava/util/concurrent/ConcurrentLinkedQueue;
            aload 0 /* obj */
            invokevirtual java.util.concurrent.ConcurrentLinkedQueue.remove:(Ljava/lang/Object;)Z
            pop
         4: .line 510
      StackMap locals: java.lang.Object
      StackMap stack:
            return
        end local 0 // java.lang.Object obj
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            1    5     0   obj  Ljava/lang/Object;
    Exceptions:
      throws java.lang.InterruptedException

  private static java.nio.ByteBuffer allocateDirectAligned(int);
    descriptor: (I)Ljava/nio/ByteBuffer;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=8, args_size=1
        start local 0 // int capacity
         0: .line 514
            invokestatic org.apache.cassandra.utils.memory.MemoryUtil.pageSize:()I
            istore 1 /* align */
        start local 1 // int align
         1: .line 515
            iload 1 /* align */
            invokestatic java.lang.Integer.bitCount:(I)I
            iconst_1
            if_icmpeq 3
         2: .line 516
            new java.lang.IllegalArgumentException
            dup
            ldc "Alignment must be a power of 2"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 518
      StackMap locals: int
      StackMap stack:
            iload 0 /* capacity */
            iload 1 /* align */
            iadd
            invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
            astore 2 /* buffer */
        start local 2 // java.nio.ByteBuffer buffer
         4: .line 519
            aload 2 /* buffer */
            invokestatic org.apache.cassandra.utils.memory.MemoryUtil.getAddress:(Ljava/nio/ByteBuffer;)J
            lstore 3 /* address */
        start local 3 // long address
         5: .line 520
            lload 3 /* address */
            iload 1 /* align */
            iconst_1
            isub
            i2l
            land
            lstore 5 /* offset */
        start local 5 // long offset
         6: .line 522
            lload 5 /* offset */
            lconst_0
            lcmp
            ifne 9
         7: .line 524
            aload 2 /* buffer */
            iload 0 /* capacity */
            invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
            pop
         8: .line 525
            goto 12
         9: .line 528
      StackMap locals: java.nio.ByteBuffer long long
      StackMap stack:
            iload 1 /* align */
            i2l
            lload 5 /* offset */
            lsub
            l2i
            istore 7 /* pos */
        start local 7 // int pos
        10: .line 529
            aload 2 /* buffer */
            iload 7 /* pos */
            invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
            pop
        11: .line 530
            aload 2 /* buffer */
            iload 7 /* pos */
            iload 0 /* capacity */
            iadd
            invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
            pop
        end local 7 // int pos
        12: .line 533
      StackMap locals:
      StackMap stack:
            aload 2 /* buffer */
            invokevirtual java.nio.ByteBuffer.slice:()Ljava/nio/ByteBuffer;
            areturn
        end local 5 // long offset
        end local 3 // long address
        end local 2 // java.nio.ByteBuffer buffer
        end local 1 // int align
        end local 0 // int capacity
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   13     0  capacity  I
            1   13     1     align  I
            4   13     2    buffer  Ljava/nio/ByteBuffer;
            5   13     3   address  J
            6   13     5    offset  J
           10   12     7       pos  I
    MethodParameters:
          Name  Flags
      capacity  

  public static int roundUpNormal(int);
    descriptor: (I)I
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // int size
         0: .line 853
            iload 0 /* size */
            sipush 1024
            invokestatic org.apache.cassandra.utils.memory.BufferPool.roundUp:(II)I
            ireturn
        end local 0 // int size
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  size  I
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()
    RuntimeInvisibleTypeAnnotations: 
      METHOD_RETURN
        com.google.common.annotations.VisibleForTesting()
    MethodParameters:
      Name  Flags
      size  

  private static int roundUp(int, int);
    descriptor: (II)I
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // int size
        start local 1 // int unit
         0: .line 858
            iload 1 /* unit */
            iconst_1
            isub
            istore 2 /* mask */
        start local 2 // int mask
         1: .line 859
            iload 0 /* size */
            iload 2 /* mask */
            iadd
            iload 2 /* mask */
            iconst_m1
            ixor
            iand
            ireturn
        end local 2 // int mask
        end local 1 // int unit
        end local 0 // int size
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  size  I
            0    2     1  unit  I
            1    2     2  mask  I
    MethodParameters:
      Name  Flags
      size  
      unit  

  public static void shutdownLocalCleaner(long, java.util.concurrent.TimeUnit);
    descriptor: (JLjava/util/concurrent/TimeUnit;)V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=7, locals=3, args_size=2
        start local 0 // long timeout
        start local 2 // java.util.concurrent.TimeUnit unit
         0: .line 867
            iconst_1
            anewarray org.apache.cassandra.concurrent.InfiniteLoopExecutor
            dup
            iconst_0
         1: .line 865
            getstatic org.apache.cassandra.utils.memory.BufferPool.EXEC:Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
            aastore
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            invokestatic org.apache.cassandra.utils.ExecutorUtils.shutdownNow:(Ljava/lang/Iterable;)V
         2: .line 866
            lload 0 /* timeout */
            aload 2 /* unit */
            iconst_1
            anewarray org.apache.cassandra.concurrent.InfiniteLoopExecutor
            dup
            iconst_0
            getstatic org.apache.cassandra.utils.memory.BufferPool.EXEC:Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
            aastore
            invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
            invokestatic org.apache.cassandra.utils.ExecutorUtils.awaitTermination:(JLjava/util/concurrent/TimeUnit;Ljava/util/Collection;)V
            return
        end local 2 // java.util.concurrent.TimeUnit unit
        end local 0 // long timeout
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    3     0  timeout  J
            0    3     2     unit  Ljava/util/concurrent/TimeUnit;
    Exceptions:
      throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()
    MethodParameters:
         Name  Flags
      timeout  
      unit     
}
SourceFile: "BufferPool.java"
NestMembers:
  org.apache.cassandra.utils.memory.BufferPool$1  org.apache.cassandra.utils.memory.BufferPool$Chunk  org.apache.cassandra.utils.memory.BufferPool$Debug  org.apache.cassandra.utils.memory.BufferPool$GlobalPool  org.apache.cassandra.utils.memory.BufferPool$LocalPool  org.apache.cassandra.utils.memory.BufferPool$LocalPoolRef
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public abstract InterruptibleRunnable = org.apache.cassandra.concurrent.InfiniteLoopExecutor$InterruptibleRunnable of org.apache.cassandra.concurrent.InfiniteLoopExecutor
  org.apache.cassandra.utils.memory.BufferPool$1
  final Chunk = org.apache.cassandra.utils.memory.BufferPool$Chunk of org.apache.cassandra.utils.memory.BufferPool
  final Debug = org.apache.cassandra.utils.memory.BufferPool$Debug of org.apache.cassandra.utils.memory.BufferPool
  final GlobalPool = org.apache.cassandra.utils.memory.BufferPool$GlobalPool of org.apache.cassandra.utils.memory.BufferPool
  final LocalPool = org.apache.cassandra.utils.memory.BufferPool$LocalPool of org.apache.cassandra.utils.memory.BufferPool
  private final LocalPoolRef = org.apache.cassandra.utils.memory.BufferPool$LocalPoolRef of org.apache.cassandra.utils.memory.BufferPool