class org.apache.cassandra.cache.ChunkCache$Buffer implements org.apache.cassandra.io.util.Rebufferer$BufferHolder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.cache.ChunkCache$Buffer
super_class: java.lang.Object
{
private final java.nio.ByteBuffer buffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long offset;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger references;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/cache/ChunkCache;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.cache.ChunkCache$Buffer.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.nio.ByteBuffer, long);
descriptor: (Ljava/nio/ByteBuffer;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.cache.ChunkCache$Buffer.buffer:Ljava/nio/ByteBuffer;
2: aload 0
lload 2
putfield org.apache.cassandra.cache.ChunkCache$Buffer.offset:J
3: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_1
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.apache.cassandra.cache.ChunkCache$Buffer.references:Ljava/util/concurrent/atomic/AtomicInteger;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/cache/ChunkCache$Buffer;
0 5 1 buffer Ljava/nio/ByteBuffer;
0 5 2 offset J
MethodParameters:
Name Flags
buffer
offset
org.apache.cassandra.cache.ChunkCache$Buffer reference();
descriptor: ()Lorg/apache/cassandra/cache/ChunkCache$Buffer;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.cache.ChunkCache$Buffer.references:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 1
start local 1 1: iload 1
ifne 3
2: aconst_null
areturn
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.cassandra.cache.ChunkCache$Buffer.references:Ljava/util/concurrent/atomic/AtomicInteger;
iload 1
iload 1
iconst_1
iadd
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 0
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/cache/ChunkCache$Buffer;
1 5 1 refCount I
public java.nio.ByteBuffer buffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.cache.ChunkCache$Buffer.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.apache.cassandra.cache.ChunkCache$Buffer.references:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ifgt 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.cache.ChunkCache$Buffer.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/cache/ChunkCache$Buffer;
public long offset();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.cache.ChunkCache$Buffer.offset:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cache/ChunkCache$Buffer;
public void release();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.cache.ChunkCache$Buffer.references:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
ifne 2
1: aload 0
getfield org.apache.cassandra.cache.ChunkCache$Buffer.buffer:Ljava/nio/ByteBuffer;
invokestatic org.apache.cassandra.utils.memory.BufferPool.put:(Ljava/nio/ByteBuffer;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/cache/ChunkCache$Buffer;
}
SourceFile: "ChunkCache.java"
NestHost: org.apache.cassandra.cache.ChunkCache
InnerClasses:
Buffer = org.apache.cassandra.cache.ChunkCache$Buffer of org.apache.cassandra.cache.ChunkCache
public abstract BufferHolder = org.apache.cassandra.io.util.Rebufferer$BufferHolder of org.apache.cassandra.io.util.Rebufferer