public class org.graalvm.compiler.replacements.test.PointerTrackingTest extends org.graalvm.compiler.core.test.GraalCompilerTest 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.core.test.GraalCompilerTest
{
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/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/Pointer;
invokeinterface org.graalvm.compiler.word.Pointer.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/Pointer;
invokeinterface org.graalvm.compiler.word.Pointer.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=7, locals=4, 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 1
aload 2
ldc Ljava/lang/Object;
new org.graalvm.compiler.replacements.test.PointerTrackingTest$1
dup
aload 0
aload 3
invokespecial org.graalvm.compiler.replacements.test.PointerTrackingTest$1.<init>:(Lorg/graalvm/compiler/replacements/test/PointerTrackingTest;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
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/replacements/test/PointerTrackingTest;
0 3 1 r Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins$Registration;
0 3 2 fnName Ljava/lang/String;
1 3 3 intrinsic Ljdk/vm/ci/meta/ResolvedJavaMethod;
MethodParameters:
Name Flags
r
fnName
protected org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration$Plugins getDefaultGraphBuilderPlugins();
descriptor: ()Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderConfiguration$Plugins;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.core.test.GraalCompilerTest.getDefaultGraphBuilderPlugins:()Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderConfiguration$Plugins;
astore 1
start local 1 1: new org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration
dup
aload 1
invokevirtual org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration$Plugins.getInvocationPlugins:()Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins;
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 2: 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
3: 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
4: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/replacements/test/PointerTrackingTest;
1 5 1 plugins Lorg/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderConfiguration$Plugins;
2 5 2 r Lorg/graalvm/compiler/nodes/graphbuilderconf/InvocationPlugins$Registration;
static org.graalvm.compiler.nodes.spi.Replacements access$0(org.graalvm.compiler.replacements.test.PointerTrackingTest);
descriptor: (Lorg/graalvm/compiler/replacements/test/PointerTrackingTest;)Lorg/graalvm/compiler/nodes/spi/Replacements;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.graalvm.compiler.replacements.test.PointerTrackingTest.getReplacements:()Lorg/graalvm/compiler/nodes/spi/Replacements;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "PointerTrackingTest.java"
NestMembers:
org.graalvm.compiler.replacements.test.PointerTrackingTest$1
InnerClasses:
public Plugins = org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration$Plugins of org.graalvm.compiler.nodes.graphbuilderconf.GraphBuilderConfiguration
public Registration = org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins$Registration of org.graalvm.compiler.nodes.graphbuilderconf.InvocationPlugins
org.graalvm.compiler.replacements.test.PointerTrackingTest$1