class com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator
super_class: java.lang.Object
{
private static final com.oracle.svm.core.image.ImageHeapPartition FILLERS_DUMMY_PARTITION;
descriptor: Lcom/oracle/svm/core/image/ImageHeapPartition;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final com.oracle.svm.core.image.ImageHeap imageHeap;
descriptor: Lcom/oracle/svm/core/image/ImageHeap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int alignedChunkSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int alignedChunkAlignment;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int alignedChunkObjectsOffset;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int unalignedChunkObjectsOffset;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long position;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private final java.util.ArrayList<com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$UnalignedChunk> unalignedChunks;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$UnalignedChunk;>;
private final java.util.ArrayList<com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk> alignedChunks;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;>;
private com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk currentAlignedChunk;
descriptor: Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
flags: (0x0002) ACC_PRIVATE
final int minimumObjectSize;
descriptor: I
flags: (0x0010) ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.$assertionsDisabled:Z
3: new com.oracle.svm.core.genscavenge.FillerObjectDummyPartition
dup
invokespecial com.oracle.svm.core.genscavenge.FillerObjectDummyPartition.<init>:()V
putstatic com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.FILLERS_DUMMY_PARTITION:Lcom/oracle/svm/core/image/ImageHeapPartition;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.oracle.svm.core.image.ImageHeap, long);
descriptor: (Lcom/oracle/svm/core/image/ImageHeap;J)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.unalignedChunks:Ljava/util/ArrayList;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.alignedChunks:Ljava/util/ArrayList;
3: aload 0
aload 1
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.imageHeap:Lcom/oracle/svm/core/image/ImageHeap;
4: aload 0
invokestatic com.oracle.svm.core.genscavenge.HeapPolicy.getAlignedHeapChunkSize:()Lorg/graalvm/word/UnsignedWord;
invokestatic com.oracle.svm.core.util.UnsignedUtils.safeToInt:(Lorg/graalvm/word/UnsignedWord;)I
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.alignedChunkSize:I
5: aload 0
invokestatic com.oracle.svm.core.genscavenge.HeapPolicy.getAlignedHeapChunkAlignment:()Lorg/graalvm/word/UnsignedWord;
invokestatic com.oracle.svm.core.util.UnsignedUtils.safeToInt:(Lorg/graalvm/word/UnsignedWord;)I
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.alignedChunkAlignment:I
6: aload 0
invokestatic com.oracle.svm.core.genscavenge.AlignedHeapChunk.getObjectsStartOffset:()Lorg/graalvm/word/UnsignedWord;
invokestatic com.oracle.svm.core.util.UnsignedUtils.safeToInt:(Lorg/graalvm/word/UnsignedWord;)I
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.alignedChunkObjectsOffset:I
7: aload 0
invokestatic com.oracle.svm.core.genscavenge.UnalignedHeapChunk.getObjectStartOffset:()Lorg/graalvm/word/UnsignedWord;
invokestatic com.oracle.svm.core.util.UnsignedUtils.safeToInt:(Lorg/graalvm/word/UnsignedWord;)I
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.unalignedChunkObjectsOffset:I
8: aload 0
lload 2
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.position:J
9: aload 0
invokestatic com.oracle.svm.core.config.ConfigurationValues.getObjectLayout:()Lcom/oracle/svm/core/config/ObjectLayout;
invokevirtual com.oracle.svm.core.config.ObjectLayout.getMinimumObjectSize:()I
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.minimumObjectSize:I
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
0 11 1 imageHeap Lcom/oracle/svm/core/image/ImageHeap;
0 11 2 position J
MethodParameters:
Name Flags
imageHeap
position
public long getPosition();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
ifnull 1
aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk.getTop:()J
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.position:J
StackMap locals:
StackMap stack: long
2: lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
public void alignBetweenChunks(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
ifnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.position:J
iload 1
invokestatic com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.computePadding:(JI)J
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.allocateRaw:(J)J
pop2
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
0 3 1 multiple I
MethodParameters:
Name Flags
multiple
public long allocateUnalignedChunkForObject(com.oracle.svm.core.image.ImageHeapObject, boolean);
descriptor: (Lcom/oracle/svm/core/image/ImageHeapObject;Z)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=8, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
ifnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokeinterface com.oracle.svm.core.image.ImageHeapObject.getSize:()J
invokestatic org.graalvm.word.WordFactory.unsigned:(J)Lorg/graalvm/word/UnsignedWord;
astore 3
start local 3 2: aload 3
invokestatic com.oracle.svm.core.genscavenge.UnalignedHeapChunk.getChunkSizeForObject:(Lorg/graalvm/word/UnsignedWord;)Lorg/graalvm/word/UnsignedWord;
invokeinterface org.graalvm.word.UnsignedWord.rawValue:()J
lstore 4
start local 4 3: aload 0
lload 4
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.allocateRaw:(J)J
lstore 6
start local 6 4: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.unalignedChunks:Ljava/util/ArrayList;
new com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$UnalignedChunk
dup
lload 6
lload 4
iload 2
invokespecial com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$UnalignedChunk.<init>:(JJZ)V
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
5: lload 6
aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.unalignedChunkObjectsOffset:I
i2l
ladd
lreturn
end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
0 6 1 obj Lcom/oracle/svm/core/image/ImageHeapObject;
0 6 2 writable Z
2 6 3 objSize Lorg/graalvm/word/UnsignedWord;
3 6 4 chunkSize J
4 6 6 chunkBegin J
MethodParameters:
Name Flags
obj
writable
public void maybeStartAlignedChunk();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
ifnonnull 2
1: aload 0
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.startNewAlignedChunk:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
public void startNewAlignedChunk();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.finishAlignedChunk:()V
1: aload 0
aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.alignedChunkAlignment:I
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.alignBetweenChunks:(I)V
2: aload 0
aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.alignedChunkSize:I
i2l
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.allocateRaw:(J)J
lstore 1
start local 1 3: aload 0
new com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk
dup
aload 0
lload 1
invokespecial com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk.<init>:(Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;J)V
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
4: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.alignedChunks:Ljava/util/ArrayList;
aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
3 6 1 chunkBegin J
public long getRemainingBytesInAlignedChunk();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk.getUnallocatedBytes:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
public long allocateObjectInAlignedChunk(com.oracle.svm.core.image.ImageHeapObject, boolean);
descriptor: (Lcom/oracle/svm/core/image/ImageHeapObject;Z)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
aload 1
iload 2
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk.allocate:(Lcom/oracle/svm/core/image/ImageHeapObject;Z)J
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
0 1 1 obj Lcom/oracle/svm/core/image/ImageHeapObject;
0 1 2 writable Z
MethodParameters:
Name Flags
obj
writable
public void alignInAlignedChunk(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
iload 1
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk.tryAlignTop:(I)Z
ifne 4
1: aload 0
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.startNewAlignedChunk:()V
2: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
iload 1
invokevirtual com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk.tryAlignTop:(I)Z
istore 2
start local 2 3: iload 2
new java.lang.StringBuilder
dup
ldc "Cannot align to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes within an aligned chunk's object area"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.oracle.svm.core.util.VMError.guarantee:(ZLjava/lang/String;)V
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
0 5 1 multiple I
3 4 2 aligned Z
MethodParameters:
Name Flags
multiple
public void finishAlignedChunk();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
public java.util.List<com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk> getAlignedChunks();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.alignedChunks:Ljava/util/ArrayList;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
Signature: ()Ljava/util/List<Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;>;
public java.util.List<com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$UnalignedChunk> getUnalignedChunks();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.unalignedChunks:Ljava/util/ArrayList;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
Signature: ()Ljava/util/List<Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$UnalignedChunk;>;
private long allocateRaw(long);
descriptor: (J)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: getstatic com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.currentAlignedChunk:Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator$AlignedChunk;
ifnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.position:J
lstore 3
start local 3 2: aload 0
dup
getfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.position:J
lload 1
ladd
putfield com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator.position:J
3: lload 3
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/svm/core/genscavenge/ChunkedImageHeapAllocator;
0 4 1 size J
2 4 3 begin J
MethodParameters:
Name Flags
size
private static long computePadding(long, int);
descriptor: (JI)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 2 0: lload 0
iload 2
i2l
lrem
lstore 3
start local 3 1: lload 3
lconst_0
lcmp
ifne 2
lconst_0
goto 3
StackMap locals: long
StackMap stack:
2: iload 2
i2l
lload 3
lsub
StackMap locals:
StackMap stack: long
3: lreturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 offset J
0 4 2 alignment I
1 4 3 remainder J
MethodParameters:
Name Flags
offset
alignment
}
SourceFile: "ChunkedImageHeapAllocator.java"
NestMembers:
com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$Chunk com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$UnalignedChunk
InnerClasses:
final AlignedChunk = com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$AlignedChunk of com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator
abstract Chunk = com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$Chunk of com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator
final UnalignedChunk = com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator$UnalignedChunk of com.oracle.svm.core.genscavenge.ChunkedImageHeapAllocator