class org.apache.cassandra.utils.memory.NativeAllocator$Region
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: org.apache.cassandra.utils.memory.NativeAllocator$Region
  super_class: java.lang.Object
{
  private final long peer;
    descriptor: J
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final int capacity;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.concurrent.atomic.AtomicInteger nextFreeOffset;
    descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.concurrent.atomic.AtomicInteger allocCount;
    descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private void <init>(long, int);
    descriptor: (JI)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=4, args_size=3
        start local 0 // org.apache.cassandra.utils.memory.NativeAllocator$Region this
        start local 1 // long peer
        start local 3 // int capacity
         0: .line 231
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 218
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicInteger
            dup
            iconst_0
            invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
            putfield org.apache.cassandra.utils.memory.NativeAllocator$Region.nextFreeOffset:Ljava/util/concurrent/atomic/AtomicInteger;
         2: .line 223
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicInteger
            dup
            invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
            putfield org.apache.cassandra.utils.memory.NativeAllocator$Region.allocCount:Ljava/util/concurrent/atomic/AtomicInteger;
         3: .line 233
            aload 0 /* this */
            lload 1 /* peer */
            putfield org.apache.cassandra.utils.memory.NativeAllocator$Region.peer:J
         4: .line 234
            aload 0 /* this */
            iload 3 /* capacity */
            putfield org.apache.cassandra.utils.memory.NativeAllocator$Region.capacity:I
         5: .line 235
            return
        end local 3 // int capacity
        end local 1 // long peer
        end local 0 // org.apache.cassandra.utils.memory.NativeAllocator$Region this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    6     0      this  Lorg/apache/cassandra/utils/memory/NativeAllocator$Region;
            0    6     1      peer  J
            0    6     3  capacity  I
    MethodParameters:
          Name  Flags
      peer      
      capacity  

  long allocate(int);
    descriptor: (I)J
    flags: (0x0000) 
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // org.apache.cassandra.utils.memory.NativeAllocator$Region this
        start local 1 // int size
         0: .line 246
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.nextFreeOffset:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
            istore 2 /* oldOffset */
        start local 2 // int oldOffset
         1: .line 248
            iload 2 /* oldOffset */
            iload 1 /* size */
            iadd
            aload 0 /* this */
            getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.capacity:I
            if_icmple 3
         2: .line 249
            ldc -1
            lreturn
         3: .line 252
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.nextFreeOffset:Ljava/util/concurrent/atomic/AtomicInteger;
            iload 2 /* oldOffset */
            iload 2 /* oldOffset */
            iload 1 /* size */
            iadd
            invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
            ifeq 0
         4: .line 255
            aload 0 /* this */
            getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.allocCount:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
            pop
         5: .line 256
            aload 0 /* this */
            getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.peer:J
            iload 2 /* oldOffset */
            i2l
            ladd
            lreturn
        end local 2 // int oldOffset
        end local 1 // int size
        end local 0 // org.apache.cassandra.utils.memory.NativeAllocator$Region this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    6     0       this  Lorg/apache/cassandra/utils/memory/NativeAllocator$Region;
            0    6     1       size  I
            1    6     2  oldOffset  I
    MethodParameters:
      Name  Flags
      size  

  public java.lang.String toString();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.apache.cassandra.utils.memory.NativeAllocator$Region this
         0: .line 265
            new java.lang.StringBuilder
            dup
            ldc "Region@"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
         1: .line 266
            ldc " allocs="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.allocCount:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc "waste="
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
         2: .line 267
            aload 0 /* this */
            getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.capacity:I
            aload 0 /* this */
            getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.nextFreeOffset:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
            isub
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
         3: .line 265
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
        end local 0 // org.apache.cassandra.utils.memory.NativeAllocator$Region this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/apache/cassandra/utils/memory/NativeAllocator$Region;
}
SourceFile: "NativeAllocator.java"
NestHost: org.apache.cassandra.utils.memory.NativeAllocator
InnerClasses:
  private Region = org.apache.cassandra.utils.memory.NativeAllocator$Region of org.apache.cassandra.utils.memory.NativeAllocator