public class org.graalvm.compiler.hotspot.test.GraalOSRTest extends org.graalvm.compiler.hotspot.test.GraalOSRTestBase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.test.GraalOSRTest
super_class: org.graalvm.compiler.hotspot.test.GraalOSRTestBase
{
static int limit;
descriptor: I
flags: (0x0008) ACC_STATIC
public static int sideEffect;
descriptor: I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
private static boolean repeatLoop;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: sipush 10000
putstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.limit:I
1: 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.hotspot.test.GraalOSRTestBase.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/test/GraalOSRTest;
public void testOSR01();
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/hotspot/test/GraalOSRTest;
RuntimeInvisibleAnnotations:
Test()
public void testOSR02();
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/GraalOSRTest;
RuntimeInvisibleAnnotations:
Test()
public void testOSR03();
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/GraalOSRTest;
RuntimeInvisibleAnnotations:
Test()
public static org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue testReduceLoop();
descriptor: ()Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: iconst_0
istore 0
start local 0 1: goto 6
2: StackMap locals: int
StackMap stack:
iload 0
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.blackhole:(I)V
3: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.inCompiledCode:()Z
ifeq 5
4: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue.SUCCESS:Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
areturn
5: StackMap locals:
StackMap stack:
iinc 0 1
StackMap locals:
StackMap stack:
6: iload 0
getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.limit:I
getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.limit:I
imul
if_icmplt 2
end local 0 7: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue.FAILURE:Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
areturn
LocalVariableTable:
Start End Slot Name Signature
1 7 0 i I
public static org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue testSequentialLoop();
descriptor: ()Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=0
0: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue.FAILURE:Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
astore 0
start local 0 1: iconst_1
istore 1
start local 1 2: goto 7
3: StackMap locals: org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue int
StackMap stack:
iload 1
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.blackhole:(I)V
4: iload 1
bipush 7
irem
ifne 6
5: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue.SUCCESS:Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
astore 0
6: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
7: iload 1
getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.limit:I
getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.limit:I
imul
if_icmplt 3
end local 1 8: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
9: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.sideEffect:I
bipush 123
if_icmpne 11
10: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue.SIDE:Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
areturn
11: StackMap locals:
StackMap stack:
iconst_1
istore 1
start local 1 12: goto 17
13: StackMap locals: int
StackMap stack:
iload 1
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.blackhole:(I)V
14: iload 1
bipush 33
irem
ifne 16
15: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue.SUCCESS:Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
astore 0
16: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
17: iload 1
getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.limit:I
getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.limit:I
imul
if_icmplt 13
end local 1 18: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
19: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 20 0 ret Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
2 8 1 i I
12 18 1 i I
public static org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue testNonReduceLoop();
descriptor: ()Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=0
0: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue.FAILURE:Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
astore 0
start local 0 1: iconst_0
istore 1
start local 1 2: goto 7
3: StackMap locals: org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue int
StackMap stack:
iload 1
invokestatic org.graalvm.compiler.api.directives.GraalDirectives.blackhole:(I)V
4: iload 1
bipush 33
irem
ifne 6
5: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue.SUCCESS:Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
astore 0
6: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
7: iload 1
getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.limit:I
getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.limit:I
imul
if_icmplt 3
end local 1 8: invokestatic org.graalvm.compiler.api.directives.GraalDirectives.controlFlowAnchor:()V
9: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 10 0 ret Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
2 8 1 i I
public void testOSR04();
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/GraalOSRTest;
RuntimeInvisibleAnnotations:
Test()
public void testOSR05();
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/GraalOSRTest;
RuntimeInvisibleAnnotations:
Test()
private void testFunnyOSR(java.lang.String, java.lang.Runnable);
descriptor: (Ljava/lang/String;Ljava/lang/Runnable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.graalvm.compiler.hotspot.test.GraalOSRTest.getResolvedJavaMethod:(Ljava/lang/String;)Ljdk/vm/ci/meta/ResolvedJavaMethod;
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: StackMap locals: jdk.vm.ci.meta.ResolvedJavaMethod int
StackMap stack:
aload 3
invokeinterface jdk.vm.ci.meta.ResolvedJavaMethod.getProfilingInfo:()Ljdk/vm/ci/meta/ProfilingInfo;
astore 5
start local 5 3: aload 5
invokeinterface jdk.vm.ci.meta.ProfilingInfo.isMature:()Z
ifeq 5
4: goto 10
5: StackMap locals: jdk.vm.ci.meta.ProfilingInfo
StackMap stack:
aload 2
invokeinterface java.lang.Runnable.run:()V
6: iload 4
iinc 4 1
sipush 1000
irem
ifne 8
7: getstatic java.lang.System.err:Ljava/io/PrintStream;
bipush 46
invokevirtual java.io.PrintStream.print:(C)V
8: StackMap locals:
StackMap stack:
iload 4
ldc 200000
if_icmple 2
9: new java.lang.AssertionError
dup
ldc "no profile"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 5 10: StackMap locals:
StackMap stack:
aload 0
invokestatic org.graalvm.compiler.hotspot.test.GraalOSRTest.getInitialOptions:()Lorg/graalvm/compiler/options/OptionValues;
aload 3
invokevirtual org.graalvm.compiler.hotspot.test.GraalOSRTest.compileOSR:(Lorg/graalvm/compiler/options/OptionValues;Ljdk/vm/ci/meta/ResolvedJavaMethod;)V
11: aload 0
aload 3
aconst_null
iconst_0
anewarray java.lang.Object
invokevirtual org.graalvm.compiler.hotspot.test.GraalOSRTest.executeExpected:(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljava/lang/Object;[Ljava/lang/Object;)Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
astore 5
start local 5 12: aload 5
invokestatic org.graalvm.compiler.hotspot.test.GraalOSRTest.checkResult:(Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;)V
13: return
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 14 0 this Lorg/graalvm/compiler/hotspot/test/GraalOSRTest;
0 14 1 name Ljava/lang/String;
0 14 2 warmup Ljava/lang/Runnable;
1 14 3 method Ljdk/vm/ci/meta/ResolvedJavaMethod;
2 14 4 iterations I
3 10 5 profilingInfo Ljdk/vm/ci/meta/ProfilingInfo;
12 14 5 result Lorg/graalvm/compiler/core/test/GraalCompilerTest$Result;
MethodParameters:
Name Flags
name
warmup
public static org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue testDoWhile();
descriptor: ()Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.sideEffect:I
iconst_1
iadd
putstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.sideEffect:I
1: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.repeatLoop:Z
ifne 0
2: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue.SUCCESS:Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static synchronized org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue testDoWhileLocked();
descriptor: ()Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=0, args_size=0
0: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.sideEffect:I
iconst_1
iadd
putstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.sideEffect:I
1: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTest.repeatLoop:Z
ifne 0
2: getstatic org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue.SUCCESS:Lorg/graalvm/compiler/hotspot/test/GraalOSRTestBase$ReturnValue;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "GraalOSRTest.java"
InnerClasses:
public Result = org.graalvm.compiler.core.test.GraalCompilerTest$Result of org.graalvm.compiler.core.test.GraalCompilerTest
protected final ReturnValue = org.graalvm.compiler.hotspot.test.GraalOSRTestBase$ReturnValue of org.graalvm.compiler.hotspot.test.GraalOSRTestBase