final class org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice
super_class: java.lang.Object
{
private static final int LOG2_STRIDE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int STRIDE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 16
private static final int MASK;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1073741823
private static final int WRAP_BIT_MASK;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1073741824
private final org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray<org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer> pool1;
descriptor: Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray<Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;>;
private final org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray<org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer> pool2;
descriptor: Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray<Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;>;
private final org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger pollIdx;
descriptor: Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger offerIdx;
descriptor: Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.glassfish.grizzly.memory.PooledMemoryManager$Pool owner;
descriptor: Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int maxPoolSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int stridesInPool;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int bufferSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean isDirect;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.glassfish.grizzly.monitoring.DefaultMonitoringConfig<org.glassfish.grizzly.memory.MemoryProbe> monitoringConfig;
descriptor: Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig<Lorg/glassfish/grizzly/memory/MemoryProbe;>;
void <init>(org.glassfish.grizzly.memory.PooledMemoryManager$Pool, long, int, float, boolean, org.glassfish.grizzly.monitoring.DefaultMonitoringConfig<org.glassfish.grizzly.memory.MemoryProbe>);
descriptor: (Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;JIFZLorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;)V
flags: (0x0000)
Code:
stack=4, locals=12, 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
aload 1
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.owner:Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
2: aload 0
iload 4
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.bufferSize:I
3: aload 0
iload 6
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.isDirect:Z
4: aload 0
aload 7
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.monitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
5: lload 2
iload 4
i2l
ldiv
l2i
istore 8
start local 8 6: aload 0
iload 8
bipush 16
iadd
iconst_1
isub
bipush -16
iand
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
7: aload 0
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
iconst_4
ishr
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.stridesInPool:I
8: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
ldc 1073741824
if_icmplt 10
9: new java.lang.IllegalStateException
dup
ldc "Cannot manage a pool larger than 2^30-1"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice org.glassfish.grizzly.memory.PooledMemoryManager$Pool long int float int org.glassfish.grizzly.monitoring.DefaultMonitoringConfig int
StackMap stack:
aload 0
new org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray
dup
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray.<init>:(I)V
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pool1:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray;
11: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
fload 5
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
i2f
fmul
f2i
invokestatic java.lang.Math.min:(II)I
istore 9
start local 9 12: iconst_0
istore 10
start local 10 13: iconst_0
istore 11
start local 11 14: goto 17
15: StackMap locals: int int int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pool1:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray;
iload 10
aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.allocate:()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
iconst_1
invokeinterface org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer.free:(Z)Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray.lazySet:(ILjava/lang/Object;)V
16: iinc 11 1
aload 0
iload 10
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.nextIndex:(I)I
istore 10
StackMap locals:
StackMap stack:
17: iload 11
iload 9
if_icmplt 15
end local 11 18: aload 0
new org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray
dup
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray.<init>:(I)V
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pool2:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray;
19: aload 0
new org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger
dup
iconst_0
invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.<init>:(I)V
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pollIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
20: aload 0
new org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger
dup
iload 10
invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.<init>:(I)V
putfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.offerIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
21: return
end local 10 end local 9 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 22 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
0 22 1 owner Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;
0 22 2 totalPoolSize J
0 22 4 bufferSize I
0 22 5 percentPreallocated F
0 22 6 isDirect Z
0 22 7 monitoringConfig Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig<Lorg/glassfish/grizzly/memory/MemoryProbe;>;
6 22 8 initialSize I
12 22 9 preallocatedBufs I
13 22 10 idx I
14 18 11 i I
Signature: (Lorg/glassfish/grizzly/memory/PooledMemoryManager$Pool;JIFZLorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig<Lorg/glassfish/grizzly/memory/MemoryProbe;>;)V
MethodParameters:
Name Flags
owner final
totalPoolSize final
bufferSize final
percentPreallocated final
isDirect final
monitoringConfig final
public org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer poll();
descriptor: ()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pollIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.get:()I
istore 1
start local 1 1: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.offerIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.get:()I
istore 2
start local 2 2: iload 1
iload 2
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.isEmpty:(II)Z
ifeq 4
3: aconst_null
areturn
4: StackMap locals: int int
StackMap stack:
aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.nextIndex:(I)I
istore 3
start local 3 5: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pollIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
iload 1
iload 3
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.compareAndSet:(II)Z
ifeq 7
6: goto 9
7: StackMap locals: int
StackMap stack:
getstatic org.glassfish.grizzly.memory.PooledMemoryManager.BACK_OFF_DELAY:J
invokestatic java.util.concurrent.locks.LockSupport.parkNanos:(J)V
end local 3 end local 2 end local 1 8: goto 0
start local 1 9: StackMap locals:
StackMap stack:
iload 1
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.unmask:(I)I
istore 2
start local 2 10: aload 0
iload 1
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pool:(I)Ljava/util/concurrent/atomic/AtomicReferenceArray;
astore 3
start local 3 11: StackMap locals: int java.util.concurrent.atomic.AtomicReferenceArray
StackMap stack:
aload 3
iload 2
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.getAndSet:(ILjava/lang/Object;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer
astore 4
start local 4 12: aload 4
ifnull 15
13: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.monitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.bufferSize:I
invokestatic org.glassfish.grizzly.memory.ProbeNotifier.notifyBufferAllocatedFromPool:(Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;I)V
14: aload 4
areturn
15: StackMap locals: org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer
StackMap stack:
invokestatic java.lang.Thread.yield:()V
end local 4 16: goto 11
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
1 8 1 pollIdx I
9 17 1 pollIdx I
2 8 2 offerIdx I
5 8 3 nextPollIdx I
10 17 2 unmaskedPollIdx I
11 17 3 pool Ljava/util/concurrent/atomic/AtomicReferenceArray<Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;>;
12 16 4 pb Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
public boolean offer(org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer);
descriptor: (Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.offerIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.get:()I
istore 2
start local 2 1: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pollIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.get:()I
istore 3
start local 3 2: iload 3
iload 2
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.isFull:(II)Z
ifeq 4
3: iconst_0
ireturn
4: StackMap locals: int int
StackMap stack:
aload 0
iload 2
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.nextIndex:(I)I
istore 4
start local 4 5: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.offerIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
iload 2
iload 4
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.compareAndSet:(II)Z
ifeq 7
6: goto 9
7: StackMap locals: int
StackMap stack:
getstatic org.glassfish.grizzly.memory.PooledMemoryManager.BACK_OFF_DELAY:J
invokestatic java.util.concurrent.locks.LockSupport.parkNanos:(J)V
end local 4 end local 3 end local 2 8: goto 0
start local 2 9: StackMap locals:
StackMap stack:
iload 2
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.unmask:(I)I
istore 3
start local 3 10: aload 0
iload 2
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pool:(I)Ljava/util/concurrent/atomic/AtomicReferenceArray;
astore 4
start local 4 11: StackMap locals: int java.util.concurrent.atomic.AtomicReferenceArray
StackMap stack:
aload 4
iload 3
aconst_null
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReferenceArray.compareAndSet:(ILjava/lang/Object;Ljava/lang/Object;)Z
ifeq 14
12: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.monitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.bufferSize:I
invokestatic org.glassfish.grizzly.memory.ProbeNotifier.notifyBufferReleasedToPool:(Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;I)V
13: iconst_1
ireturn
14: StackMap locals:
StackMap stack:
invokestatic java.lang.Thread.yield:()V
15: goto 11
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
0 16 1 b Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
1 8 2 offerIdx I
9 16 2 offerIdx I
2 8 3 pollIdx I
5 8 4 nextOfferIndex I
10 16 3 unmaskedOfferIdx I
11 16 4 pool Ljava/util/concurrent/atomic/AtomicReferenceArray<Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;>;
MethodParameters:
Name Flags
b final
public int elementsCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pollIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.get:()I
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.offerIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.get:()I
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.elementsCount:(II)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
private int elementsCount(int, int);
descriptor: (II)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 2
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.unmask:(I)I
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.unstride:(I)I
aload 0
iload 1
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.unmask:(I)I
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.unstride:(I)I
isub
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
iload 1
iload 2
ixor
ldc 1073741824
iand
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager.fillHighestOneBitRight:(I)I
iand
iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
0 1 1 ridx I
0 1 2 widx I
MethodParameters:
Name Flags
ridx final
widx final
public int getMaxElementsCount();
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$PoolSlice.maxPoolSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
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$PoolSlice.elementsCount:()I
i2l
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.bufferSize:I
i2l
lmul
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.poll:()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
ifnonnull 0
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
public org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer allocate();
descriptor: ()Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.isDirect:Z
ifne 1
getstatic org.glassfish.grizzly.memory.PooledMemoryManager.FORCE_BYTE_BUFFER_BASED_BUFFERS:Z
ifeq 4
1: StackMap locals:
StackMap stack:
new org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper
dup
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.isDirect:Z
ifeq 2
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.bufferSize:I
invokestatic java.nio.ByteBuffer.allocateDirect:(I)Ljava/nio/ByteBuffer;
goto 3
StackMap locals: org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice
StackMap stack: new 1 new 1
2: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.bufferSize:I
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
StackMap locals: org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice
StackMap stack: new 1 new 1 java.nio.ByteBuffer
3: aload 0
invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper.<init>:(Ljava/nio/ByteBuffer;Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;)V
goto 5
4: StackMap locals:
StackMap stack:
new org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer
dup
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.bufferSize:I
newarray 8
aload 0
invokespecial org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer.<init>:([BLorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;)V
5: StackMap locals:
StackMap stack: org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer
astore 1
start local 1 6: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.monitoringConfig:Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.bufferSize:I
invokestatic org.glassfish.grizzly.memory.ProbeNotifier.notifyBufferAllocated:(Lorg/glassfish/grizzly/monitoring/DefaultMonitoringConfig;I)V
7: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
6 8 1 buffer Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;
private static boolean isFull(int, int);
descriptor: (II)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iload 1
ixor
ldc 1073741824
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 pollIdx I
0 2 1 offerIdx I
MethodParameters:
Name Flags
pollIdx final
offerIdx final
private static boolean isEmpty(int, int);
descriptor: (II)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iload 1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 pollIdx I
0 2 1 offerIdx I
MethodParameters:
Name Flags
pollIdx final
offerIdx final
private java.util.concurrent.atomic.AtomicReferenceArray<org.glassfish.grizzly.memory.PooledMemoryManager$PoolBuffer> pool(int);
descriptor: (I)Ljava/util/concurrent/atomic/AtomicReferenceArray;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ldc 1073741824
iand
ifne 1
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pool1:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pool2:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray;
StackMap locals:
StackMap stack: org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
0 3 1 idx I
Signature: (I)Ljava/util/concurrent/atomic/AtomicReferenceArray<Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolBuffer;>;
MethodParameters:
Name Flags
idx final
private int nextIndex(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: iload 1
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.unmask:(I)I
istore 2
start local 2 1: iload 2
bipush 16
iadd
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
if_icmpge 3
2: iload 1
bipush 16
iadd
ireturn
3: StackMap locals: int
StackMap stack:
iload 2
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
isub
bipush 16
iadd
iconst_1
iadd
istore 3
start local 3 4: iload 3
bipush 16
if_icmpne 6
5: ldc 1073741824
iload 1
ldc 1073741824
iand
ixor
goto 7
6: StackMap locals: int
StackMap stack:
iload 3
iload 1
ldc 1073741824
iand
ior
7: StackMap locals:
StackMap stack: int
ireturn
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/PooledMemoryManager$PoolSlice;
0 8 1 currentIdx I
1 8 2 arrayIndex I
4 8 3 offset I
MethodParameters:
Name Flags
currentIdx final
private static int unmask(int);
descriptor: (I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
ldc 1073741823
iand
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 val I
MethodParameters:
Name Flags
val final
private static int getWrappingBit(int);
descriptor: (I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
ldc 1073741824
iand
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 val I
MethodParameters:
Name Flags
val final
private int unstride(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_4
ishr
iload 1
bipush 15
iand
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.stridesInPool:I
imul
iadd
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
0 1 1 idx I
MethodParameters:
Name Flags
idx final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.pollIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.get:()I
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.offerIdx:Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice$PaddedAtomicInteger;
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger.get:()I
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.toString:(II)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
private java.lang.String toString(int, int);
descriptor: (II)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
ldc "BufferSlice["
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$PoolSlice.bufferSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", elements in pool="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
iload 1
iload 2
invokevirtual org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.elementsCount:(II)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
1: ldc ", poll index="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.unmask:(I)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", poll wrap bit="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.getWrappingBit:(I)I
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager.fillHighestOneBitRight:(I)I
iconst_1
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", offer index="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.unmask:(I)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
2: ldc ", offer wrap bit="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.getWrappingBit:(I)I
invokestatic org.glassfish.grizzly.memory.PooledMemoryManager.fillHighestOneBitRight:(I)I
iconst_1
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", maxPoolSize="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice.maxPoolSize:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/memory/PooledMemoryManager$PoolSlice;
0 4 1 ridx I
0 4 2 widx I
MethodParameters:
Name Flags
ridx final
widx final
}
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
private final PoolByteBufferWrapper = org.glassfish.grizzly.memory.PooledMemoryManager$PoolByteBufferWrapper of org.glassfish.grizzly.memory.PooledMemoryManager
private final PoolHeapBuffer = org.glassfish.grizzly.memory.PooledMemoryManager$PoolHeapBuffer of org.glassfish.grizzly.memory.PooledMemoryManager
final PoolSlice = org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice of org.glassfish.grizzly.memory.PooledMemoryManager
final PaddedAtomicInteger = org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicInteger of org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice
final PaddedAtomicReferenceArray = org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice$PaddedAtomicReferenceArray of org.glassfish.grizzly.memory.PooledMemoryManager$PoolSlice