public class com.oracle.svm.hosted.c.CGlobalDataFeature implements com.oracle.svm.core.graal.GraalFeature
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.svm.hosted.c.CGlobalDataFeature
super_class: java.lang.Object
{
private final java.lang.reflect.Method getCGlobalDataInfoMethod;
descriptor: Ljava/lang/reflect/Method;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.reflect.Field offsetField;
descriptor: Ljava/lang/reflect/Field;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.reflect.Field isSymbolReferenceField;
descriptor: Ljava/lang/reflect/Field;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.oracle.svm.core.c.CGlobalDataNonConstantRegistry nonConstantRegistry;
descriptor: Lcom/oracle/svm/core/c/CGlobalDataNonConstantRegistry;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.vm.ci.meta.JavaConstant nonConstantRegistryJavaConstant;
descriptor: Ljdk/vm/ci/meta/JavaConstant;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<com.oracle.svm.core.c.CGlobalDataImpl<?>, com.oracle.svm.core.graal.code.CGlobalDataInfo> map;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lcom/oracle/svm/core/c/CGlobalDataImpl<*>;Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;>;
private com.oracle.svm.core.graal.code.CGlobalDataInfo cGlobalDataBaseAddress;
descriptor: Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
flags: (0x0002) ACC_PRIVATE
private int totalSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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=1, locals=0, args_size=0
0: ldc Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
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.hosted.c.CGlobalDataFeature.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc Lcom/oracle/svm/core/c/CGlobalDataNonConstantRegistry;
ldc "getCGlobalDataInfo"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Lcom/oracle/svm/core/c/CGlobalDataImpl;
aastore
invokestatic com.oracle.svm.util.ReflectionUtil.lookupMethod:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
putfield com.oracle.svm.hosted.c.CGlobalDataFeature.getCGlobalDataInfoMethod:Ljava/lang/reflect/Method;
2: aload 0
ldc Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
ldc "offset"
invokestatic com.oracle.svm.util.ReflectionUtil.lookupField:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Field;
putfield com.oracle.svm.hosted.c.CGlobalDataFeature.offsetField:Ljava/lang/reflect/Field;
3: aload 0
ldc Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
ldc "isSymbolReference"
invokestatic com.oracle.svm.util.ReflectionUtil.lookupField:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Field;
putfield com.oracle.svm.hosted.c.CGlobalDataFeature.isSymbolReferenceField:Ljava/lang/reflect/Field;
4: aload 0
new com.oracle.svm.core.c.CGlobalDataNonConstantRegistry
dup
invokespecial com.oracle.svm.core.c.CGlobalDataNonConstantRegistry.<init>:()V
putfield com.oracle.svm.hosted.c.CGlobalDataFeature.nonConstantRegistry:Lcom/oracle/svm/core/c/CGlobalDataNonConstantRegistry;
5: aload 0
aload 0
getfield com.oracle.svm.hosted.c.CGlobalDataFeature.nonConstantRegistry:Lcom/oracle/svm/core/c/CGlobalDataNonConstantRegistry;
invokestatic com.oracle.svm.core.meta.SubstrateObjectConstant.forObject:(Ljava/lang/Object;)Ljdk/vm/ci/meta/JavaConstant;
putfield com.oracle.svm.hosted.c.CGlobalDataFeature.nonConstantRegistryJavaConstant:Ljdk/vm/ci/meta/JavaConstant;
6: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield com.oracle.svm.hosted.c.CGlobalDataFeature.map:Ljava/util/Map;
7: aload 0
iconst_m1
putfield com.oracle.svm.hosted.c.CGlobalDataFeature.totalSize:I
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
public static com.oracle.svm.hosted.c.CGlobalDataFeature singleton();
descriptor: ()Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
invokestatic org.graalvm.nativeimage.ImageSingletons.lookup:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.oracle.svm.hosted.c.CGlobalDataFeature
areturn
LocalVariableTable:
Start End Slot Name Signature
private boolean isLayouted();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.oracle.svm.hosted.c.CGlobalDataFeature.totalSize:I
iconst_m1
if_icmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
public void duringSetup(org.graalvm.nativeimage.hosted.Feature$DuringSetupAccess);
descriptor: (Lorg/graalvm/nativeimage/hosted/Feature$DuringSetupAccess;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokedynamic apply(Lcom/oracle/svm/hosted/c/CGlobalDataFeature;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
com/oracle/svm/hosted/c/CGlobalDataFeature.replaceObject(Ljava/lang/Object;)Ljava/lang/Object; (7)
(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface org.graalvm.nativeimage.hosted.Feature$DuringSetupAccess.registerObjectReplacer:(Ljava/util/function/Function;)V
1: aload 0
aload 0
getstatic com.oracle.svm.core.graal.code.CGlobalDataInfo.CGLOBALDATA_RUNTIME_BASE_ADDRESS:Lcom/oracle/svm/core/c/CGlobalData;
invokevirtual com.oracle.svm.hosted.c.CGlobalDataFeature.registerAsAccessedOrGet:(Lcom/oracle/svm/core/c/CGlobalData;)Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
putfield com.oracle.svm.hosted.c.CGlobalDataFeature.cGlobalDataBaseAddress:Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
0 3 1 access Lorg/graalvm/nativeimage/hosted/Feature$DuringSetupAccess;
MethodParameters:
Name Flags
access
public void afterHeapLayout(org.graalvm.nativeimage.hosted.Feature$AfterHeapLayoutAccess);
descriptor: (Lorg/graalvm/nativeimage/hosted/Feature$AfterHeapLayoutAccess;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.oracle.svm.hosted.c.CGlobalDataFeature.layout:()V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
0 2 1 access Lorg/graalvm/nativeimage/hosted/Feature$AfterHeapLayoutAccess;
MethodParameters:
Name Flags
access
public void registerInvocationPlugins(org.graalvm.compiler.phases.util.Providers, org.graalvm.compiler.api.replacements.SnippetReflectionProvider, org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins, boolean, boolean);
descriptor: (Lorg/graalvm/compiler/phases/util/Providers;Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: new org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration
dup
aload 3
ldc Lcom/oracle/svm/core/c/CGlobalData;
invokespecial org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration.<init>:(Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;Ljava/lang/reflect/Type;)V
astore 6
start local 6 1: aload 6
ldc "get"
ldc Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugin$Receiver;
new com.oracle.svm.hosted.c.CGlobalDataFeature$1
dup
aload 0
invokespecial com.oracle.svm.hosted.c.CGlobalDataFeature$1.<init>:(Lcom/oracle/svm/hosted/c/CGlobalDataFeature;)V
invokevirtual org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration.register1:(Ljava/lang/String;Ljava/lang/reflect/Type;Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugin;)V
2: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
0 3 1 providers Lorg/graalvm/compiler/phases/util/Providers;
0 3 2 snippetReflection Lorg/graalvm/compiler/api/replacements/SnippetReflectionProvider;
0 3 3 invocationPlugins Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;
0 3 4 analysis Z
0 3 5 hosted Z
1 3 6 r Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins$Registration;
MethodParameters:
Name Flags
providers
snippetReflection
invocationPlugins
analysis
hosted
public com.oracle.svm.core.graal.code.CGlobalDataInfo registerAsAccessedOrGet(com.oracle.svm.core.c.CGlobalData<?>);
descriptor: (Lcom/oracle/svm/core/c/CGlobalData;)Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
checkcast com.oracle.svm.core.c.CGlobalDataImpl
astore 2
start local 2 1: aload 0
invokevirtual com.oracle.svm.hosted.c.CGlobalDataFeature.isLayouted:()Z
ifeq 2
aload 0
getfield com.oracle.svm.hosted.c.CGlobalDataFeature.map:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 2
iconst_0
goto 3
StackMap locals: com.oracle.svm.core.c.CGlobalDataImpl
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: ldc "CGlobalData instance must have been discovered/registered before or during analysis"
invokestatic com.oracle.svm.core.util.VMError.guarantee:(ZLjava/lang/String;)V
4: aload 0
getfield com.oracle.svm.hosted.c.CGlobalDataFeature.map:Ljava/util/Map;
aload 1
checkcast com.oracle.svm.core.c.CGlobalDataImpl
5: aload 0
aload 2
invokedynamic apply(Lcom/oracle/svm/hosted/c/CGlobalDataFeature;Lcom/oracle/svm/core/c/CGlobalDataImpl;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
com/oracle/svm/hosted/c/CGlobalDataFeature.lambda$1(Lcom/oracle/svm/core/c/CGlobalDataImpl;Lcom/oracle/svm/core/c/CGlobalDataImpl;)Lcom/oracle/svm/core/graal/code/CGlobalDataInfo; (7)
(Lcom/oracle/svm/core/c/CGlobalDataImpl;)Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
6: invokeinterface java.util.Map.computeIfAbsent:(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;
checkcast com.oracle.svm.core.graal.code.CGlobalDataInfo
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
0 7 1 obj Lcom/oracle/svm/core/c/CGlobalData<*>;
1 7 2 data Lcom/oracle/svm/core/c/CGlobalDataImpl<*>;
Signature: (Lcom/oracle/svm/core/c/CGlobalData<*>;)Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
MethodParameters:
Name Flags
obj
private java.lang.Object replaceObject(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.oracle.svm.core.c.CGlobalDataImpl
ifeq 2
1: aload 0
aload 1
checkcast com.oracle.svm.core.c.CGlobalData
invokevirtual com.oracle.svm.hosted.c.CGlobalDataFeature.registerAsAccessedOrGet:(Lcom/oracle/svm/core/c/CGlobalData;)Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
pop
2: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
0 3 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
private void layout();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=9, args_size=1
start local 0 0: getstatic com.oracle.svm.hosted.c.CGlobalDataFeature.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual com.oracle.svm.hosted.c.CGlobalDataFeature.isLayouted:()Z
ifeq 1
new java.lang.AssertionError
dup
ldc "Already layouted"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
invokestatic com.oracle.svm.core.config.ConfigurationValues.getTarget:()Lcom/oracle/svm/core/SubstrateTargetDescription;
getfield com.oracle.svm.core.SubstrateTargetDescription.wordSize:I
istore 1
start local 1 2: iconst_0
istore 2
start local 2 3: aload 0
getfield com.oracle.svm.hosted.c.CGlobalDataFeature.map:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 20
StackMap locals: com.oracle.svm.hosted.c.CGlobalDataFeature int int top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 5: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast com.oracle.svm.core.c.CGlobalDataImpl
astore 5
start local 5 6: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast com.oracle.svm.core.graal.code.CGlobalDataInfo
astore 6
start local 6 7: aconst_null
astore 8
start local 8 8: aload 5
getfield com.oracle.svm.core.c.CGlobalDataImpl.bytesSupplier:Ljava/util/function/Supplier;
ifnull 12
9: aload 5
getfield com.oracle.svm.core.c.CGlobalDataImpl.bytesSupplier:Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast byte[]
astore 8
10: aload 8
arraylength
istore 7
start local 7 11: goto 17
end local 7 12: StackMap locals: com.oracle.svm.hosted.c.CGlobalDataFeature int int java.util.Map$Entry java.util.Iterator com.oracle.svm.core.c.CGlobalDataImpl com.oracle.svm.core.graal.code.CGlobalDataInfo top byte[]
StackMap stack:
aload 5
getfield com.oracle.svm.core.c.CGlobalDataImpl.sizeSupplier:Ljava/util/function/IntSupplier;
ifnull 15
13: aload 5
getfield com.oracle.svm.core.c.CGlobalDataImpl.sizeSupplier:Ljava/util/function/IntSupplier;
invokeinterface java.util.function.IntSupplier.getAsInt:()I
istore 7
start local 7 14: goto 17
end local 7 15: StackMap locals:
StackMap stack:
getstatic com.oracle.svm.hosted.c.CGlobalDataFeature.$assertionsDisabled:Z
ifne 16
aload 5
getfield com.oracle.svm.core.c.CGlobalDataImpl.symbolName:Ljava/lang/String;
ifnonnull 16
new java.lang.AssertionError
dup
ldc "CGlobalData without bytes, size, or referenced symbol"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
16: StackMap locals:
StackMap stack:
iload 1
istore 7
start local 7 17: StackMap locals: com.oracle.svm.hosted.c.CGlobalDataFeature int int java.util.Map$Entry java.util.Iterator com.oracle.svm.core.c.CGlobalDataImpl com.oracle.svm.core.graal.code.CGlobalDataInfo int byte[]
StackMap stack:
aload 6
iload 2
aload 8
invokevirtual com.oracle.svm.core.graal.code.CGlobalDataInfo.assign:(I[B)V
18: iload 2
iload 7
iadd
istore 2
19: iload 2
iload 1
iconst_1
isub
iadd
iload 1
iconst_1
isub
iconst_m1
ixor
iand
istore 2
end local 8 end local 7 end local 6 end local 5 end local 3 20: StackMap locals: com.oracle.svm.hosted.c.CGlobalDataFeature int int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
21: aload 0
iload 2
putfield com.oracle.svm.hosted.c.CGlobalDataFeature.totalSize:I
22: getstatic com.oracle.svm.hosted.c.CGlobalDataFeature.$assertionsDisabled:Z
ifne 23
aload 0
invokevirtual com.oracle.svm.hosted.c.CGlobalDataFeature.isLayouted:()Z
ifne 23
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
23: StackMap locals: com.oracle.svm.hosted.c.CGlobalDataFeature int int
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
2 24 1 wordSize I
3 24 2 offset I
5 20 3 entry Ljava/util/Map$Entry<Lcom/oracle/svm/core/c/CGlobalDataImpl<*>;Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;>;
6 20 5 data Lcom/oracle/svm/core/c/CGlobalDataImpl<*>;
7 20 6 info Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
11 12 7 size I
14 15 7 size I
17 20 7 size I
8 20 8 bytes [B
public int getSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic com.oracle.svm.hosted.c.CGlobalDataFeature.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual com.oracle.svm.hosted.c.CGlobalDataFeature.isLayouted:()Z
ifne 1
new java.lang.AssertionError
dup
ldc "Not layouted yet"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.c.CGlobalDataFeature.totalSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
public void writeData(com.oracle.svm.hosted.image.RelocatableBuffer, java.util.function.BiFunction<java.lang.Integer, java.lang.String, ?>, java.util.function.BiFunction<java.lang.Integer, java.lang.String, ?>);
descriptor: (Lcom/oracle/svm/hosted/image/RelocatableBuffer;Ljava/util/function/BiFunction;Ljava/util/function/BiFunction;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic com.oracle.svm.hosted.c.CGlobalDataFeature.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual com.oracle.svm.hosted.c.CGlobalDataFeature.isLayouted:()Z
ifne 1
new java.lang.AssertionError
dup
ldc "Not layouted yet"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual com.oracle.svm.hosted.image.RelocatableBuffer.getByteBuffer:()Ljava/nio/ByteBuffer;
astore 4
start local 4 2: aload 4
invokevirtual java.nio.ByteBuffer.position:()I
istore 5
start local 5 3: getstatic com.oracle.svm.hosted.c.CGlobalDataFeature.$assertionsDisabled:Z
ifne 4
iload 5
iload 5
aload 0
getfield com.oracle.svm.hosted.c.CGlobalDataFeature.totalSize:I
iadd
invokestatic java.util.stream.IntStream.range:(II)Ljava/util/stream/IntStream;
aload 4
invokedynamic test(Ljava/nio/ByteBuffer;)Ljava/util/function/IntPredicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(I)Z
com/oracle/svm/hosted/c/CGlobalDataFeature.lambda$2(Ljava/nio/ByteBuffer;I)Z (6)
(I)Z
invokeinterface java.util.stream.IntStream.allMatch:(Ljava/util/function/IntPredicate;)Z
ifne 4
new java.lang.AssertionError
dup
ldc "Buffer must be zero-initialized"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals: java.nio.ByteBuffer int
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.c.CGlobalDataFeature.map:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
goto 15
StackMap locals: com.oracle.svm.hosted.c.CGlobalDataFeature com.oracle.svm.hosted.image.RelocatableBuffer java.util.function.BiFunction java.util.function.BiFunction java.nio.ByteBuffer int top java.util.Iterator
StackMap stack:
5: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.svm.core.graal.code.CGlobalDataInfo
astore 6
start local 6 6: aload 6
invokevirtual com.oracle.svm.core.graal.code.CGlobalDataInfo.getBytes:()[B
astore 8
start local 8 7: aload 8
ifnull 10
8: aload 4
invokestatic org.graalvm.compiler.serviceprovider.BufferUtil.asBaseBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
iload 5
aload 6
invokevirtual com.oracle.svm.core.graal.code.CGlobalDataInfo.getOffset:()I
iadd
invokevirtual java.nio.Buffer.position:(I)Ljava/nio/Buffer;
pop
9: aload 4
aload 8
iconst_0
aload 8
arraylength
invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
pop
10: StackMap locals: com.oracle.svm.hosted.c.CGlobalDataFeature com.oracle.svm.hosted.image.RelocatableBuffer java.util.function.BiFunction java.util.function.BiFunction java.nio.ByteBuffer int com.oracle.svm.core.graal.code.CGlobalDataInfo java.util.Iterator byte[]
StackMap stack:
aload 6
invokevirtual com.oracle.svm.core.graal.code.CGlobalDataInfo.getData:()Lcom/oracle/svm/core/c/CGlobalDataImpl;
astore 9
start local 9 11: aload 9
getfield com.oracle.svm.core.c.CGlobalDataImpl.symbolName:Ljava/lang/String;
ifnull 13
aload 6
invokevirtual com.oracle.svm.core.graal.code.CGlobalDataInfo.isSymbolReference:()Z
ifne 13
12: aload 2
aload 6
invokevirtual com.oracle.svm.core.graal.code.CGlobalDataInfo.getOffset:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 9
getfield com.oracle.svm.core.c.CGlobalDataImpl.symbolName:Ljava/lang/String;
invokeinterface java.util.function.BiFunction.apply:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: StackMap locals: com.oracle.svm.core.c.CGlobalDataImpl
StackMap stack:
aload 9
getfield com.oracle.svm.core.c.CGlobalDataImpl.nonConstant:Z
ifeq 15
14: aload 3
aload 6
invokevirtual com.oracle.svm.core.graal.code.CGlobalDataInfo.getOffset:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 9
getfield com.oracle.svm.core.c.CGlobalDataImpl.symbolName:Ljava/lang/String;
invokeinterface java.util.function.BiFunction.apply:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 9 end local 8 end local 6 15: StackMap locals: com.oracle.svm.hosted.c.CGlobalDataFeature com.oracle.svm.hosted.image.RelocatableBuffer java.util.function.BiFunction java.util.function.BiFunction java.nio.ByteBuffer int top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
16: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
0 17 1 buffer Lcom/oracle/svm/hosted/image/RelocatableBuffer;
0 17 2 createSymbol Ljava/util/function/BiFunction<Ljava/lang/Integer;Ljava/lang/String;*>;
0 17 3 createSymbolReference Ljava/util/function/BiFunction<Ljava/lang/Integer;Ljava/lang/String;*>;
2 17 4 bufferBytes Ljava/nio/ByteBuffer;
3 17 5 start I
6 15 6 info Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
7 15 8 bytes [B
11 15 9 data Lcom/oracle/svm/core/c/CGlobalDataImpl<*>;
Signature: (Lcom/oracle/svm/hosted/image/RelocatableBuffer;Ljava/util/function/BiFunction<Ljava/lang/Integer;Ljava/lang/String;*>;Ljava/util/function/BiFunction<Ljava/lang/Integer;Ljava/lang/String;*>;)V
MethodParameters:
Name Flags
buffer
createSymbol
createSymbolReference
private com.oracle.svm.core.graal.code.CGlobalDataInfo lambda$1(com.oracle.svm.core.c.CGlobalDataImpl, com.oracle.svm.core.c.CGlobalDataImpl);
descriptor: (Lcom/oracle/svm/core/c/CGlobalDataImpl;Lcom/oracle/svm/core/c/CGlobalDataImpl;)Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 2 0: new com.oracle.svm.core.graal.code.CGlobalDataInfo
dup
aload 1
invokespecial com.oracle.svm.core.graal.code.CGlobalDataInfo.<init>:(Lcom/oracle/svm/core/c/CGlobalDataImpl;)V
astore 3
start local 3 1: aload 1
getfield com.oracle.svm.core.c.CGlobalDataImpl.nonConstant:Z
ifeq 3
2: aload 0
getfield com.oracle.svm.hosted.c.CGlobalDataFeature.nonConstantRegistry:Lcom/oracle/svm/core/c/CGlobalDataNonConstantRegistry;
aload 3
invokevirtual com.oracle.svm.core.c.CGlobalDataNonConstantRegistry.registerNonConstantSymbol:(Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;)V
3: StackMap locals: com.oracle.svm.core.graal.code.CGlobalDataInfo
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/svm/hosted/c/CGlobalDataFeature;
0 4 2 o Lcom/oracle/svm/core/c/CGlobalDataImpl<*>;
1 4 3 cGlobalDataInfo Lcom/oracle/svm/core/graal/code/CGlobalDataInfo;
private static boolean lambda$2(java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;I)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
iload 1
invokevirtual java.nio.ByteBuffer.get:(I)B
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 i I
}
SourceFile: "CGlobalDataFeature.java"
NestMembers:
com.oracle.svm.hosted.c.CGlobalDataFeature$1
InnerClasses:
com.oracle.svm.hosted.c.CGlobalDataFeature$1
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
public abstract Receiver = org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugin$Receiver of org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugin
public Registration = org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration of org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins
public abstract AfterHeapLayoutAccess = org.graalvm.nativeimage.hosted.Feature$AfterHeapLayoutAccess of org.graalvm.nativeimage.hosted.Feature
public abstract DuringSetupAccess = org.graalvm.nativeimage.hosted.Feature$DuringSetupAccess of org.graalvm.nativeimage.hosted.Feature
RuntimeVisibleAnnotations:
com.oracle.svm.core.annotate.AutomaticFeature()