final class org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper extends org.glassfish.grizzly.memory.ByteBufferWrapper 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$PoolByteBufferWrapper
super_class: org.glassfish.grizzly.memory.ByteBufferWrapper
{
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$PoolByteBufferWrapper source;
descriptor: Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private final java.nio.ByteBuffer origVisible;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>(java.nio.ByteBuffer, org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice);
descriptor: (Ljava/nio/ByteBuffer;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
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$PoolByteBufferWrapper.<init>:(Ljava/nio/ByteBuffer;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;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$PoolByteBufferWrapper;
0 2 1 underlyingByteBuffer Ljava/nio/ByteBuffer;
0 2 2 owner Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
MethodParameters:
Name Flags
underlyingByteBuffer final
owner final
private void <init>(java.nio.ByteBuffer, org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice, org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper, java.util.concurrent.atomic.AtomicInteger);
descriptor: (Ljava/nio/ByteBuffer;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;Ljava/util/concurrent/atomic/AtomicInteger;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, 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
invokespecial org.glassfish.grizzly.memory.ByteBufferWrapper.<init>:(Ljava/nio/ByteBuffer;)V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "underlyingByteBuffer cannot be null."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper java.nio.ByteBuffer org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper java.util.concurrent.atomic.AtomicInteger
StackMap stack:
aload 4
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 2
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.owner:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
6: aload 0
aload 4
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.shareCount:Ljava/util/concurrent/atomic/AtomicInteger;
7: aload 0
aload 3
ifnull 8
aload 3
goto 9
StackMap locals:
StackMap stack: org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper
8: aload 0
StackMap locals: org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper java.nio.ByteBuffer org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper java.util.concurrent.atomic.AtomicInteger
StackMap stack: org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper
9: putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.source:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
10: aload 0
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.source:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.visible:Ljava/nio/ByteBuffer;
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.origVisible:Ljava/nio/ByteBuffer;
11: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
0 12 1 underlyingByteBuffer Ljava/nio/ByteBuffer;
0 12 2 owner Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
0 12 3 source Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
0 12 4 shareCount Ljava/util/concurrent/atomic/AtomicInteger;
MethodParameters:
Name Flags
underlyingByteBuffer 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$PoolByteBufferWrapper.allowBufferDispose:Z
1: aload 0
iconst_0
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.free:Z
2: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
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$PoolByteBufferWrapper.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$PoolByteBufferWrapper;
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$PoolByteBufferWrapper.free:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
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$PoolByteBufferWrapper.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$PoolByteBufferWrapper;
0 2 1 free Z
MethodParameters:
Name Flags
free 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$PoolByteBufferWrapper.free:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.free:Z
3: aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.dispose0:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
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$PoolByteBufferWrapper.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$PoolByteBufferWrapper.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$PoolByteBufferWrapper.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$PoolByteBufferWrapper.source:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.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$PoolByteBufferWrapper;
3 12 1 isNotShared Z
protected org.glassfish.grizzly.memory.ByteBufferWrapper wrapByteBuffer(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: new org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper
dup
aload 1
aconst_null
1: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.source:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
2: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.shareCount:Ljava/util/concurrent/atomic/AtomicInteger;
3: invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.<init>:(Ljava/nio/ByteBuffer;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;Ljava/util/concurrent/atomic/AtomicInteger;)V
astore 2
start local 2 4: aload 2
iconst_1
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.allowBufferDispose:(Z)V
5: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.shareCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
0 7 1 buffer Ljava/nio/ByteBuffer;
4 7 2 b Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolByteBufferWrapper;
MethodParameters:
Name Flags
buffer final
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$PoolByteBufferWrapper.free:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "PoolBuffer has already been disposed"
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.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$PoolByteBufferWrapper;
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$PoolByteBufferWrapper.origVisible:Ljava/nio/ByteBuffer;
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.visible:Ljava/nio/ByteBuffer;
1: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.visible:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
2: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.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$PoolByteBufferWrapper;
}
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 PoolByteBufferWrapper = org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper of org.glassfish.grizzly.memory.PooledMemoryManager
final PoolSlice = org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice of org.glassfish.grizzly.memory.PooledMemoryManager