class io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer implements io.undertow.connector.PooledByteBuffer
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer
super_class: java.lang.Object
{
private final io.undertow.server.DefaultByteBufferPool pool;
descriptor: Lio/undertow/server/DefaultByteBufferPool;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.undertow.server.DefaultByteBufferPool$LeakDetector leakDetector;
descriptor: Lio/undertow/server/DefaultByteBufferPool$LeakDetector;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.nio.ByteBuffer buffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
private volatile int referenceCount;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer> referenceCountUpdater;
descriptor: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater<Lio/undertow/server/DefaultByteBufferPool$DefaultPooledBuffer;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lio/undertow/server/DefaultByteBufferPool$DefaultPooledBuffer;
ldc "referenceCount"
invokestatic java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
putstatic io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.referenceCountUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(io.undertow.server.DefaultByteBufferPool, java.nio.ByteBuffer, boolean);
descriptor: (Lio/undertow/server/DefaultByteBufferPool;Ljava/nio/ByteBuffer;Z)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.referenceCount:I
2: aload 0
aload 1
putfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.pool:Lio/undertow/server/DefaultByteBufferPool;
3: aload 0
aload 2
putfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.buffer:Ljava/nio/ByteBuffer;
4: aload 0
iload 3
ifeq 5
new io.undertow.server.DefaultByteBufferPool$LeakDetector
dup
invokespecial io.undertow.server.DefaultByteBufferPool$LeakDetector.<init>:()V
goto 6
StackMap locals: io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer io.undertow.server.DefaultByteBufferPool java.nio.ByteBuffer int
StackMap stack: io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer
5: aconst_null
StackMap locals: io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer io.undertow.server.DefaultByteBufferPool java.nio.ByteBuffer int
StackMap stack: io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer io.undertow.server.DefaultByteBufferPool$LeakDetector
6: putfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.leakDetector:Lio/undertow/server/DefaultByteBufferPool$LeakDetector;
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/undertow/server/DefaultByteBufferPool$DefaultPooledBuffer;
0 8 1 pool Lio/undertow/server/DefaultByteBufferPool;
0 8 2 buffer Ljava/nio/ByteBuffer;
0 8 3 detectLeaks Z
MethodParameters:
Name Flags
pool
buffer
detectLeaks
public java.nio.ByteBuffer getBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.referenceCount:I
ifne 2
1: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
invokeinterface io.undertow.UndertowMessages.bufferAlreadyFreed:()Ljava/lang/IllegalStateException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.buffer:Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/undertow/server/DefaultByteBufferPool$DefaultPooledBuffer;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.referenceCountUpdater:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
iconst_1
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.compareAndSet:(Ljava/lang/Object;II)Z
ifeq 5
1: aload 0
getfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.leakDetector:Lio/undertow/server/DefaultByteBufferPool$LeakDetector;
ifnull 3
2: aload 0
getfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.leakDetector:Lio/undertow/server/DefaultByteBufferPool$LeakDetector;
iconst_1
putfield io.undertow.server.DefaultByteBufferPool$LeakDetector.closed:Z
3: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.pool:Lio/undertow/server/DefaultByteBufferPool;
aload 0
getfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.buffer:Ljava/nio/ByteBuffer;
invokevirtual io.undertow.server.DefaultByteBufferPool.freeInternal:(Ljava/nio/ByteBuffer;)V
4: aload 0
aconst_null
putfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.buffer:Ljava/nio/ByteBuffer;
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/undertow/server/DefaultByteBufferPool$DefaultPooledBuffer;
public boolean isOpen();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.referenceCount:I
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/undertow/server/DefaultByteBufferPool$DefaultPooledBuffer;
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 "DefaultPooledBuffer{buffer="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.buffer:Ljava/nio/ByteBuffer;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: ldc ", referenceCount="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer.referenceCount:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
3: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/undertow/server/DefaultByteBufferPool$DefaultPooledBuffer;
}
SourceFile: "DefaultByteBufferPool.java"
NestHost: io.undertow.server.DefaultByteBufferPool
InnerClasses:
private DefaultPooledBuffer = io.undertow.server.DefaultByteBufferPool$DefaultPooledBuffer of io.undertow.server.DefaultByteBufferPool
private LeakDetector = io.undertow.server.DefaultByteBufferPool$LeakDetector of io.undertow.server.DefaultByteBufferPool