public abstract class org.graalvm.compiler.core.CompilationWrapper<T>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.graalvm.compiler.core.CompilationWrapper
super_class: java.lang.Object
{
private final org.graalvm.compiler.debug.DiagnosticsOutputDirectory outputDirectory;
descriptor: Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<org.graalvm.compiler.core.CompilationWrapper$ExceptionAction, java.lang.Integer> problemsHandledPerAction;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;Ljava/lang/Integer;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/graalvm/compiler/core/CompilationWrapper;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.graalvm.compiler.core.CompilationWrapper.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.graalvm.compiler.debug.DiagnosticsOutputDirectory, java.util.Map<org.graalvm.compiler.core.CompilationWrapper$ExceptionAction, java.lang.Integer>);
descriptor: (Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.core.CompilationWrapper.outputDirectory:Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
2: aload 0
aload 2
putfield org.graalvm.compiler.core.CompilationWrapper.problemsHandledPerAction:Ljava/util/Map;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/core/CompilationWrapper<TT;>;
0 4 1 outputDirectory Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
0 4 2 problemsHandledPerAction Ljava/util/Map<Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;Ljava/lang/Integer;>;
Signature: (Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;Ljava/util/Map<Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;Ljava/lang/Integer;>;)V
MethodParameters:
Name Flags
outputDirectory
problemsHandledPerAction
protected abstract T handleException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/Object;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (Ljava/lang/Throwable;)TT;
MethodParameters:
Name Flags
t
protected org.graalvm.compiler.core.CompilationWrapper$ExceptionAction lookupAction(org.graalvm.compiler.options.OptionValues, org.graalvm.compiler.options.EnumOptionKey<org.graalvm.compiler.core.CompilationWrapper$ExceptionAction>, java.lang.Throwable);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/EnumOptionKey;Ljava/lang/Throwable;)Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
getstatic org.graalvm.compiler.core.GraalCompilerOptions.CompilationFailureAction:Lorg/graalvm/compiler/options/EnumOptionKey;
if_acmpne 10
1: getstatic org.graalvm.compiler.core.GraalCompilerOptions.ExitVMOnException:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 10
2: getstatic org.graalvm.compiler.core.CompilationWrapper.$assertionsDisabled:Z
ifne 3
getstatic org.graalvm.compiler.core.GraalCompilerOptions.CompilationFailureAction:Lorg/graalvm/compiler/options/EnumOptionKey;
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getDefaultValue:()Ljava/lang/Object;
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.ExitVM:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
if_acmpne 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.core.CompilationWrapper.$assertionsDisabled:Z
ifne 4
getstatic org.graalvm.compiler.core.GraalCompilerOptions.ExitVMOnException:Lorg/graalvm/compiler/options/OptionKey;
invokevirtual org.graalvm.compiler.options.OptionKey.getDefaultValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.core.GraalCompilerOptions.CompilationFailureAction:Lorg/graalvm/compiler/options/EnumOptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.EnumOptionKey.hasBeenSet:(Lorg/graalvm/compiler/options/OptionValues;)Z
ifeq 9
getstatic org.graalvm.compiler.core.GraalCompilerOptions.CompilationFailureAction:Lorg/graalvm/compiler/options/EnumOptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.ExitVM:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
if_acmpeq 9
5: ldc "WARNING: Ignoring %s=%s since %s=true has been explicitly specified.%n"
iconst_3
anewarray java.lang.Object
dup
iconst_0
6: getstatic org.graalvm.compiler.core.GraalCompilerOptions.CompilationFailureAction:Lorg/graalvm/compiler/options/EnumOptionKey;
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getName:()Ljava/lang/String;
aastore
dup
iconst_1
getstatic org.graalvm.compiler.core.GraalCompilerOptions.CompilationFailureAction:Lorg/graalvm/compiler/options/EnumOptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
aastore
dup
iconst_2
7: getstatic org.graalvm.compiler.core.GraalCompilerOptions.ExitVMOnException:Lorg/graalvm/compiler/options/OptionKey;
invokevirtual org.graalvm.compiler.options.OptionKey.getName:()Ljava/lang/String;
aastore
8: invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
9: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.ExitVM:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
areturn
10: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast org.graalvm.compiler.core.CompilationWrapper$ExceptionAction
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/graalvm/compiler/core/CompilationWrapper<TT;>;
0 11 1 options Lorg/graalvm/compiler/options/OptionValues;
0 11 2 actionKey Lorg/graalvm/compiler/options/EnumOptionKey<Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;>;
0 11 3 cause Ljava/lang/Throwable;
Signature: (Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/EnumOptionKey<Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;>;Ljava/lang/Throwable;)Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
MethodParameters:
Name Flags
options
actionKey
cause
protected abstract T performCompilation(org.graalvm.compiler.debug.DebugContext);
descriptor: (Lorg/graalvm/compiler/debug/DebugContext;)Ljava/lang/Object;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (Lorg/graalvm/compiler/debug/DebugContext;)TT;
MethodParameters:
Name Flags
debug
public abstract java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
protected abstract org.graalvm.compiler.debug.DebugContext createRetryDebugContext(org.graalvm.compiler.options.OptionValues);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;)Lorg/graalvm/compiler/debug/DebugContext;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
options
public final T run(org.graalvm.compiler.debug.DebugContext);
descriptor: (Lorg/graalvm/compiler/debug/DebugContext;)Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=9, locals=19, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.graalvm.compiler.core.CompilationWrapper.performCompilation:(Lorg/graalvm/compiler/debug/DebugContext;)Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
start local 2 3: aload 1
invokevirtual org.graalvm.compiler.debug.DebugContext.getOptions:()Lorg/graalvm/compiler/options/OptionValues;
astore 3
start local 3 4: ldc "failure"
astore 4
start local 4 5: aload 2
instanceof jdk.vm.ci.code.BailoutException
ifeq 9
6: getstatic org.graalvm.compiler.core.GraalCompilerOptions.CompilationBailoutAction:Lorg/graalvm/compiler/options/EnumOptionKey;
astore 5
start local 5 7: ldc "bailout"
astore 4
8: goto 11
end local 5 9: StackMap locals: java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String
StackMap stack:
getstatic org.graalvm.compiler.core.GraalCompilerOptions.CompilationFailureAction:Lorg/graalvm/compiler/options/EnumOptionKey;
astore 5
start local 5 10: ldc "failure"
astore 4
11: StackMap locals: org.graalvm.compiler.options.EnumOptionKey
StackMap stack:
aload 0
aload 3
aload 5
aload 2
invokevirtual org.graalvm.compiler.core.CompilationWrapper.lookupAction:(Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/EnumOptionKey;Ljava/lang/Throwable;)Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
astore 6
start local 6 12: aload 0
aload 3
aload 5
aload 6
invokevirtual org.graalvm.compiler.core.CompilationWrapper.adjustAction:(Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/EnumOptionKey;Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;)Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
astore 6
13: aload 6
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Silent:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
if_acmpne 15
14: aload 0
aload 2
invokevirtual org.graalvm.compiler.core.CompilationWrapper.handleException:(Ljava/lang/Throwable;)Ljava/lang/Object;
areturn
15: StackMap locals: org.graalvm.compiler.core.CompilationWrapper$ExceptionAction
StackMap stack:
aload 6
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Print:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
if_acmpne 45
16: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 7
start local 7 17: aconst_null
astore 8
aconst_null
astore 9
18: new java.io.PrintStream
dup
aload 7
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
astore 10
start local 10 19: aload 10
ldc "%s: Compilation of %s failed: "
iconst_2
anewarray java.lang.Object
dup
iconst_0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aastore
dup
iconst_1
aload 0
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
20: aload 2
aload 10
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintStream;)V
21: aload 10
ldc "To disable compilation %s notifications, set %s to %s (e.g., -Dgraal.%s=%s).%n"
iconst_5
anewarray java.lang.Object
dup
iconst_0
22: aload 4
aastore
dup
iconst_1
23: aload 5
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getName:()Ljava/lang/String;
aastore
dup
iconst_2
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Silent:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
aastore
dup
iconst_3
24: aload 5
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getName:()Ljava/lang/String;
aastore
dup
iconst_4
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Silent:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
aastore
25: invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
26: aload 10
ldc "To capture more information for diagnosing or reporting a compilation %s, set %s to %s or %s (e.g., -Dgraal.%s=%s).%n"
bipush 6
anewarray java.lang.Object
dup
iconst_0
27: aload 4
aastore
dup
iconst_1
28: aload 5
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getName:()Ljava/lang/String;
aastore
dup
iconst_2
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Diagnose:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
aastore
dup
iconst_3
29: getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.ExitVM:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
aastore
dup
iconst_4
30: aload 5
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getName:()Ljava/lang/String;
aastore
dup
iconst_5
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Diagnose:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
aastore
31: invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
32: aload 10
ifnull 38
aload 10
invokevirtual java.io.PrintStream.close:()V
goto 38
StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.debug.DebugContext java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String org.graalvm.compiler.options.EnumOptionKey org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.io.ByteArrayOutputStream java.lang.Throwable java.lang.Throwable java.io.PrintStream
StackMap stack: java.lang.Throwable
33: astore 8
aload 10
ifnull 34
aload 10
invokevirtual java.io.PrintStream.close:()V
end local 10 StackMap locals:
StackMap stack:
34: aload 8
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
35: astore 9
aload 8
ifnonnull 36
aload 9
astore 8
goto 37
StackMap locals:
StackMap stack:
36: aload 8
aload 9
if_acmpeq 37
aload 8
aload 9
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
37: aload 8
athrow
38: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.core.GraalCompilerOptions.CompilationFailureAction:Lorg/graalvm/compiler/options/EnumOptionKey;
dup
astore 8
monitorenter
39: aload 7
invokevirtual java.io.ByteArrayOutputStream.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
40: aload 8
monitorexit
41: goto 44
StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.debug.DebugContext java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String org.graalvm.compiler.options.EnumOptionKey org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.io.ByteArrayOutputStream org.graalvm.compiler.options.EnumOptionKey
StackMap stack: java.lang.Throwable
42: aload 8
monitorexit
43: athrow
44: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.graalvm.compiler.core.CompilationWrapper.handleException:(Ljava/lang/Throwable;)Ljava/lang/Object;
areturn
end local 7 45: StackMap locals:
StackMap stack:
getstatic org.graalvm.compiler.debug.DebugOptions.Dump:Lorg/graalvm/compiler/options/OptionKey;
aload 3
invokevirtual org.graalvm.compiler.options.OptionKey.hasBeenSet:(Lorg/graalvm/compiler/options/OptionValues;)Z
ifeq 47
46: aload 0
aload 2
invokevirtual org.graalvm.compiler.core.CompilationWrapper.handleException:(Ljava/lang/Throwable;)Ljava/lang/Object;
areturn
47: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.core.CompilationWrapper.outputDirectory:Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.getPath:()Ljava/lang/String;
astore 7
start local 7 48: aload 7
ifnonnull 50
49: aload 0
aload 2
invokevirtual org.graalvm.compiler.core.CompilationWrapper.handleException:(Ljava/lang/Throwable;)Ljava/lang/Object;
areturn
50: StackMap locals: java.lang.String
StackMap stack:
aload 0
invokevirtual org.graalvm.compiler.core.CompilationWrapper.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.PathUtilities.sanitizeFileName:(Ljava/lang/String;)Ljava/lang/String;
astore 8
start local 8 51: new java.io.File
dup
aload 7
aload 8
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 9
start local 9 52: aload 9
invokevirtual java.io.File.mkdirs:()Z
pop
53: aload 9
invokevirtual java.io.File.exists:()Z
ifne 56
54: new java.lang.StringBuilder
dup
ldc "Warning: could not create diagnostics directory "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
55: aload 0
aload 2
invokevirtual org.graalvm.compiler.core.CompilationWrapper.handleException:(Ljava/lang/Throwable;)Ljava/lang/Object;
areturn
56: StackMap locals: java.lang.String java.io.File
StackMap stack:
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 11
start local 11 57: aconst_null
astore 12
aconst_null
astore 13
58: new java.io.PrintStream
dup
aload 11
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
astore 14
start local 14 59: aload 14
ldc "%s: Compilation of %s failed: "
iconst_2
anewarray java.lang.Object
dup
iconst_0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aastore
dup
iconst_1
aload 0
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
60: aload 2
aload 14
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintStream;)V
61: aload 14
ldc "To disable compilation %s notifications, set %s to %s (e.g., -Dgraal.%s=%s).%n"
iconst_5
anewarray java.lang.Object
dup
iconst_0
62: aload 4
aastore
dup
iconst_1
63: aload 5
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getName:()Ljava/lang/String;
aastore
dup
iconst_2
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Silent:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
aastore
dup
iconst_3
64: aload 5
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getName:()Ljava/lang/String;
aastore
dup
iconst_4
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Silent:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
aastore
65: invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
66: aload 14
ldc "To print a message for a compilation %s without retrying the compilation, set %s to %s (e.g., -Dgraal.%s=%s).%n"
iconst_5
anewarray java.lang.Object
dup
iconst_0
67: aload 4
aastore
dup
iconst_1
68: aload 5
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getName:()Ljava/lang/String;
aastore
dup
iconst_2
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Print:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
aastore
dup
iconst_3
69: aload 5
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getName:()Ljava/lang/String;
aastore
dup
iconst_4
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Print:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
aastore
70: invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
71: aload 14
new java.lang.StringBuilder
dup
ldc "Retrying compilation of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
72: aload 11
invokevirtual java.io.ByteArrayOutputStream.toString:()Ljava/lang/String;
astore 10
start local 10 73: aload 14
ifnull 79
aload 14
invokevirtual java.io.PrintStream.close:()V
goto 79
end local 10 StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.debug.DebugContext java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String org.graalvm.compiler.options.EnumOptionKey org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.lang.String java.lang.String java.io.File top java.io.ByteArrayOutputStream java.lang.Throwable java.lang.Throwable java.io.PrintStream
StackMap stack: java.lang.Throwable
74: astore 12
aload 14
ifnull 75
aload 14
invokevirtual java.io.PrintStream.close:()V
end local 14 StackMap locals:
StackMap stack:
75: aload 12
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
76: astore 13
aload 12
ifnonnull 77
aload 13
astore 12
goto 78
StackMap locals:
StackMap stack:
77: aload 12
aload 13
if_acmpeq 78
aload 12
aload 13
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
78: aload 12
athrow
start local 10 79: StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.debug.DebugContext java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String org.graalvm.compiler.options.EnumOptionKey org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.lang.String java.lang.String java.io.File java.lang.String java.io.ByteArrayOutputStream
StackMap stack:
getstatic org.graalvm.compiler.core.GraalCompilerOptions.CompilationFailureAction:Lorg/graalvm/compiler/options/EnumOptionKey;
dup
astore 12
monitorenter
80: aload 10
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
81: new java.io.File
dup
aload 9
ldc "retry.log"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 13
start local 13 82: aconst_null
astore 14
aconst_null
astore 15
83: new java.io.PrintStream
dup
new java.io.FileOutputStream
dup
aload 13
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
astore 16
start local 16 84: aload 16
aload 10
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
85: aload 16
ifnull 93
aload 16
invokevirtual java.io.PrintStream.close:()V
goto 93
StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.debug.DebugContext java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String org.graalvm.compiler.options.EnumOptionKey org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.lang.String java.lang.String java.io.File java.lang.String java.io.ByteArrayOutputStream org.graalvm.compiler.options.EnumOptionKey java.io.File java.lang.Throwable java.lang.Throwable java.io.PrintStream
StackMap stack: java.lang.Throwable
86: astore 14
aload 16
ifnull 87
aload 16
invokevirtual java.io.PrintStream.close:()V
end local 16 StackMap locals:
StackMap stack:
87: aload 14
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
88: astore 15
aload 14
ifnonnull 89
aload 15
astore 14
goto 90
StackMap locals:
StackMap stack:
89: aload 14
aload 15
if_acmpeq 90
aload 14
aload 15
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
90: aload 14
athrow
StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.debug.DebugContext java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String org.graalvm.compiler.options.EnumOptionKey org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.lang.String java.lang.String java.io.File java.lang.String java.io.ByteArrayOutputStream org.graalvm.compiler.options.EnumOptionKey java.io.File
StackMap stack: java.io.IOException
91: astore 14
start local 14 92: ldc "Error writing to %s: %s%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 13
aastore
dup
iconst_1
aload 14
aastore
invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 14 93: StackMap locals:
StackMap stack:
new org.graalvm.compiler.options.OptionValues
dup
aload 3
94: getstatic org.graalvm.compiler.debug.DebugOptions.Dump:Lorg/graalvm/compiler/options/OptionKey;
ldc ":3"
iconst_4
anewarray java.lang.Object
dup
iconst_0
95: getstatic org.graalvm.compiler.debug.DebugOptions.MethodFilter:Lorg/graalvm/compiler/options/OptionKey;
aastore
dup
iconst_1
aconst_null
aastore
dup
iconst_2
96: getstatic org.graalvm.compiler.debug.DebugOptions.DumpPath:Lorg/graalvm/compiler/options/OptionKey;
aastore
dup
iconst_3
aload 9
invokevirtual java.io.File.getPath:()Ljava/lang/String;
97: aastore
invokespecial org.graalvm.compiler.options.OptionValues.<init>:(Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/OptionKey;Ljava/lang/Object;[Ljava/lang/Object;)V
astore 14
start local 14 98: aconst_null
astore 15
aconst_null
astore 16
99: aload 0
aload 14
invokevirtual org.graalvm.compiler.core.CompilationWrapper.createRetryDebugContext:(Lorg/graalvm/compiler/options/OptionValues;)Lorg/graalvm/compiler/debug/DebugContext;
astore 17
start local 17 100: aload 0
aload 17
invokevirtual org.graalvm.compiler.core.CompilationWrapper.performCompilation:(Lorg/graalvm/compiler/debug/DebugContext;)Ljava/lang/Object;
astore 18
start local 18 101: aload 0
aload 6
invokevirtual org.graalvm.compiler.core.CompilationWrapper.maybeExitVM:(Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;)V
102: aload 18
103: aload 17
ifnull 104
aload 17
invokevirtual org.graalvm.compiler.debug.DebugContext.close:()V
104: StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.debug.DebugContext java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String org.graalvm.compiler.options.EnumOptionKey org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.lang.String java.lang.String java.io.File java.lang.String java.io.ByteArrayOutputStream org.graalvm.compiler.options.EnumOptionKey java.io.File org.graalvm.compiler.options.OptionValues java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.DebugContext java.lang.Object
StackMap stack: java.lang.Object
aload 12
monitorexit
105: areturn
end local 18 StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.debug.DebugContext java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String org.graalvm.compiler.options.EnumOptionKey org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.lang.String java.lang.String java.io.File java.lang.String java.io.ByteArrayOutputStream org.graalvm.compiler.options.EnumOptionKey java.io.File org.graalvm.compiler.options.OptionValues java.lang.Throwable java.lang.Throwable org.graalvm.compiler.debug.DebugContext
StackMap stack: java.lang.Throwable
106: astore 15
107: aload 17
ifnull 108
aload 17
invokevirtual org.graalvm.compiler.debug.DebugContext.close:()V
end local 17 StackMap locals:
StackMap stack:
108: aload 15
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
109: astore 16
aload 15
ifnonnull 110
aload 16
astore 15
goto 111
StackMap locals:
StackMap stack:
110: aload 15
aload 16
if_acmpeq 111
aload 15
aload 16
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
111: aload 15
athrow
StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.debug.DebugContext java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String org.graalvm.compiler.options.EnumOptionKey org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.lang.String java.lang.String java.io.File java.lang.String java.io.ByteArrayOutputStream org.graalvm.compiler.options.EnumOptionKey java.io.File org.graalvm.compiler.options.OptionValues
StackMap stack: java.lang.Throwable
112: pop
113: aload 0
aload 2
invokevirtual org.graalvm.compiler.core.CompilationWrapper.handleException:(Ljava/lang/Throwable;)Ljava/lang/Object;
astore 15
start local 15 114: aload 0
aload 6
invokevirtual org.graalvm.compiler.core.CompilationWrapper.maybeExitVM:(Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;)V
115: aload 15
aload 12
monitorexit
116: areturn
end local 15 end local 14 end local 13 117: StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.debug.DebugContext java.lang.Throwable org.graalvm.compiler.options.OptionValues java.lang.String org.graalvm.compiler.options.EnumOptionKey org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.lang.String java.lang.String java.io.File java.lang.String java.io.ByteArrayOutputStream org.graalvm.compiler.options.EnumOptionKey
StackMap stack: java.lang.Throwable
aload 12
monitorexit
118: athrow
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 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 119 0 this Lorg/graalvm/compiler/core/CompilationWrapper<TT;>;
0 119 1 initialDebug Lorg/graalvm/compiler/debug/DebugContext;
3 119 2 cause Ljava/lang/Throwable;
4 119 3 initialOptions Lorg/graalvm/compiler/options/OptionValues;
5 119 4 causeType Ljava/lang/String;
7 9 5 actionKey Lorg/graalvm/compiler/options/EnumOptionKey<Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;>;
10 119 5 actionKey Lorg/graalvm/compiler/options/EnumOptionKey<Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;>;
12 119 6 action Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
17 45 7 baos Ljava/io/ByteArrayOutputStream;
19 34 10 ps Ljava/io/PrintStream;
48 119 7 dir Ljava/lang/String;
51 119 8 dumpName Ljava/lang/String;
52 119 9 dumpPath Ljava/io/File;
73 74 10 message Ljava/lang/String;
79 119 10 message Ljava/lang/String;
57 119 11 baos Ljava/io/ByteArrayOutputStream;
59 75 14 ps Ljava/io/PrintStream;
82 117 13 retryLogFile Ljava/io/File;
84 87 16 ps Ljava/io/PrintStream;
92 93 14 ioe Ljava/io/IOException;
98 117 14 retryOptions Lorg/graalvm/compiler/options/OptionValues;
100 108 17 retryDebug Lorg/graalvm/compiler/debug/DebugContext;
101 106 18 res TT;
114 117 15 res TT;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
19 32 33 any
18 35 35 any
39 41 42 any
42 43 42 any
59 73 74 any
58 76 76 any
84 85 86 any
83 88 88 any
82 91 91 Class java.io.IOException
100 103 106 any
99 104 109 any
106 109 109 any
98 104 112 Class java.lang.Throwable
106 112 112 Class java.lang.Throwable
80 105 117 any
106 116 117 any
117 118 117 any
Signature: (Lorg/graalvm/compiler/debug/DebugContext;)TT;
MethodParameters:
Name Flags
initialDebug
private void maybeExitVM(org.graalvm.compiler.core.CompilationWrapper$ExceptionAction);
descriptor: (Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.ExitVM:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
if_acmpne 11
1: ldc Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
dup
astore 2
monitorenter
2: ldc Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
ldc 2000
invokevirtual java.lang.Object.wait:(J)V
3: goto 5
StackMap locals: org.graalvm.compiler.core.CompilationWrapper org.graalvm.compiler.core.CompilationWrapper$ExceptionAction java.lang.Class
StackMap stack: java.lang.InterruptedException
4: pop
5: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Exiting VM after retry compilation of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
6: iconst_m1
invokestatic java.lang.System.exit:(I)V
7: aload 2
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/graalvm/compiler/core/CompilationWrapper<TT;>;
0 12 1 action Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
Exception table:
from to target type
2 3 4 Class java.lang.InterruptedException
2 8 9 any
9 10 9 any
Signature: (Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;)V
MethodParameters:
Name Flags
action
private org.graalvm.compiler.core.CompilationWrapper$ExceptionAction adjustAction(org.graalvm.compiler.options.OptionValues, org.graalvm.compiler.options.EnumOptionKey<org.graalvm.compiler.core.CompilationWrapper$ExceptionAction>, org.graalvm.compiler.core.CompilationWrapper$ExceptionAction);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/EnumOptionKey;Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;)Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
astore 4
start local 4 1: getstatic org.graalvm.compiler.core.GraalCompilerOptions.MaxCompilationProblemsPerAction:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 5
start local 5 2: aload 0
getfield org.graalvm.compiler.core.CompilationWrapper.problemsHandledPerAction:Ljava/util/Map;
dup
astore 6
monitorenter
3: goto 12
4: StackMap locals: org.graalvm.compiler.core.CompilationWrapper$ExceptionAction int java.util.Map
StackMap stack:
aload 0
getfield org.graalvm.compiler.core.CompilationWrapper.problemsHandledPerAction:Ljava/util/Map;
aload 4
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 7
start local 7 5: iload 7
iload 5
if_icmplt 13
6: iload 7
iload 5
if_icmpne 11
7: ldc "Warning: adjusting %s from %s to %s after %s (%d) failed compilations%n"
iconst_5
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 4
aastore
dup
iconst_2
aload 4
invokevirtual org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.quieter:()Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
aastore
dup
iconst_3
8: getstatic org.graalvm.compiler.core.GraalCompilerOptions.MaxCompilationProblemsPerAction:Lorg/graalvm/compiler/options/OptionKey;
aastore
dup
iconst_4
iload 5
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
9: invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
10: aload 0
getfield org.graalvm.compiler.core.CompilationWrapper.problemsHandledPerAction:Ljava/util/Map;
aload 4
iload 7
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: StackMap locals: int
StackMap stack:
aload 4
invokevirtual org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.quieter:()Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
astore 4
end local 7 12: StackMap locals:
StackMap stack:
aload 4
getstatic org.graalvm.compiler.core.CompilationWrapper$ExceptionAction.Silent:Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
if_acmpne 4
13: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.core.CompilationWrapper.problemsHandledPerAction:Ljava/util/Map;
aload 4
aload 0
getfield org.graalvm.compiler.core.CompilationWrapper.problemsHandledPerAction:Ljava/util/Map;
aload 4
iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: aload 6
monitorexit
15: goto 18
StackMap locals:
StackMap stack: java.lang.Throwable
16: aload 6
monitorexit
17: athrow
18: StackMap locals:
StackMap stack:
aload 4
areturn
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 19 0 this Lorg/graalvm/compiler/core/CompilationWrapper<TT;>;
0 19 1 initialOptions Lorg/graalvm/compiler/options/OptionValues;
0 19 2 actionKey Lorg/graalvm/compiler/options/EnumOptionKey<Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;>;
0 19 3 initialAction Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
1 19 4 action Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
2 19 5 maxProblems I
5 12 7 problems I
Exception table:
from to target type
3 15 16 any
16 17 16 any
Signature: (Lorg/graalvm/compiler/options/OptionValues;Lorg/graalvm/compiler/options/EnumOptionKey<Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;>;Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;)Lorg/graalvm/compiler/core/CompilationWrapper$ExceptionAction;
MethodParameters:
Name Flags
initialOptions
actionKey
initialAction
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "CompilationWrapper.java"
NestMembers:
org.graalvm.compiler.core.CompilationWrapper$ExceptionAction
InnerClasses:
public final ExceptionAction = org.graalvm.compiler.core.CompilationWrapper$ExceptionAction of org.graalvm.compiler.core.CompilationWrapper