final class org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool implements org.glassfish.grizzly.memory.ThreadLocalPool<java.nio.ByteBuffer>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool
super_class: java.lang.Object
{
private java.nio.ByteBuffer pool;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
private java.lang.Object[] allocationHistory;
descriptor: [Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private int lastAllocatedIndex;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 8
anewarray java.lang.Object
putfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
public void reset(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
iconst_0
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
aconst_null
invokestatic java.util.Arrays.fill:([Ljava/lang/Object;IILjava/lang/Object;)V
1: aload 0
iconst_0
putfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
2: aload 0
aload 1
putfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
0 4 1 pool Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
pool
public java.nio.ByteBuffer allocate(int);
descriptor: (I)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
iload 1
invokestatic org.glassfish.grizzly.memory.Buffers.slice:(Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.addHistory:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
0 2 1 size I
1 2 2 allocated Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
size
public java.nio.ByteBuffer reallocate(java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.isLastAllocated:(Ljava/nio/ByteBuffer;)Z
ifeq 6
aload 0
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.remaining:()I
aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
iadd
iload 2
if_icmplt 6
1: aload 0
dup
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
iconst_1
isub
putfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
2: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
3: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
iload 2
invokestatic org.glassfish.grizzly.memory.Buffers.slice:(Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
astore 3
start local 3 4: aload 3
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
5: aload 0
aload 3
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.addHistory:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
areturn
end local 3 6: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
0 7 1 oldByteBuffer Ljava/nio/ByteBuffer;
0 7 2 newSize I
4 6 3 newByteBuffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
oldByteBuffer
newSize
public boolean release(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.isLastAllocated:(Ljava/nio/ByteBuffer;)Z
ifeq 4
1: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
2: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
aload 0
dup
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
iconst_1
isub
dup_x1
putfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
aconst_null
aastore
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.wantReset:(I)Z
ifeq 7
5: aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.reset:(Ljava/nio/ByteBuffer;)V
6: iconst_1
ireturn
7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
0 8 1 underlyingBuffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
underlyingBuffer
public boolean wantReset(int);
descriptor: (I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.hasRemaining:()Z
ifeq 2
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
ifne 1
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 1
if_icmplt 2
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
StackMap locals:
StackMap stack:
2: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
0 3 1 size I
MethodParameters:
Name Flags
size
public boolean isLastAllocated(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
ifle 1
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
iconst_1
isub
aaload
aload 1
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
0 2 1 oldByteBuffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
oldByteBuffer
public java.nio.ByteBuffer reduceLastAllocated(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
iconst_1
isub
aaload
checkcast java.nio.ByteBuffer
astore 2
start local 2 1: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
aload 2
invokevirtual java.nio.ByteBuffer.capacity:()I
aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
isub
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
2: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
iconst_1
isub
aload 1
aastore
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
0 4 1 byteBuffer Ljava/nio/ByteBuffer;
1 4 2 oldLastAllocated Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
byteBuffer
public int remaining();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
ifnull 1
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
public boolean hasRemaining();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.remaining:()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 Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
private java.nio.ByteBuffer addHistory(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
arraylength
if_icmplt 2
1: aload 0
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
arraylength
iconst_3
imul
iconst_2
idiv
iconst_1
iadd
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
putfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
aload 0
dup
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
dup_x1
iconst_1
iadd
putfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
aload 1
aastore
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
0 4 1 allocated Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
allocated
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 "(pool="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.pool:Ljava/nio/ByteBuffer;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " last-allocated-index="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.lastAllocatedIndex:I
iconst_1
isub
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " allocation-history="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocationHistory:[Ljava/lang/Object;
invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
public void reset(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.nio.ByteBuffer
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.reset:(Ljava/nio/ByteBuffer;)V
return
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object allocate(int);
descriptor: (I)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.allocate:(I)Ljava/nio/ByteBuffer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public boolean isLastAllocated(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.nio.ByteBuffer
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.isLastAllocated:(Ljava/nio/ByteBuffer;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object reallocate(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast java.nio.ByteBuffer
iload 2
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.reallocate:(Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public boolean release(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.nio.ByteBuffer
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.release:(Ljava/nio/ByteBuffer;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object reduceLastAllocated(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.nio.ByteBuffer
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.reduceLastAllocated:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/glassfish/grizzly/memory/ThreadLocalPool<Ljava/nio/ByteBuffer;>;
SourceFile: "ByteBufferManager.java"
NestHost: org.glassfish.grizzly.memory.ByteBufferManager
InnerClasses:
private final ByteBufferThreadLocalPool = org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool of org.glassfish.grizzly.memory.ByteBufferManager