public class org.graalvm.compiler.core.test.ReferenceGetLoopTest 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.ReferenceGetLoopTest
super_class: org.graalvm.compiler.core.test.GraalCompilerTest
{
public volatile java.lang.Object referent;
descriptor: Ljava/lang/Object;
flags: (0x0041) ACC_PUBLIC, ACC_VOLATILE
public final org.graalvm.compiler.core.test.ReferenceGetLoopTest$FinalWeakReference<java.lang.Object> ref;
descriptor: Lorg/graalvm/compiler/core/test/ReferenceGetLoopTest$FinalWeakReference;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Lorg/graalvm/compiler/core/test/ReferenceGetLoopTest$FinalWeakReference<Ljava/lang/Object;>;
public final java.lang.ref.ReferenceQueue<java.lang.Object> refQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Ljava/lang/ref/ReferenceQueue<Ljava/lang/Object;>;
protected boolean checkMidTierGraph(org.graalvm.compiler.nodes.StructuredGraph);
descriptor: (Lorg/graalvm/compiler/nodes/StructuredGraph;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=11, args_size=2
start local 0 start local 1 0: new org.graalvm.compiler.loop.LoopsData
dup
aload 1
invokespecial org.graalvm.compiler.loop.LoopsData.<init>:(Lorg/graalvm/compiler/nodes/StructuredGraph;)V
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: aload 2
invokevirtual org.graalvm.compiler.loop.LoopsData.loops:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 14
StackMap locals: org.graalvm.compiler.core.test.ReferenceGetLoopTest org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.loop.LoopsData int top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.loop.LoopEx
astore 4
start local 4 4: aload 4
invokevirtual org.graalvm.compiler.loop.LoopEx.inside:()Lorg/graalvm/compiler/loop/LoopFragmentInside;
invokevirtual org.graalvm.compiler.loop.LoopFragmentInside.nodes:()Lorg/graalvm/compiler/graph/NodeBitMap;
invokevirtual org.graalvm.compiler.graph.NodeBitMap.iterator:()Ljava/util/Iterator;
astore 7
goto 13
StackMap locals: org.graalvm.compiler.core.test.ReferenceGetLoopTest org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.loop.LoopsData int org.graalvm.compiler.loop.LoopEx java.util.Iterator top java.util.Iterator
StackMap stack:
5: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.graalvm.compiler.graph.Node
astore 6
start local 6 6: aload 6
instanceof org.graalvm.compiler.nodes.memory.Access
ifeq 13
7: aload 6
checkcast org.graalvm.compiler.nodes.memory.Access
astore 8
start local 8 8: aload 8
invokeinterface org.graalvm.compiler.nodes.memory.Access.getLocationIdentity:()Lorg/graalvm/word/LocationIdentity;
astore 9
start local 9 9: aload 9
instanceof org.graalvm.compiler.nodes.FieldLocationIdentity
ifeq 13
10: aload 9
checkcast org.graalvm.compiler.nodes.FieldLocationIdentity
invokevirtual org.graalvm.compiler.nodes.FieldLocationIdentity.getField:()Ljdk/vm/ci/meta/ResolvedJavaField;
astore 10
start local 10 11: aload 10
invokeinterface jdk.vm.ci.meta.ResolvedJavaField.getName:()Ljava/lang/String;
ldc "referent"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
aload 10
invokeinterface jdk.vm.ci.meta.ResolvedJavaField.getDeclaringClass:()Ljdk/vm/ci/meta/ResolvedJavaType;
aload 0
invokevirtual org.graalvm.compiler.core.test.ReferenceGetLoopTest.getMetaAccess:()Ljdk/vm/ci/meta/MetaAccessProvider;
ldc Ljava/lang/ref/Reference;
invokeinterface jdk.vm.ci.meta.MetaAccessProvider.lookupJavaType:(Ljava/lang/Class;)Ljdk/vm/ci/meta/ResolvedJavaType;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 13
12: iconst_1
istore 3
end local 10 end local 9 end local 8 end local 6 13: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 4 14: StackMap locals: org.graalvm.compiler.core.test.ReferenceGetLoopTest org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.loop.LoopsData int top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
15: iload 3
ifne 17
16: iconst_0
new java.lang.StringBuilder
dup
ldc "Reference.referent not found in loop: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
iconst_1
iconst_0
invokestatic org.graalvm.compiler.core.test.ReferenceGetLoopTest.getCanonicalGraphString:(Lorg/graalvm/compiler/nodes/StructuredGraph;ZZ)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic org.graalvm.compiler.core.test.ReferenceGetLoopTest.assertTrue:(ZLjava/lang/String;[Ljava/lang/Object;)V
17: StackMap locals: org.graalvm.compiler.core.test.ReferenceGetLoopTest org.graalvm.compiler.nodes.StructuredGraph org.graalvm.compiler.loop.LoopsData int
StackMap stack:
iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/graalvm/compiler/core/test/ReferenceGetLoopTest;
0 18 1 graph Lorg/graalvm/compiler/nodes/StructuredGraph;
1 18 2 loops Lorg/graalvm/compiler/loop/LoopsData;
2 18 3 found Z
4 14 4 loop Lorg/graalvm/compiler/loop/LoopEx;
6 13 6 node Lorg/graalvm/compiler/graph/Node;
8 13 8 access Lorg/graalvm/compiler/nodes/memory/Access;
9 13 9 location Lorg/graalvm/word/LocationIdentity;
11 13 10 field Ljdk/vm/ci/meta/ResolvedJavaField;
MethodParameters:
Name Flags
graph
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.graalvm.compiler.core.test.ReferenceGetLoopTest.referent:Ljava/lang/Object;
2: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield org.graalvm.compiler.core.test.ReferenceGetLoopTest.refQueue:Ljava/lang/ref/ReferenceQueue;
3: aload 0
new org.graalvm.compiler.core.test.ReferenceGetLoopTest$FinalWeakReference
dup
aload 0
getfield org.graalvm.compiler.core.test.ReferenceGetLoopTest.referent:Ljava/lang/Object;
aload 0
getfield org.graalvm.compiler.core.test.ReferenceGetLoopTest.refQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial org.graalvm.compiler.core.test.ReferenceGetLoopTest$FinalWeakReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
putfield org.graalvm.compiler.core.test.ReferenceGetLoopTest.ref:Lorg/graalvm/compiler/core/test/ReferenceGetLoopTest$FinalWeakReference;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/core/test/ReferenceGetLoopTest;
public void test();
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/ReferenceGetLoopTest;
RuntimeInvisibleAnnotations:
Test()
public void testSnippet();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.core.test.ReferenceGetLoopTest.ref:Lorg/graalvm/compiler/core/test/ReferenceGetLoopTest$FinalWeakReference;
invokevirtual org.graalvm.compiler.core.test.ReferenceGetLoopTest$FinalWeakReference.get:()Ljava/lang/Object;
ifnonnull 0
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/core/test/ReferenceGetLoopTest;
}
SourceFile: "ReferenceGetLoopTest.java"
NestMembers:
org.graalvm.compiler.core.test.ReferenceGetLoopTest$FinalWeakReference
InnerClasses:
public final FinalWeakReference = org.graalvm.compiler.core.test.ReferenceGetLoopTest$FinalWeakReference of org.graalvm.compiler.core.test.ReferenceGetLoopTest