public class org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest extends org.graalvm.compiler.core.test.GraalCompilerTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
private static int field;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.lang.Thread thread;
descriptor: Ljava/lang/Thread;
flags: (0x0002) ACC_PRIVATE
private static long[] array;
descriptor: [J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static int arrayBaseOffset;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: iconst_1
newarray 11
putstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.array:[J
1: getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
ldc [J
invokevirtual sun.misc.Unsafe.arrayBaseOffset:(Ljava/lang/Class;)I
putstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.arrayBaseOffset:I
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/core/test/VolatileAccessReadEliminationTest;
public static int testMethod1();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=0
0: getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.field:I
istore 0
start local 0 1: getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.array:[J
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.arrayBaseOffset:I
i2l
lconst_1
invokevirtual sun.misc.Unsafe.putLongVolatile:(Ljava/lang/Object;JJ)V
2: StackMap locals: int
StackMap stack:
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.array:[J
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.arrayBaseOffset:I
i2l
invokevirtual sun.misc.Unsafe.getLongVolatile:(Ljava/lang/Object;J)J
ldc 2
lcmp
ifne 2
3: iload 0
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.field:I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 v I
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/core/test/VolatileAccessReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
protected void before(jdk.vm.ci.meta.ResolvedJavaMethod);
descriptor: (Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
putstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.field:I
1: getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.array:[J
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.arrayBaseOffset:I
i2l
lconst_0
invokevirtual sun.misc.Unsafe.putLongVolatile:(Ljava/lang/Object;JJ)V
2: aload 0
new org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest$1
dup
aload 0
invokespecial org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest$1.<init>:(Lorg/graalvm/compiler/core/test/VolatileAccessReadEliminationTest;)V
putfield org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.thread:Ljava/lang/Thread;
3: aload 0
getfield org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/core/test/VolatileAccessReadEliminationTest;
0 5 1 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
MethodParameters:
Name Flags
method
protected void after();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.join:()V
1: goto 3
StackMap locals:
StackMap stack: java.lang.InterruptedException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/test/VolatileAccessReadEliminationTest;
Exception table:
from to target type
0 1 2 Class java.lang.InterruptedException
public static int testMethod2(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.field:I
istore 1
start local 1 1: getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.array:[J
iload 0
i2l
invokevirtual sun.misc.Unsafe.getLongVolatile:(Ljava/lang/Object;J)J
lstore 2
start local 2 2: iload 1
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.field:I
iadd
lload 2
l2i
iadd
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 offset I
1 3 1 v I
2 3 2 v2 J
MethodParameters:
Name Flags
offset
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 problems: \n\tTest cannot be resolved to a type\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/core/test/VolatileAccessReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
public static int testMethod3(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.field:I
istore 1
start local 1 1: getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.UNSAFE:Lsun/misc/Unsafe;
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.array:[J
iload 0
i2l
ldc 66
invokevirtual sun.misc.Unsafe.putLongVolatile:(Ljava/lang/Object;JJ)V
2: iload 1
getstatic org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest.field:I
iadd
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 offset I
1 3 1 v I
MethodParameters:
Name Flags
offset
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 problems: \n\tTest cannot be resolved to a type\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/core/test/VolatileAccessReadEliminationTest;
RuntimeInvisibleAnnotations:
Test()
private static int getFieldReads(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.nodes.StructuredGraph.getNodes:()Lorg/graalvm/compiler/graph/iterators/NodeIterable;
invokedynamic apply()Lorg/graalvm/compiler/graph/iterators/NodePredicate;
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:
(Lorg/graalvm/compiler/graph/Node;)Z
org/graalvm/compiler/core/test/VolatileAccessReadEliminationTest.lambda$0(Lorg/graalvm/compiler/graph/Node;)Z (6)
(Lorg/graalvm/compiler/graph/Node;)Z
invokeinterface org.graalvm.compiler.graph.iterators.NodeIterable.filter:(Lorg/graalvm/compiler/graph/iterators/NodePredicate;)Lorg/graalvm/compiler/graph/iterators/FilteredNodeIterable;
invokedynamic apply()Lorg/graalvm/compiler/graph/iterators/NodePredicate;
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:
(Lorg/graalvm/compiler/graph/Node;)Z
org/graalvm/compiler/core/test/VolatileAccessReadEliminationTest.lambda$1(Lorg/graalvm/compiler/graph/Node;)Z (6)
(Lorg/graalvm/compiler/graph/Node;)Z
invokevirtual org.graalvm.compiler.graph.iterators.FilteredNodeIterable.filter:(Lorg/graalvm/compiler/graph/iterators/NodePredicate;)Lorg/graalvm/compiler/graph/iterators/FilteredNodeIterable;
1: invokevirtual org.graalvm.compiler.graph.iterators.FilteredNodeIterable.count:()I
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
MethodParameters:
Name Flags
graph
private static boolean lambda$0(org.graalvm.compiler.graph.Node);
descriptor: (Lorg/graalvm/compiler/graph/Node;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.graalvm.compiler.nodes.memory.ReadNode
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 n Lorg/graalvm/compiler/graph/Node;
private static boolean lambda$1(org.graalvm.compiler.graph.Node);
descriptor: (Lorg/graalvm/compiler/graph/Node;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
checkcast org.graalvm.compiler.nodes.memory.ReadNode
getstatic org.graalvm.compiler.nodes.NodeView.DEFAULT:Lorg/graalvm/compiler/nodes/NodeView;
invokevirtual org.graalvm.compiler.nodes.memory.ReadNode.stamp:(Lorg/graalvm/compiler/nodes/NodeView;)Lorg/graalvm/compiler/core/common/type/Stamp;
astore 1
start local 1 1: aload 1
instanceof org.graalvm.compiler.core.common.type.IntegerStamp
ifeq 2
aload 1
checkcast org.graalvm.compiler.core.common.type.IntegerStamp
invokevirtual org.graalvm.compiler.core.common.type.IntegerStamp.getBits:()I
bipush 32
if_icmpne 2
iconst_1
ireturn
StackMap locals: org.graalvm.compiler.core.common.type.Stamp
StackMap stack:
2: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 n Lorg/graalvm/compiler/graph/Node;
1 3 1 stamp Lorg/graalvm/compiler/core/common/type/Stamp;
}
SourceFile: "VolatileAccessReadEliminationTest.java"
NestMembers:
org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest$1
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
org.graalvm.compiler.core.test.VolatileAccessReadEliminationTest$1