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 start local 1 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
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: aload 0
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: aload 0
lload 1
putfield org.apache.cassandra.utils.memory.NativeAllocator$Region.peer:J
4: aload 0
iload 3
putfield org.apache.cassandra.utils.memory.NativeAllocator$Region.capacity:I
5: return
end local 3 end local 1 end local 0 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 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.nextFreeOffset:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 2
start local 2 1: iload 2
iload 1
iadd
aload 0
getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.capacity:I
if_icmple 3
2: ldc -1
lreturn
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.nextFreeOffset:Ljava/util/concurrent/atomic/AtomicInteger;
iload 2
iload 2
iload 1
iadd
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 0
4: aload 0
getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.allocCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
5: aload 0
getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.peer:J
iload 2
i2l
ladd
lreturn
end local 2 end local 1 end local 0 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 0: new java.lang.StringBuilder
dup
ldc "Region@"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
1: ldc " allocs="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
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: aload 0
getfield org.apache.cassandra.utils.memory.NativeAllocator$Region.capacity:I
aload 0
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: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 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