public class jdk.incubator.http.internal.common.ByteBufferPool
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.incubator.http.internal.common.ByteBufferPool
super_class: java.lang.Object
{
private final java.util.Queue<java.nio.ByteBuffer> pool;
descriptor: Ljava/util/Queue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Queue<Ljava/nio/ByteBuffer;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield jdk.incubator.http.internal.common.ByteBufferPool.pool:Ljava/util/Queue;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/internal/common/ByteBufferPool;
public jdk.incubator.http.internal.common.ByteBufferReference get(int);
descriptor: (I)Ljdk/incubator/http/internal/common/ByteBufferReference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: goto 3
start local 2 1: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.capacity:()I
iload 1
if_icmplt 3
2: aload 2
aload 0
invokestatic jdk.incubator.http.internal.common.ByteBufferReference.of:(Ljava/nio/ByteBuffer;Ljdk/incubator/http/internal/common/ByteBufferPool;)Ljdk/incubator/http/internal/common/ByteBufferReference;
areturn
end local 2 3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.internal.common.ByteBufferPool.pool:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
dup
astore 2
start local 2 4: ifnonnull 1
5: iload 1
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
aload 0
invokestatic jdk.incubator.http.internal.common.ByteBufferReference.of:(Ljava/nio/ByteBuffer;Ljdk/incubator/http/internal/common/ByteBufferPool;)Ljdk/incubator/http/internal/common/ByteBufferReference;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/internal/common/ByteBufferPool;
0 6 1 size I
1 3 2 buffer Ljava/nio/ByteBuffer;
4 6 2 buffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
size
public void release(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/ByteBuffer;
pop
1: aload 0
getfield jdk.incubator.http.internal.common.ByteBufferPool.pool:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.offer:(Ljava/lang/Object;)Z
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/internal/common/ByteBufferPool;
0 3 1 buffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buffer
}
SourceFile: "ByteBufferPool.java"