public class org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest extends org.graalvm.compiler.hotspot.test.HotSpotGraalCompilerTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest
super_class: org.graalvm.compiler.hotspot.test.HotSpotGraalCompilerTest
{
private final org.graalvm.compiler.hotspot.GraalHotSpotVMConfig config;
descriptor: Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static java.lang.ref.WeakReference<java.lang.Object> wr;
descriptor: Ljava/lang/ref/WeakReference;
flags: (0x0008) ACC_STATIC
Signature: Ljava/lang/ref/WeakReference<Ljava/lang/Object;>;
static org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container con;
descriptor: Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
flags: (0x0008) ACC_STATIC
static java.lang.Object[] src;
descriptor: [Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
static java.lang.Object[] dst;
descriptor: [Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: new java.lang.ref.WeakReference
dup
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
putstatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.wr:Ljava/lang/ref/WeakReference;
1: new org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container
dup
invokespecial org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.<init>:()V
putstatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.con:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
2: iconst_1
anewarray java.lang.Object
putstatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.src:[Ljava/lang/Object;
3: iconst_1
anewarray java.lang.Object
putstatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.dst:[Ljava/lang/Object;
4: iconst_0
istore 0
start local 0 5: goto 8
6: StackMap locals: int
StackMap stack:
getstatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.src:[Ljava/lang/Object;
iload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
aastore
7: iinc 0 1
StackMap locals:
StackMap stack:
8: iload 0
getstatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.src:[Ljava/lang/Object;
arraylength
if_icmplt 6
end local 0 9: iconst_0
istore 0
start local 0 10: goto 13
11: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.dst:[Ljava/lang/Object;
iload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
aastore
12: iinc 0 1
StackMap locals:
StackMap stack:
13: iload 0
getstatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.dst:[Ljava/lang/Object;
arraylength
if_icmplt 11
end local 0 14: return
LocalVariableTable:
Start End Slot Name Signature
5 9 0 i I
10 14 0 i I
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.hotspot.test.HotSpotGraalCompilerTest.<init>:()V
1: aload 0
aload 0
invokevirtual org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.runtime:()Lorg/graalvm/compiler/hotspot/HotSpotGraalRuntimeProvider;
invokeinterface org.graalvm.compiler.hotspot.HotSpotGraalRuntimeProvider.getVMConfig:()Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.config:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
public void test1();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static void test1Snippet();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=0
0: new org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container
dup
invokespecial org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.<init>:()V
astore 0
start local 0 1: new org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container
dup
invokespecial org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.<init>:()V
astore 1
start local 1 2: new org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container
dup
invokespecial org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.<init>:()V
astore 2
start local 2 3: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.a:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
4: aload 0
aload 2
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.b:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 6 0 main Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
2 6 1 temp1 Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
3 6 2 temp2 Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
public void test2();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static void test2Snippet(boolean);
descriptor: (Z)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: new org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container
dup
invokespecial org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.<init>:()V
astore 1
start local 1 1: new org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container
dup
invokespecial org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.<init>:()V
astore 2
start local 2 2: new org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container
dup
invokespecial org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.<init>:()V
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 12
5: StackMap locals: int org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container int
StackMap stack:
iload 0
ifeq 9
6: aload 1
aload 2
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.a:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
7: aload 1
aload 3
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.b:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
8: goto 11
9: StackMap locals:
StackMap stack:
aload 1
aload 3
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.a:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
10: aload 1
aload 2
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.b:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
11: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
12: iload 4
bipush 10
if_icmplt 5
end local 4 13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 test Z
1 14 1 main Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
2 14 2 temp1 Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
3 14 3 temp2 Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
4 13 4 i I
MethodParameters:
Name Flags
test
public void test3();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static void test3Snippet();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=0
0: bipush 10
anewarray org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container
astore 0
start local 0 1: new org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container
dup
invokespecial org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.<init>:()V
astore 1
start local 1 2: new org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container
dup
invokespecial org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.<init>:()V
astore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 7
5: StackMap locals: org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container[] org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container int
StackMap stack:
aload 0
iload 3
aaload
aload 0
iload 3
aaload
aload 1
dup_x1
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.b:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.a:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
bipush 10
if_icmplt 5
end local 3 8: iconst_0
istore 3
start local 3 9: goto 12
10: StackMap locals:
StackMap stack:
aload 0
iload 3
aaload
aload 0
iload 3
aaload
aload 2
dup_x1
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.b:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container.a:Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
11: iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
bipush 10
if_icmplt 10
end local 3 13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 14 0 main [Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
2 14 1 temp1 Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
3 14 2 temp2 Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$Container;
4 8 3 i I
9 13 3 i I
public void test4();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static java.lang.Object test4Snippet();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: new java.lang.ref.WeakReference
dup
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
astore 0
start local 0 1: aload 0
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 2 0 weakRef Ljava/lang/ref/WeakReference<Ljava/lang/Object;>;
public void test5();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
protected void registerInvocationPlugins(org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins);
descriptor: (Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tPluginFactory_WriteBarrierAdditionTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
MethodParameters:
Name Flags
invocationPlugins
public static boolean useCompressedOops(org.graalvm.compiler.hotspot.GraalHotSpotVMConfig);
descriptor: (Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.hotspot.GraalHotSpotVMConfig.useCompressedOops:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 config Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
RuntimeVisibleAnnotations:
org.graalvm.compiler.api.replacements.Fold()
RuntimeVisibleParameterAnnotations:
0:
org.graalvm.compiler.api.replacements.Fold$InjectedParameter()
MethodParameters:
Name Flags
config
public static java.lang.Object test5Snippet();
descriptor: ()Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: getstatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.wr:Ljava/lang/ref/WeakReference;
getstatic org.graalvm.compiler.hotspot.GraalHotSpotVMConfigBase.INJECTED_VMCONFIG:Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;
invokestatic org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.useCompressedOops:(Lorg/graalvm/compiler/hotspot/GraalHotSpotVMConfig;)Z
ifeq 1
ldc 12
goto 2
StackMap locals:
StackMap stack: sun.misc.Unsafe java.lang.ref.WeakReference
1: ldc 16
StackMap locals:
StackMap stack: sun.misc.Unsafe java.lang.ref.WeakReference long
2: invokevirtual sun.misc.Unsafe.getObject:(Ljava/lang/Object;J)Ljava/lang/Object;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
public void test6();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public void test7();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public void test8();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public void test10();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public void test9();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static void testArrayCopy(java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_0
aload 1
iconst_0
aload 2
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 a Ljava/lang/Object;
0 2 1 b Ljava/lang/Object;
0 2 2 c Ljava/lang/Object;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
a
b
c
public void test11();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static void testWordFieldSnippet();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: new org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$WordContainer
dup
invokespecial org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$WordContainer.<init>:()V
astore 0
start local 0 1: aload 0
bipush 42
invokestatic jdk.internal.vm.compiler.word.WordFactory.signed:(I)Ljdk/internal/vm/compiler/word/SignedWord;
checkcast org.graalvm.compiler.word.Word
putfield org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$WordContainer.word:Lorg/graalvm/compiler/word/Word;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 wordContainer Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest$WordContainer;
public void testWordField();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static org.graalvm.compiler.word.Word[] testWordArraySnippet(int);
descriptor: (I)[Lorg/graalvm/compiler/word/Word;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: bipush 42
invokestatic jdk.internal.vm.compiler.word.WordFactory.signed:(I)Ljdk/internal/vm/compiler/word/SignedWord;
checkcast org.graalvm.compiler.word.Word
astore 1
start local 1 1: iload 0
anewarray org.graalvm.compiler.word.Word
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 6
4: StackMap locals: org.graalvm.compiler.word.Word org.graalvm.compiler.word.Word[] int
StackMap stack:
aload 2
iload 3
aload 1
aastore
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 0
if_icmplt 4
end local 3 7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 length I
1 8 1 fortyTwo Lorg/graalvm/compiler/word/Word;
2 8 2 words [Lorg/graalvm/compiler/word/Word;
3 7 3 i I
MethodParameters:
Name Flags
length
public void testWordArray();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tTest cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception
RuntimeInvisibleAnnotations:
Test()
public static java.lang.Object testUnsafeLoad(sun.misc.Unsafe, java.lang.Object, java.lang.Object, java.lang.Object);
descriptor: (Lsun/misc/Unsafe;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnonnull 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 3
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
StackMap locals:
StackMap stack: int
2: istore 4
start local 4 3: aload 2
ifnonnull 4
lconst_0
goto 5
StackMap locals: int
StackMap stack:
4: aload 2
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
StackMap locals:
StackMap stack: long
5: lstore 5
start local 5 6: aload 0
aload 1
iload 4
i2l
lload 5
ladd
invokevirtual sun.misc.Unsafe.getObject:(Ljava/lang/Object;J)Ljava/lang/Object;
areturn
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 7 0 theUnsafe Lsun/misc/Unsafe;
0 7 1 a Ljava/lang/Object;
0 7 2 b Ljava/lang/Object;
0 7 3 c Ljava/lang/Object;
3 7 4 offset I
6 7 5 displacement J
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
theUnsafe
a
b
c
private jdk.vm.ci.hotspot.HotSpotInstalledCode getInstalledCode(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Ljdk/vm/ci/hotspot/HotSpotInstalledCode;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifeq 1
aload 0
ldc Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
aload 1
iconst_4
anewarray java.lang.Class
dup
iconst_0
ldc Lsun/misc/Unsafe;
aastore
dup
iconst_1
ldc Ljava/lang/Object;
aastore
dup
iconst_2
ldc Ljava/lang/Object;
aastore
dup
iconst_3
ldc Ljava/lang/Object;
aastore
invokevirtual org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.getResolvedJavaMethod:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
goto 2
1: StackMap locals:
StackMap stack:
aload 0
ldc Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
aload 1
iconst_3
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Object;
aastore
dup
iconst_1
ldc Ljava/lang/Object;
aastore
dup
iconst_2
ldc Ljava/lang/Object;
aastore
invokevirtual org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.getResolvedJavaMethod:(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
2: StackMap locals:
StackMap stack: jdk.vm.ci.meta.ResolvedJavaMethod
astore 3
start local 3 3: aload 0
aload 3
invokevirtual org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.getCode:(Ljdk/vm/ci/meta/ResolvedJavaMethod;)Ljdk/vm/ci/code/InstalledCode;
checkcast jdk.vm.ci.hotspot.HotSpotInstalledCode
astore 4
start local 4 4: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
0 5 1 name Ljava/lang/String;
0 5 2 withUnsafePrefix Z
3 5 3 javaMethod Ljdk/vm/ci/meta/ResolvedJavaMethod;
4 5 4 installedCode Ljdk/vm/ci/hotspot/HotSpotInstalledCode;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
name
withUnsafePrefix
private void testHelper(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problems: \n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n\tAssert cannot be resolved\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
Exceptions:
throws java.lang.Exception, java.lang.SecurityException
MethodParameters:
Name Flags
snippetName final
expectedBarriers final
private void test2(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
aaload
instanceof sun.misc.Unsafe
invokevirtual org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest.getInstalledCode:(Ljava/lang/String;Z)Ljdk/vm/ci/hotspot/HotSpotInstalledCode;
astore 3
start local 3 1: aload 3
aload 2
invokevirtual jdk.vm.ci.hotspot.HotSpotInstalledCode.executeVarargs:([Ljava/lang/Object;)Ljava/lang/Object;
pop
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/hotspot/test/WriteBarrierAdditionTest;
0 3 1 snippet Ljava/lang/String;
0 3 2 args [Ljava/lang/Object;
1 3 3 code Ljdk/vm/ci/hotspot/HotSpotInstalledCode;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
snippet final
args
}
SourceFile: "WriteBarrierAdditionTest.java"
NestMembers:
org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$WordContainer
InnerClasses:
public abstract InjectedParameter = org.graalvm.compiler.api.replacements.Fold$InjectedParameter of org.graalvm.compiler.api.replacements.Fold
public Container = org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$Container of org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest
public WordContainer = org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest$WordContainer of org.graalvm.compiler.hotspot.test.WriteBarrierAdditionTest