public class org.glassfish.grizzly.memory.ByteBufferManager extends org.glassfish.grizzly.memory.AbstractMemoryManager<org.glassfish.grizzly.memory.ByteBufferWrapper> implements org.glassfish.grizzly.memory.WrapperAware, org.glassfish.grizzly.memory.ByteBufferAware
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.memory.ByteBufferManager
super_class: org.glassfish.grizzly.memory.AbstractMemoryManager
{
public static final int DEFAULT_SMALL_BUFFER_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 32
private static final org.glassfish.grizzly.ThreadCache$CachedTypeIndex<org.glassfish.grizzly.memory.ByteBufferManager$TrimAwareWrapper> CACHE_IDX;
descriptor: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex<Lorg/glassfish/grizzly/memory/ByteBufferManager$TrimAwareWrapper;>;
private final org.glassfish.grizzly.ThreadCache$CachedTypeIndex<org.glassfish.grizzly.memory.ByteBufferManager$SmallByteBufferWrapper> SMALL_BUFFER_CACHE_IDX;
descriptor: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex<Lorg/glassfish/grizzly/memory/ByteBufferManager$SmallByteBufferWrapper;>;
protected boolean isDirect;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected final int maxSmallBufferSize;
descriptor: I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/memory/ByteBufferManager$TrimAwareWrapper;
1: new java.lang.StringBuilder
dup
ldc Lorg/glassfish/grizzly/memory/ByteBufferManager;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".taw-cache-size"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_2
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
2: invokestatic org.glassfish.grizzly.ThreadCache.obtainIndex:(Ljava/lang/Class;I)Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
putstatic org.glassfish.grizzly.memory.ByteBufferManager.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
ldc 65536
bipush 32
invokespecial org.glassfish.grizzly.memory.ByteBufferManager.<init>:(ZII)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ldc 65536
bipush 32
invokespecial org.glassfish.grizzly.memory.ByteBufferManager.<init>:(ZII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 2 1 isDirect Z
MethodParameters:
Name Flags
isDirect final
public void <init>(boolean, int, int);
descriptor: (ZII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 2
invokespecial org.glassfish.grizzly.memory.AbstractMemoryManager.<init>:(I)V
1: aload 0
2: new java.lang.StringBuilder
dup
ldc Lorg/glassfish/grizzly/memory/ByteBufferManager$SmallByteBufferWrapper;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc Lorg/glassfish/grizzly/memory/ByteBufferManager$SmallByteBufferWrapper;
3: new java.lang.StringBuilder
dup
ldc Lorg/glassfish/grizzly/memory/ByteBufferManager;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".sbbw-cache-size"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
bipush 16
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
4: invokestatic org.glassfish.grizzly.ThreadCache.obtainIndex:(Ljava/lang/String;Ljava/lang/Class;I)Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
putfield org.glassfish.grizzly.memory.ByteBufferManager.SMALL_BUFFER_CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
5: aload 0
iload 3
putfield org.glassfish.grizzly.memory.ByteBufferManager.maxSmallBufferSize:I
6: aload 0
iload 1
putfield org.glassfish.grizzly.memory.ByteBufferManager.isDirect:Z
7: return
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/ByteBufferManager;
0 8 1 isDirect Z
0 8 2 maxBufferSize I
0 8 3 maxSmallBufferSize I
MethodParameters:
Name Flags
isDirect final
maxBufferSize final
maxSmallBufferSize final
public int getMaxSmallBufferSize();
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.maxSmallBufferSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
public org.glassfish.grizzly.memory.ByteBufferWrapper allocate(int);
descriptor: (I)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.maxSmallBufferSize:I
if_icmpgt 4
1: aload 0
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.createSmallBuffer:()Lorg/glassfish/grizzly/memory/ByteBufferManager$SmallByteBufferWrapper;
astore 2
start local 2 2: aload 2
iload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$SmallByteBufferWrapper.limit:(I)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
pop
3: aload 2
areturn
end local 2 4: StackMap locals:
StackMap stack:
aload 0
aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBuffer:(I)Ljava/nio/ByteBuffer;
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:(Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 5 1 size I
2 4 2 buffer Lorg/glassfish/grizzly/memory/ByteBufferManager$SmallByteBufferWrapper;
MethodParameters:
Name Flags
size final
public org.glassfish.grizzly.memory.ByteBufferWrapper allocateAtLeast(int);
descriptor: (I)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.maxSmallBufferSize:I
if_icmpgt 4
1: aload 0
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.createSmallBuffer:()Lorg/glassfish/grizzly/memory/ByteBufferManager$SmallByteBufferWrapper;
astore 2
start local 2 2: aload 2
iload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager$SmallByteBufferWrapper.limit:(I)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
pop
3: aload 2
areturn
end local 2 4: StackMap locals:
StackMap stack:
aload 0
aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBufferAtLeast:(I)Ljava/nio/ByteBuffer;
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:(Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 5 1 size I
2 4 2 buffer Lorg/glassfish/grizzly/memory/ByteBufferManager$SmallByteBufferWrapper;
MethodParameters:
Name Flags
size
public org.glassfish.grizzly.memory.ByteBufferWrapper reallocate(org.glassfish.grizzly.memory.ByteBufferWrapper, int);
descriptor: (Lorg/glassfish/grizzly/memory/ByteBufferWrapper;I)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferWrapper.underlying:()Ljava/nio/ByteBuffer;
iload 2
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.reallocateByteBuffer:(Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:(Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 1 1 oldBuffer Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
0 1 2 newSize I
MethodParameters:
Name Flags
oldBuffer
newSize
public void release(org.glassfish.grizzly.memory.ByteBufferWrapper);
descriptor: (Lorg/glassfish/grizzly/memory/ByteBufferWrapper;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferWrapper.underlying:()Ljava/nio/ByteBuffer;
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.releaseByteBuffer:(Ljava/nio/ByteBuffer;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 2 1 buffer Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
MethodParameters:
Name Flags
buffer
public boolean isDirect();
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.ByteBufferManager.isDirect:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
public void setDirect(boolean);
descriptor: (Z)V
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.ByteBufferManager.isDirect:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 2 1 isDirect Z
MethodParameters:
Name Flags
isDirect
public boolean willAllocateDirect(int);
descriptor: (I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.isDirect:Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 1 1 size I
MethodParameters:
Name Flags
size
public org.glassfish.grizzly.memory.ByteBufferWrapper wrap(byte[]);
descriptor: ([B)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:([BII)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 1 1 data [B
MethodParameters:
Name Flags
data
public org.glassfish.grizzly.memory.ByteBufferWrapper wrap(byte[], int, int);
descriptor: ([BII)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:(Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 1 1 data [B
0 1 2 offset I
0 1 3 length I
MethodParameters:
Name Flags
data
offset
length
public org.glassfish.grizzly.memory.ByteBufferWrapper wrap(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:(Ljava/lang/String;Ljava/nio/charset/Charset;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 1 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public org.glassfish.grizzly.memory.ByteBufferWrapper wrap(java.lang.String, java.nio.charset.Charset);
descriptor: (Ljava/lang/String;Ljava/nio/charset/Charset;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 3
start local 3 1: aload 0
aload 3
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:(Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
2: areturn
end local 3 3: StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
astore 3
start local 3 4: new java.lang.IllegalStateException
dup
aload 3
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
athrow
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/ByteBufferManager;
0 5 1 s Ljava/lang/String;
0 5 2 charset Ljava/nio/charset/Charset;
1 3 3 byteRepresentation [B
4 5 3 e Ljava/io/UnsupportedEncodingException;
Exception table:
from to target type
0 2 3 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
s
charset
public org.glassfish.grizzly.memory.ThreadLocalPool createThreadLocalPool();
descriptor: ()Lorg/glassfish/grizzly/memory/ThreadLocalPool;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool
dup
invokespecial org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
public org.glassfish.grizzly.memory.ByteBufferWrapper wrap(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.createTrimAwareBuffer:(Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/memory/ByteBufferManager$TrimAwareWrapper;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 1 1 byteBuffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
byteBuffer final
public java.nio.ByteBuffer allocateByteBuffer(int);
descriptor: (I)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.maxBufferSize:I
if_icmple 2
1: aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBuffer0:(I)Ljava/nio/ByteBuffer;
areturn
2: StackMap locals:
StackMap stack:
invokestatic org.glassfish.grizzly.memory.ByteBufferManager.getByteBufferThreadLocalPool:()Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
astore 2
start local 2 3: aload 2
ifnull 8
4: aload 2
invokeinterface org.glassfish.grizzly.memory.ThreadLocalPool.remaining:()I
istore 3
start local 3 5: iload 3
ifeq 6
iload 3
iload 1
if_icmpge 7
6: StackMap locals: org.glassfish.grizzly.memory.ThreadLocalPool int
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.reallocatePoolBuffer:()V
7: StackMap locals:
StackMap stack:
aload 0
aload 2
iload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateFromPool:(Lorg/glassfish/grizzly/memory/ThreadLocalPool;I)Ljava/lang/Object;
checkcast java.nio.ByteBuffer
areturn
end local 3 8: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBuffer0:(I)Ljava/nio/ByteBuffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 9 1 size I
3 9 2 threadLocalCache Lorg/glassfish/grizzly/memory/ThreadLocalPool<Ljava/nio/ByteBuffer;>;
5 8 3 remaining I
MethodParameters:
Name Flags
size final
public java.nio.ByteBuffer allocateByteBufferAtLeast(int);
descriptor: (I)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.maxBufferSize:I
if_icmple 2
1: aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBuffer0:(I)Ljava/nio/ByteBuffer;
areturn
2: StackMap locals:
StackMap stack:
invokestatic org.glassfish.grizzly.memory.ByteBufferManager.getByteBufferThreadLocalPool:()Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
astore 2
start local 2 3: aload 2
ifnull 9
4: aload 2
invokeinterface org.glassfish.grizzly.memory.ThreadLocalPool.remaining:()I
istore 3
start local 3 5: iload 3
ifeq 6
iload 3
iload 1
if_icmpge 8
6: StackMap locals: org.glassfish.grizzly.memory.ThreadLocalPool int
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.reallocatePoolBuffer:()V
7: aload 2
invokeinterface org.glassfish.grizzly.memory.ThreadLocalPool.remaining:()I
istore 3
8: StackMap locals:
StackMap stack:
aload 0
aload 2
iload 3
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateFromPool:(Lorg/glassfish/grizzly/memory/ThreadLocalPool;I)Ljava/lang/Object;
checkcast java.nio.ByteBuffer
areturn
end local 3 9: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBuffer0:(I)Ljava/nio/ByteBuffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 10 1 size I
3 10 2 threadLocalCache Lorg/glassfish/grizzly/memory/ThreadLocalPool<Ljava/nio/ByteBuffer;>;
5 9 3 remaining I
MethodParameters:
Name Flags
size final
public java.nio.ByteBuffer reallocateByteBuffer(java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
iload 2
if_icmplt 2
1: aload 1
areturn
2: StackMap locals:
StackMap stack:
invokestatic org.glassfish.grizzly.memory.ByteBufferManager.getByteBufferThreadLocalPool:()Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
astore 3
start local 3 3: aload 3
ifnull 8
4: aload 3
aload 1
iload 2
invokeinterface org.glassfish.grizzly.memory.ThreadLocalPool.reallocate:(Ljava/lang/Object;I)Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 4
start local 4 5: aload 4
ifnull 8
6: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.monitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
iload 2
aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
isub
invokestatic org.glassfish.grizzly.memory.ProbeNotifier.notifyBufferAllocatedFromPool:(Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;I)V
7: aload 4
areturn
end local 4 8: StackMap locals: org.glassfish.grizzly.memory.ThreadLocalPool
StackMap stack:
aload 0
iload 2
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBuffer:(I)Ljava/nio/ByteBuffer;
astore 4
start local 4 9: aload 1
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
10: aload 4
aload 1
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
areturn
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/ByteBufferManager;
0 11 1 oldByteBuffer Ljava/nio/ByteBuffer;
0 11 2 newSize I
3 11 3 memoryPool Lorg/glassfish/grizzly/memory/ThreadLocalPool<Ljava/nio/ByteBuffer;>;
5 8 4 newBuffer Ljava/nio/ByteBuffer;
9 11 4 newByteBuffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
oldByteBuffer
newSize
public void releaseByteBuffer(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: invokestatic org.glassfish.grizzly.memory.ByteBufferManager.getByteBufferThreadLocalPool:()Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
astore 2
start local 2 1: aload 2
ifnull 4
2: aload 2
aload 1
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
checkcast java.nio.ByteBuffer
invokeinterface org.glassfish.grizzly.memory.ThreadLocalPool.release:(Ljava/lang/Object;)Z
ifeq 4
3: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.monitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
aload 1
invokevirtual java.nio.ByteBuffer.capacity:()I
invokestatic org.glassfish.grizzly.memory.ProbeNotifier.notifyBufferReleasedToPool:(Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;I)V
4: StackMap locals: org.glassfish.grizzly.memory.ThreadLocalPool
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 5 1 byteBuffer Ljava/nio/ByteBuffer;
1 5 2 memoryPool Lorg/glassfish/grizzly/memory/ThreadLocalPool<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
byteBuffer
protected org.glassfish.grizzly.memory.ByteBufferManager$SmallByteBufferWrapper createSmallBuffer();
descriptor: ()Lorg/glassfish/grizzly/memory/ByteBufferManager$SmallByteBufferWrapper;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.SMALL_BUFFER_CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
invokestatic org.glassfish.grizzly.ThreadCache.takeFromCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.memory.ByteBufferManager$SmallByteBufferWrapper
astore 1
start local 1 1: aload 1
ifnull 4
2: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.monitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.maxSmallBufferSize:I
invokestatic org.glassfish.grizzly.memory.ProbeNotifier.notifyBufferAllocatedFromPool:(Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;I)V
3: aload 1
areturn
4: StackMap locals: org.glassfish.grizzly.memory.ByteBufferManager$SmallByteBufferWrapper
StackMap stack:
new org.glassfish.grizzly.memory.ByteBufferManager$SmallByteBufferWrapper
dup
aload 0
aload 0
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.maxSmallBufferSize:I
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBuffer0:(I)Ljava/nio/ByteBuffer;
invokespecial org.glassfish.grizzly.memory.ByteBufferManager$SmallByteBufferWrapper.<init>:(Lorg/glassfish/grizzly/memory/ByteBufferManager;Ljava/nio/ByteBuffer;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
1 5 1 buffer Lorg/glassfish/grizzly/memory/ByteBufferManager$SmallByteBufferWrapper;
public org.glassfish.grizzly.monitoring.MonitoringConfig<org.glassfish.grizzly.memory.MemoryProbe> getMonitoringConfig();
descriptor: ()Lorg/glassfish/grizzly/monitoring/MonitoringConfig;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.monitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
Signature: ()Lorg/glassfish/grizzly/monitoring/MonitoringConfig<Lorg/glassfish/grizzly/memory/MemoryProbe;>;
protected java.lang.Object createJmxManagementObject();
descriptor: ()Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: ldc "org.glassfish.grizzly.memory.jmx.ByteBufferManager"
aload 0
ldc Lorg/glassfish/grizzly/memory/ByteBufferManager;
invokestatic org.glassfish.grizzly.monitoring.MonitoringUtils.loadJmxObject:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
protected final java.nio.ByteBuffer allocateByteBuffer0(int);
descriptor: (I)Ljava/nio/ByteBuffer;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.monitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
iload 1
invokestatic org.glassfish.grizzly.memory.ProbeNotifier.notifyBufferAllocated:(Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;I)V
1: aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.isDirect:Z
ifeq 3
2: iload 1
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
areturn
3: StackMap locals:
StackMap stack:
iload 1
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 4 1 size I
MethodParameters:
Name Flags
size final
private org.glassfish.grizzly.memory.ByteBufferManager$TrimAwareWrapper createTrimAwareBuffer(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/memory/ByteBufferManager$TrimAwareWrapper;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.glassfish.grizzly.memory.ByteBufferManager.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
invokestatic org.glassfish.grizzly.ThreadCache.takeFromCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.memory.ByteBufferManager$TrimAwareWrapper
astore 2
start local 2 1: aload 2
ifnull 4
2: aload 2
aload 1
putfield org.glassfish.grizzly.memory.ByteBufferManager$TrimAwareWrapper.visible:Ljava/nio/ByteBuffer;
3: aload 2
areturn
4: StackMap locals: org.glassfish.grizzly.memory.ByteBufferManager$TrimAwareWrapper
StackMap stack:
new org.glassfish.grizzly.memory.ByteBufferManager$TrimAwareWrapper
dup
aload 0
aload 1
invokespecial org.glassfish.grizzly.memory.ByteBufferManager$TrimAwareWrapper.<init>:(Lorg/glassfish/grizzly/memory/ByteBufferManager;Ljava/nio/ByteBuffer;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
0 5 1 underlyingByteBuffer Ljava/nio/ByteBuffer;
1 5 2 buffer Lorg/glassfish/grizzly/memory/ByteBufferManager$TrimAwareWrapper;
MethodParameters:
Name Flags
underlyingByteBuffer final
private void reallocatePoolBuffer();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
aload 0
getfield org.glassfish.grizzly.memory.ByteBufferManager.maxBufferSize:I
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBuffer0:(I)Ljava/nio/ByteBuffer;
astore 1
start local 1 1: invokestatic org.glassfish.grizzly.memory.ByteBufferManager.getByteBufferThreadLocalPool:()Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
astore 2
start local 2 2: aload 2
ifnull 4
3: aload 2
aload 1
invokeinterface org.glassfish.grizzly.memory.ThreadLocalPool.reset:(Ljava/lang/Object;)V
4: StackMap locals: java.nio.ByteBuffer org.glassfish.grizzly.memory.ThreadLocalPool
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/ByteBufferManager;
1 5 1 byteBuffer Ljava/nio/ByteBuffer;
2 5 2 threadLocalCache Lorg/glassfish/grizzly/memory/ThreadLocalPool<Ljava/nio/ByteBuffer;>;
private static org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool getByteBufferThreadLocalPool();
descriptor: ()Lorg/glassfish/grizzly/memory/ByteBufferManager$ByteBufferThreadLocalPool;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic org.glassfish.grizzly.memory.ByteBufferManager.getThreadLocalPool:()Lorg/glassfish/grizzly/memory/ThreadLocalPool;
astore 0
start local 0 1: aload 0
instanceof org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool
ifeq 2
aload 0
checkcast org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool
goto 3
StackMap locals: org.glassfish.grizzly.memory.ThreadLocalPool
StackMap stack:
2: aconst_null
StackMap locals:
StackMap stack: org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 pool Lorg/glassfish/grizzly/memory/ThreadLocalPool;
public org.glassfish.grizzly.Buffer allocate(int);
descriptor: (I)Lorg/glassfish/grizzly/Buffer;
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.allocate:(I)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.glassfish.grizzly.Buffer wrap(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/Buffer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:(Ljava/nio/ByteBuffer;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.glassfish.grizzly.Buffer wrap(java.lang.String, java.nio.charset.Charset);
descriptor: (Ljava/lang/String;Ljava/nio/charset/Charset;)Lorg/glassfish/grizzly/Buffer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:(Ljava/lang/String;Ljava/nio/charset/Charset;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.glassfish.grizzly.Buffer wrap(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/glassfish/grizzly/Buffer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:(Ljava/lang/String;)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.glassfish.grizzly.Buffer wrap(byte[], int, int);
descriptor: ([BII)Lorg/glassfish/grizzly/Buffer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
iload 2
iload 3
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:([BII)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.glassfish.grizzly.Buffer wrap(byte[]);
descriptor: ([B)Lorg/glassfish/grizzly/Buffer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.wrap:([B)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.glassfish.grizzly.Buffer allocateAtLeast(int);
descriptor: (I)Lorg/glassfish/grizzly/Buffer;
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.allocateAtLeast:(I)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.glassfish.grizzly.Buffer reallocate(org.glassfish.grizzly.Buffer, int);
descriptor: (Lorg/glassfish/grizzly/Buffer;I)Lorg/glassfish/grizzly/Buffer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast org.glassfish.grizzly.memory.ByteBufferWrapper
iload 2
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.reallocate:(Lorg/glassfish/grizzly/memory/ByteBufferWrapper;I)Lorg/glassfish/grizzly/memory/ByteBufferWrapper;
areturn
LocalVariableTable:
Start End Slot Name Signature
public void release(org.glassfish.grizzly.Buffer);
descriptor: (Lorg/glassfish/grizzly/Buffer;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast org.glassfish.grizzly.memory.ByteBufferWrapper
invokevirtual org.glassfish.grizzly.memory.ByteBufferManager.release:(Lorg/glassfish/grizzly/memory/ByteBufferWrapper;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lorg/glassfish/grizzly/memory/AbstractMemoryManager<Lorg/glassfish/grizzly/memory/ByteBufferWrapper;>;Lorg/glassfish/grizzly/memory/WrapperAware;Lorg/glassfish/grizzly/memory/ByteBufferAware;
SourceFile: "ByteBufferManager.java"
NestMembers:
org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool org.glassfish.grizzly.memory.ByteBufferManager$SmallByteBufferWrapper org.glassfish.grizzly.memory.ByteBufferManager$TrimAwareWrapper
InnerClasses:
public final CachedTypeIndex = org.glassfish.grizzly.ThreadCache$CachedTypeIndex of org.glassfish.grizzly.ThreadCache
private final ByteBufferThreadLocalPool = org.glassfish.grizzly.memory.ByteBufferManager$ByteBufferThreadLocalPool of org.glassfish.grizzly.memory.ByteBufferManager
protected final SmallByteBufferWrapper = org.glassfish.grizzly.memory.ByteBufferManager$SmallByteBufferWrapper of org.glassfish.grizzly.memory.ByteBufferManager
private final TrimAwareWrapper = org.glassfish.grizzly.memory.ByteBufferManager$TrimAwareWrapper of org.glassfish.grizzly.memory.ByteBufferManager