final class org.glassfish.grizzly.memory.PooledMemoryManager$Pool
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.memory.PooledMemoryManager$Pool
super_class: java.lang.Object
{
private final org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice[] slices;
descriptor: [Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int bufferSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(int, long, int, float, boolean, org.glassfish.grizzly.monitoring.DefaultMonitoringConfig<org.glassfish.grizzly.memory.MemoryProbe>);
descriptor: (IJIFZLorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=11, args_size=7
start local 0 start local 1 start local 2 start local 4 start local 5 start local 6 start local 7 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.bufferSize:I
2: aload 0
iload 4
anewarray org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice
putfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
3: lload 2
iload 4
i2l
ldiv
lstore 8
start local 8 4: iconst_0
istore 10
start local 10 5: goto 8
6: StackMap locals: org.glassfish.grizzly.memory.PooledMemoryManager$Pool int long int float int org.glassfish.grizzly.monitoring.DefaultMonitoringConfig long int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
iload 10
new org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice
dup
aload 0
lload 8
iload 1
fload 5
iload 6
aload 7
invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.<init>:(Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;JIFZLorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;)V
aastore
7: iinc 10 1
StackMap locals:
StackMap stack:
8: iload 10
iload 4
if_icmplt 6
end local 10 9: return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
0 10 1 bufferSize I
0 10 2 memoryPerSubPool J
0 10 4 numberOfPoolSlices I
0 10 5 percentPreallocated F
0 10 6 isDirect Z
0 10 7 monitoringConfig Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig<Lorg/glassfish/grizzly/memory/MemoryProbe;>;
4 10 8 memoryPerSlice J
5 9 10 i I
Signature: (IJIFZLorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig<Lorg/glassfish/grizzly/memory/MemoryProbe;>;)V
MethodParameters:
Name Flags
bufferSize final
memoryPerSubPool final
numberOfPoolSlices final
percentPreallocated final
isDirect final
monitoringConfig final
public int elementsCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: int int
StackMap stack:
iload 1
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
iload 2
aaload
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.elementsCount:()I
iadd
istore 1
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
arraylength
if_icmplt 3
end local 2 6: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
1 7 1 sum I
2 6 2 i I
public long size();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$Pool.elementsCount:()I
i2l
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.bufferSize:I
i2l
lmul
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
public int getBufferSize();
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.PooledMemoryManager$Pool.bufferSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
public org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice[] getSlices();
descriptor: ()[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
arraylength
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
checkcast org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
public org.glassfish.grizzly.Buffer allocate();
descriptor: ()Lorg/glassfish/grizzly/Buffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$Pool.getSlice:()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
astore 1
start local 1 1: aload 1
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.poll:()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
astore 2
start local 2 2: aload 2
ifnonnull 4
3: aload 1
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.allocate:()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
astore 2
4: StackMap locals: org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer
StackMap stack:
aload 2
invokeinterface org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer.prepare:()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
1 5 1 slice Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
2 5 2 b Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
1: new java.lang.StringBuilder
dup
ldc "Pool["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.hashCode:()I
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] {"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "buffer size="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.bufferSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", slices count="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 1
start local 1 3: iconst_0
istore 2
start local 2 4: goto 9
5: StackMap locals: java.lang.StringBuilder int
StackMap stack:
iload 2
ifne 7
6: aload 1
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: StackMap locals:
StackMap stack:
aload 1
ldc "\t["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "] "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
iload 2
aaload
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 10
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
8: iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
arraylength
if_icmplt 5
end local 2 10: aload 1
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
11: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
3 12 1 sb Ljava/lang/StringBuilder;
4 10 2 i I
private org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice getSlice();
descriptor: ()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
invokestatic java.util.concurrent.ThreadLocalRandom.current:()Ljava/util/concurrent/ThreadLocalRandom;
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$Pool.slices:[Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
arraylength
invokevirtual java.util.concurrent.ThreadLocalRandom.nextInt:(I)I
aaload
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
}
SourceFile: "PooledMemoryManager.java"
NestHost: org.glassfish.grizzly.memory.PooledMemoryManager
InnerClasses:
final Pool = org.glassfish.grizzly.memory.PooledMemoryManager$Pool of org.glassfish.grizzly.memory.PooledMemoryManager
abstract PoolBuffer = org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer of org.glassfish.grizzly.memory.PooledMemoryManager
final PoolSlice = org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice of org.glassfish.grizzly.memory.PooledMemoryManager