final class at.yawk.numaec.PageAllocator implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: at.yawk.numaec.PageAllocator
super_class: java.lang.Object
{
private final at.yawk.numaec.LargeByteBufferAllocator allocator;
descriptor: Lat/yawk/numaec/LargeByteBufferAllocator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<at.yawk.numaec.LargeByteBuffer> regions;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lat/yawk/numaec/LargeByteBuffer;>;
private final int regionSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int regionSizeBytes;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final at.yawk.numaec.LargeByteBuffer bufferView;
descriptor: Lat/yawk/numaec/LargeByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.BitSet occupied;
descriptor: Ljava/util/BitSet;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(at.yawk.numaec.LargeByteBufferAllocator, int, int);
descriptor: (Lat/yawk/numaec/LargeByteBufferAllocator;II)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield at.yawk.numaec.PageAllocator.regions:Ljava/util/List;
2: aload 0
new at.yawk.numaec.PageAllocator$Buf
dup
aload 0
invokespecial at.yawk.numaec.PageAllocator$Buf.<init>:(Lat/yawk/numaec/PageAllocator;)V
putfield at.yawk.numaec.PageAllocator.bufferView:Lat/yawk/numaec/LargeByteBuffer;
3: aload 0
new java.util.BitSet
dup
invokespecial java.util.BitSet.<init>:()V
putfield at.yawk.numaec.PageAllocator.occupied:Ljava/util/BitSet;
4: aload 0
aload 1
putfield at.yawk.numaec.PageAllocator.allocator:Lat/yawk/numaec/LargeByteBufferAllocator;
5: aload 0
iload 2
putfield at.yawk.numaec.PageAllocator.regionSize:I
6: aload 0
iload 2
iload 3
imul
putfield at.yawk.numaec.PageAllocator.regionSizeBytes:I
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lat/yawk/numaec/PageAllocator;
0 8 1 allocator Lat/yawk/numaec/LargeByteBufferAllocator;
0 8 2 regionSize I
0 8 3 pageSize I
MethodParameters:
Name Flags
allocator
regionSize
pageSize
public at.yawk.numaec.LargeByteBuffer getBufferView();
descriptor: ()Lat/yawk/numaec/LargeByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield at.yawk.numaec.PageAllocator.bufferView:Lat/yawk/numaec/LargeByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lat/yawk/numaec/PageAllocator;
public int allocatePage();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield at.yawk.numaec.PageAllocator.occupied:Ljava/util/BitSet;
iconst_0
invokevirtual java.util.BitSet.nextClearBit:(I)I
istore 1
start local 1 1: aload 0
getfield at.yawk.numaec.PageAllocator.regionSize:I
aload 0
getfield at.yawk.numaec.PageAllocator.regions:Ljava/util/List;
invokeinterface java.util.List.size:()I
imul
istore 2
start local 2 2: iload 1
iload 2
if_icmple 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: int int
StackMap stack:
iload 1
iload 2
if_icmpne 5
4: aload 0
getfield at.yawk.numaec.PageAllocator.regions:Ljava/util/List;
aload 0
getfield at.yawk.numaec.PageAllocator.allocator:Lat/yawk/numaec/LargeByteBufferAllocator;
aload 0
getfield at.yawk.numaec.PageAllocator.regionSizeBytes:I
i2l
invokeinterface at.yawk.numaec.LargeByteBufferAllocator.allocate:(J)Lat/yawk/numaec/LargeByteBuffer;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: StackMap locals:
StackMap stack:
aload 0
getfield at.yawk.numaec.PageAllocator.occupied:Ljava/util/BitSet;
iload 1
invokevirtual java.util.BitSet.set:(I)V
6: iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lat/yawk/numaec/PageAllocator;
1 7 1 nextClear I
2 7 2 maxPage I
public void freePage(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield at.yawk.numaec.PageAllocator.occupied:Ljava/util/BitSet;
iload 1
invokevirtual java.util.BitSet.get:(I)Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Page not allocated (double-free?)"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield at.yawk.numaec.PageAllocator.occupied:Ljava/util/BitSet;
iload 1
invokevirtual java.util.BitSet.clear:(I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lat/yawk/numaec/PageAllocator;
0 4 1 page I
MethodParameters:
Name Flags
page
public void freeAllPages();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield at.yawk.numaec.PageAllocator.occupied:Ljava/util/BitSet;
invokevirtual java.util.BitSet.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lat/yawk/numaec/PageAllocator;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield at.yawk.numaec.PageAllocator.regions:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 10
StackMap locals: at.yawk.numaec.PageAllocator java.lang.RuntimeException top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast at.yawk.numaec.LargeByteBuffer
astore 2
start local 2 3: aload 2
invokeinterface at.yawk.numaec.LargeByteBuffer.close:()V
4: goto 10
StackMap locals: at.yawk.numaec.PageAllocator java.lang.RuntimeException at.yawk.numaec.LargeByteBuffer java.util.Iterator
StackMap stack: java.lang.RuntimeException
5: astore 4
start local 4 6: aload 1
ifnonnull 9
7: aload 4
astore 1
8: goto 10
9: StackMap locals: java.lang.RuntimeException
StackMap stack:
aload 1
aload 4
invokevirtual java.lang.RuntimeException.addSuppressed:(Ljava/lang/Throwable;)V
end local 4 end local 2 10: StackMap locals: at.yawk.numaec.PageAllocator java.lang.RuntimeException top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
11: aload 0
getfield at.yawk.numaec.PageAllocator.regions:Ljava/util/List;
invokeinterface java.util.List.clear:()V
12: aload 1
ifnull 14
13: aload 1
athrow
14: StackMap locals: at.yawk.numaec.PageAllocator java.lang.RuntimeException
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lat/yawk/numaec/PageAllocator;
1 15 1 re Ljava/lang/RuntimeException;
3 10 2 region Lat/yawk/numaec/LargeByteBuffer;
6 10 4 e Ljava/lang/RuntimeException;
Exception table:
from to target type
3 4 5 Class java.lang.RuntimeException
}
SourceFile: "PageAllocator.java"
NestMembers:
at.yawk.numaec.PageAllocator$Buf
InnerClasses:
private Buf = at.yawk.numaec.PageAllocator$Buf of at.yawk.numaec.PageAllocator