final class org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer extends org.glassfish.grizzly.memory.HeapBuffer implements org.glassfish.grizzly.memory.AbstractMemoryManager$TrimAware
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer
super_class: org.glassfish.grizzly.memory.HeapBuffer
{
private org.glassfish.grizzly.memory.HeapMemoryManager mm;
descriptor: Lorg/glassfish/grizzly/memory/HeapMemoryManager;
flags: (0x0002) ACC_PRIVATE
private void <init>(org.glassfish.grizzly.memory.HeapMemoryManager, byte[], int, int);
descriptor: (Lorg/glassfish/grizzly/memory/HeapMemoryManager;[BII)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 2
iload 3
iload 4
invokespecial org.glassfish.grizzly.memory.HeapBuffer.<init>:([BII)V
1: aload 0
aload 1
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
0 3 1 mm Lorg/glassfish/grizzly/memory/HeapMemoryManager;
0 3 2 heap [B
0 3 3 offset I
0 3 4 capacity I
MethodParameters:
Name Flags
mm final
heap
offset
capacity
public void trim();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.checkDispose:()V
1: aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.pos:I
isub
istore 1
start local 1 2: iload 1
ifle 16
3: invokestatic org.glassfish.grizzly.memory.HeapMemoryManager.getHeapBufferThreadLocalPool:()Lorg/glassfish/grizzly/memory/HeapMemoryManager$HeapBufferThreadLocalPool;
4: astore 2
start local 2 5: aload 2
ifnull 16
6: aload 2
aload 0
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.isLastAllocated:(Lorg/glassfish/grizzly/memory/HeapBuffer;)Z
ifeq 11
7: aload 0
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.flip:()Lorg/glassfish/grizzly/memory/HeapBuffer;
pop
8: aload 0
aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
9: aload 2
aload 0
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.reduceLastAllocated:(Lorg/glassfish/grizzly/memory/HeapBuffer;)Lorg/glassfish/grizzly/memory/HeapBuffer;
pop
10: return
11: StackMap locals: int org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool
StackMap stack:
aload 2
iload 1
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.wantReset:(I)Z
ifeq 16
12: aload 0
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.flip:()Lorg/glassfish/grizzly/memory/HeapBuffer;
pop
13: aload 0
aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
14: aload 2
aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.heap:[B
aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.offset:I
aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
iadd
iload 1
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.reset:([BII)V
15: return
end local 2 16: StackMap locals:
StackMap stack:
aload 0
invokespecial org.glassfish.grizzly.memory.HeapBuffer.trim:()V
17: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
2 18 1 sizeToReturn I
5 16 2 threadLocalCache Lorg/glassfish/grizzly/memory/HeapMemoryManager$HeapBufferThreadLocalPool;
public void recycle();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.allowBufferDispose:Z
1: getstatic org.glassfish.grizzly.memory.HeapMemoryManager.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
aload 0
invokestatic org.glassfish.grizzly.ThreadCache.putToCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;Ljava/lang/Object;)Z
pop
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.prepareDispose:()V
1: aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
aload 0
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager.release:(Lorg/glassfish/grizzly/memory/HeapBuffer;)V
2: aload 0
aconst_null
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
3: aload 0
aconst_null
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.byteBuffer:Ljava/nio/ByteBuffer;
4: aload 0
aconst_null
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.heap:[B
5: aload 0
iconst_0
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.pos:I
6: aload 0
iconst_0
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.offset:I
7: aload 0
iconst_0
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
8: aload 0
iconst_0
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
9: aload 0
getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.order:Ljava/nio/ByteOrder;
10: aload 0
iconst_1
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.bigEndian:Z
11: aload 0
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.recycle:()V
12: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
protected org.glassfish.grizzly.memory.HeapBuffer createHeapBuffer(int, int);
descriptor: (II)Lorg/glassfish/grizzly/memory/HeapBuffer;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.heap:[B
iload 1
aload 0
getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.offset:I
iadd
iload 2
invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager.createTrimAwareBuffer:([BII)Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
0 1 1 offs I
0 1 2 capacity I
MethodParameters:
Name Flags
offs final
capacity final
void initialize(org.glassfish.grizzly.memory.HeapMemoryManager, byte[], int, int);
descriptor: (Lorg/glassfish/grizzly/memory/HeapMemoryManager;[BII)V
flags: (0x0000)
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
1: aload 0
aload 2
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.heap:[B
2: aload 0
iload 3
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.offset:I
3: aload 0
iconst_0
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.pos:I
4: aload 0
iload 4
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
5: aload 0
iload 4
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
6: aload 0
aconst_null
putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.disposeStackTrace:Ljava/lang/Exception;
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
0 8 1 mm Lorg/glassfish/grizzly/memory/HeapMemoryManager;
0 8 2 heap [B
0 8 3 offset I
0 8 4 length I
MethodParameters:
Name Flags
mm final
heap final
offset final
length final
}
SourceFile: "HeapMemoryManager.java"
NestHost: org.glassfish.grizzly.memory.HeapMemoryManager
InnerClasses:
public final CachedTypeIndex = org.glassfish.grizzly.ThreadCache$CachedTypeIndex of org.glassfish.grizzly.ThreadCache
protected abstract TrimAware = org.glassfish.grizzly.memory.AbstractMemoryManager$TrimAware of org.glassfish.grizzly.memory.AbstractMemoryManager
private final HeapBufferThreadLocalPool = org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool of org.glassfish.grizzly.memory.HeapMemoryManager
private final TrimmableHeapBuffer = org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer of org.glassfish.grizzly.memory.HeapMemoryManager