final class org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer extends org.glassfish.grizzly.memory.HeapBuffer implements org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer
super_class: org.glassfish.grizzly.memory.HeapBuffer
{
private final org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice owner;
descriptor: Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
boolean free;
descriptor: Z
flags: (0x0000)
protected final java.util.concurrent.atomic.AtomicInteger shareCount;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer source;
descriptor: Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private void <init>(byte[], org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice);
descriptor: ([BLorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iconst_0
aload 1
arraylength
aload 2
aconst_null
new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.<init>:([BIILorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;Ljava/util/concurrent/atomic/AtomicInteger;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
0 2 1 heap [B
0 2 2 owner Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
MethodParameters:
Name Flags
heap final
owner final
private void <init>(byte[], int, int, org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice, org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer, java.util.concurrent.atomic.AtomicInteger);
descriptor: ([BIILorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;Ljava/util/concurrent/atomic/AtomicInteger;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
iload 2
iload 3
invokespecial org.glassfish.grizzly.memory.HeapBuffer.<init>:([BII)V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "heap cannot be null."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer byte[] int int org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer java.util.concurrent.atomic.AtomicInteger
StackMap stack:
aload 6
ifnonnull 5
4: new java.lang.IllegalArgumentException
dup
ldc "shareCount cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 4
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.owner:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
6: aload 0
aload 6
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.shareCount:Ljava/util/concurrent/atomic/AtomicInteger;
7: aload 0
aload 5
ifnull 8
aload 5
goto 9
StackMap locals:
StackMap stack: org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer
8: aload 0
StackMap locals: org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer byte[] int int org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer java.util.concurrent.atomic.AtomicInteger
StackMap stack: org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer
9: putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.source:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
10: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
0 11 1 heap [B
0 11 2 offs I
0 11 3 cap I
0 11 4 owner Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
0 11 5 source Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
0 11 6 shareCount Ljava/util/concurrent/atomic/AtomicInteger;
MethodParameters:
Name Flags
heap final
offs final
cap final
owner final
source final
shareCount final
public org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer prepare();
descriptor: ()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.allowBufferDispose:Z
1: aload 0
iconst_0
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.free:Z
2: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
public org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice owner();
descriptor: ()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.owner:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
public boolean free();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.free:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
public org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer free(boolean);
descriptor: (Z)Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.free:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
0 2 1 free Z
MethodParameters:
Name Flags
free final
public org.glassfish.grizzly.memory.HeapBuffer asReadOnlyBuffer();
descriptor: ()Lorg/glassfish/grizzly/memory/HeapBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.offset:I
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.cap:I
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.asReadOnlyBuffer:(II)Lorg/glassfish/grizzly/memory/HeapBuffer;
astore 1
start local 1 1: aload 1
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.pos:I
putfield org.glassfish.grizzly.memory.HeapBuffer.pos:I
2: aload 1
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.lim:I
putfield org.glassfish.grizzly.memory.HeapBuffer.lim:I
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
1 4 1 b Lorg/glassfish/grizzly/memory/HeapBuffer;
private org.glassfish.grizzly.memory.HeapBuffer asReadOnlyBuffer(int, int);
descriptor: (II)Lorg/glassfish/grizzly/memory/HeapBuffer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.checkDispose:()V
1: aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.onShareHeap:()V
2: new org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer$1
dup
aload 0
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.heap:[B
iload 1
iload 2
invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer$1.<init>:(Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;[BII)V
astore 3
start local 3 3: aload 3
iconst_1
invokevirtual org.glassfish.grizzly.memory.HeapBuffer.allowBufferDispose:(Z)V
4: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
0 5 1 offset I
0 5 2 cap I
3 5 3 b Lorg/glassfish/grizzly/memory/HeapBuffer;
MethodParameters:
Name Flags
offset final
cap final
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.free:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.free:Z
3: aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.dispose0:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
private void dispose0();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.shareCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 1
start local 1 3: iload 1
ifne 9
4: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.shareCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndDecrement:()I
ifne 5
iconst_1
goto 6
StackMap locals: int
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 1
7: iload 1
ifeq 9
8: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.shareCount:Ljava/util/concurrent/atomic/AtomicInteger;
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicInteger.set:(I)V
9: StackMap locals:
StackMap stack:
iload 1
ifeq 11
10: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.source:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.returnToPool:()V
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
3 12 1 isNotShared Z
private void returnToPool();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.heap:[B
arraylength
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.cap:I
1: aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.clear:()Lorg/glassfish/grizzly/memory/HeapBuffer;
pop
2: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.owner:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.offer:(Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;)Z
pop
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
protected void checkDispose();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.free:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "PoolBuffer has already been disposed"
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.disposeStackTrace:Ljava/lang/Exception;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
protected org.glassfish.grizzly.memory.HeapBuffer createHeapBuffer(int, int);
descriptor: (II)Lorg/glassfish/grizzly/memory/HeapBuffer;
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.onShareHeap:()V
1: new org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer
dup
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.heap:[B
iload 1
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.offset:I
iadd
iload 2
aconst_null
2: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.source:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
3: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.shareCount:Ljava/util/concurrent/atomic/AtomicInteger;
4: invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.<init>:([BIILorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;Ljava/util/concurrent/atomic/AtomicInteger;)V
astore 3
start local 3 5: aload 3
iconst_1
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.allowBufferDispose:(Z)V
6: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
0 7 1 offs I
0 7 2 capacity I
5 7 3 b Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
MethodParameters:
Name Flags
offs final
capacity final
protected void onShareHeap();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.glassfish.grizzly.memory.HeapBuffer.onShareHeap:()V
1: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.shareCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolHeapBuffer;
public org.glassfish.grizzly.Buffer asReadOnlyBuffer();
descriptor: ()Lorg/glassfish/grizzly/Buffer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.asReadOnlyBuffer:()Lorg/glassfish/grizzly/memory/HeapBuffer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "PooledMemoryManager.java"
NestHost: org.glassfish.grizzly.memory.PooledMemoryManager
InnerClasses:
abstract PoolBuffer = org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer of org.glassfish.grizzly.memory.PooledMemoryManager
private final PoolHeapBuffer = org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer of org.glassfish.grizzly.memory.PooledMemoryManager
org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer$1
final PoolSlice = org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice of org.glassfish.grizzly.memory.PooledMemoryManager