public class org.graalvm.compiler.replacements.test.PointerTrackingTest extends org.graalvm.compiler.replacements.test.ReplacementsTest implements org.graalvm.compiler.replacements.Snippets
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.replacements.test.PointerTrackingTest
super_class: org.graalvm.compiler.replacements.test.ReplacementsTest
{
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.replacements.test.ReplacementsTest.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/replacements/test/PointerTrackingTest;
public void testTracking();
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/replacements/test/PointerTrackingTest;
RuntimeInvisibleAnnotations:
Test()
public static java.lang.String trackingSnippet(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=10, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.compiler.replacements.test.PointerTrackingTest.getTrackedPointer:(Ljava/lang/Object;)J
lstore 1
start local 1 1: aload 0
invokestatic org.graalvm.compiler.replacements.test.PointerTrackingTest.getUntrackedPointer:(Ljava/lang/Object;)J
lstore 3
start local 3 2: iconst_0
istore 5
start local 5 3: goto 7
4: StackMap locals: long long int
StackMap stack:
invokestatic java.lang.System.gc:()V
5: iload 5
iinc 5 1
bipush 100
if_icmple 7
6: ldc "Timeout! Object didn't move after 100 GCs."
areturn
7: StackMap locals:
StackMap stack:
lload 3
aload 0
invokestatic org.graalvm.compiler.replacements.test.PointerTrackingTest.getTrackedPointer:(Ljava/lang/Object;)J
lcmp
ifeq 4
8: aload 0
invokestatic org.graalvm.compiler.replacements.test.PointerTrackingTest.getTrackedPointer:(Ljava/lang/Object;)J
lstore 6
start local 6 9: aload 0
invokestatic org.graalvm.compiler.replacements.test.PointerTrackingTest.getUntrackedPointer:(Ljava/lang/Object;)J
lstore 8
start local 8 10: lload 3
lload 8
lcmp
ifne 12
11: ldc "untrackedBeforeGC == untrackedAfterGC"
areturn
12: StackMap locals: long long
StackMap stack:
lload 1
lload 6
lcmp
ifeq 14
13: ldc "trackedBeforeGC != trackedAfterGC"
areturn
14: StackMap locals:
StackMap stack:
ldc "OK"
areturn
end local 8 end local 6 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 obj Ljava/lang/Object;
1 15 1 trackedBeforeGC J
2 15 3 untrackedBeforeGC J
3 15 5 i I
9 15 6 trackedAfterGC J
10 15 8 untrackedAfterGC J
MethodParameters:
Name Flags
obj
public void testVerification();
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/replacements/test/PointerTrackingTest;
RuntimeInvisibleAnnotations:
Test()
public static long verificationSnippet(java.lang.Object);
descriptor: (Ljava/lang/Object;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.compiler.replacements.test.PointerTrackingTest.getTrackedPointer:(Ljava/lang/Object;)J
ldc 7
lmul
ldc 3
ladd
lstore 1
start local 1 1: lload 1
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.blackhole:(J)V
2: invokestatic java.lang.System.gc:()V
3: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 obj Ljava/lang/Object;
1 4 1 value J
MethodParameters:
Name Flags
obj
static long getTrackedPointer(java.lang.Object);
descriptor: (Ljava/lang/Object;)J
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "should be intrinsified"
invokestatic org.graalvm.compiler.debug.GraalError.shouldNotReachHere:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
static long getUntrackedPointer(java.lang.Object);
descriptor: (Ljava/lang/Object;)J
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "should be intrinsified"
invokestatic org.graalvm.compiler.debug.GraalError.shouldNotReachHere:(Ljava/lang/String;)Ljava/lang/RuntimeException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
static long getTrackedPointerIntrinsic(java.lang.Object);
descriptor: (Ljava/lang/Object;)J
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.compiler.word.Word.objectToTrackedPointer:(Ljava/lang/Object;)Lorg/graalvm/compiler/word/Word;
invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
static long getUntrackedPointerIntrinsic(java.lang.Object);
descriptor: (Ljava/lang/Object;)J
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.compiler.word.Word.objectToUntrackedPointer:(Ljava/lang/Object;)Lorg/graalvm/compiler/word/Word;
invokevirtual org.graalvm.compiler.word.Word.rawValue:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
private void register(org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration, java.lang.String);
descriptor: (Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins$Registration;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "Intrinsic"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.graalvm.compiler.replacements.test.PointerTrackingTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 3
start local 3 1: aload 0
invokevirtual org.graalvm.compiler.replacements.test.PointerTrackingTest.getSystemClassLoaderBytecodeProvider:()Lorg/graalvm/compiler/replacements/classfile/ClassfileBytecodeProvider;
astore 4
start local 4 2: aload 1
aload 2
ldc Ljava/lang/Object;
new org.graalvm.compiler.replacements.test.PointerTrackingTest$1
dup
aload 0
aload 4
aload 3
invokespecial org.graalvm.compiler.replacements.test.PointerTrackingTest$1.<init>:(Lorg/graalvm/compiler/replacements/test/PointerTrackingTest;Lorg/graalvm/compiler/bytecode/BytecodeProvider;Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
invokevirtual org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration.register1:(Ljava/lang/String;Ljava/lang/reflect/Type;Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugin;)V
3: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/replacements/test/PointerTrackingTest;
0 4 1 r Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins$Registration;
0 4 2 fnName Ljava/lang/String;
1 4 3 intrinsic Ljdk/vm/ci/meta/ResolvedJavaMethod;
2 4 4 bytecodeProvider Lorg/graalvm/compiler/bytecode/BytecodeProvider;
MethodParameters:
Name Flags
r
fnName
protected void registerInvocationPlugins(org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins);
descriptor: (Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration
dup
aload 1
ldc Lorg/graalvm/compiler/replacements/test/PointerTrackingTest;
invokespecial org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration.<init>:(Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;Ljava/lang/reflect/Type;)V
astore 2
start local 2 1: aload 0
aload 2
ldc "getTrackedPointer"
invokevirtual org.graalvm.compiler.replacements.test.PointerTrackingTest.register:(Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins$Registration;Ljava/lang/String;)V
2: aload 0
aload 2
ldc "getUntrackedPointer"
invokevirtual org.graalvm.compiler.replacements.test.PointerTrackingTest.register:(Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins$Registration;Ljava/lang/String;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/replacements/test/PointerTrackingTest;
0 4 1 invocationPlugins Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;
1 4 2 r Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins$Registration;
MethodParameters:
Name Flags
invocationPlugins
}
SourceFile: "PointerTrackingTest.java"
NestMembers:
org.graalvm.compiler.replacements.test.PointerTrackingTest$1
InnerClasses:
public Registration = org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration of org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins
org.graalvm.compiler.replacements.test.PointerTrackingTest$1