public class org.graalvm.compiler.debug.DiagnosticsOutputDirectory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.debug.DiagnosticsOutputDirectory
super_class: java.lang.Object
{
private static final java.lang.String CLOSED;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "\u0000"
private final org.graalvm.compiler.options.OptionValues options;
descriptor: Lorg/graalvm/compiler/options/OptionValues;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.graalvm.compiler.options.OptionValues);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.options:Lorg/graalvm/compiler/options/OptionValues;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
0 3 1 options Lorg/graalvm/compiler/options/OptionValues;
MethodParameters:
Name Flags
options
public java.lang.String getPath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.getPath:(Z)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
protected java.lang.String getExecutionID();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=1
start local 0 0: invokestatic java.lang.management.ManagementFactory.getRuntimeMXBean:()Ljava/lang/management/RuntimeMXBean;
invokeinterface java.lang.management.RuntimeMXBean.getName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
bipush 64
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 2: iload 2
iconst_m1
if_icmpeq 7
3: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lstore 3
start local 3 4: lload 3
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
5: areturn
end local 3 end local 2 6: StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String
StackMap stack: java.lang.NumberFormatException
pop
7: StackMap locals:
StackMap stack:
aload 1
8: areturn
end local 1 9: StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory
StackMap stack: java.lang.LinkageError
pop
10: invokestatic org.graalvm.compiler.debug.PathUtilities.getGlobalTimeStamp:()J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
1 9 1 runtimeName Ljava/lang/String;
2 6 2 index I
4 6 3 pid J
Exception table:
from to target type
1 5 6 Class java.lang.NumberFormatException
0 5 9 Class java.lang.LinkageError
6 8 9 Class java.lang.LinkageError
private synchronized java.lang.String getPath(boolean);
descriptor: (Z)Ljava/lang/String;
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
ifnonnull 8
iload 1
ifeq 8
1: aload 0
aload 0
invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.createPath:()Ljava/lang/String;
putfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
2: new java.io.File
dup
aload 0
getfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.getAbsoluteFile:()Ljava/io/File;
astore 2
start local 2 3: aload 2
invokevirtual java.io.File.exists:()Z
ifne 8
4: aload 2
invokevirtual java.io.File.mkdirs:()Z
pop
5: aload 2
invokevirtual java.io.File.exists:()Z
ifne 8
6: new java.lang.StringBuilder
dup
ldc "Warning: could not create Graal diagnostic directory "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
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
7: aconst_null
areturn
end local 2 8: StackMap locals:
StackMap stack:
ldc "\u0000"
aload 0
getfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
aconst_null
goto 10
StackMap locals:
StackMap stack:
9: aload 0
getfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
10: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
0 11 1 createIfNull Z
3 8 2 dir Ljava/io/File;
MethodParameters:
Name Flags
createIfNull
protected java.lang.String createPath();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.options:Lorg/graalvm/compiler/options/OptionValues;
invokestatic org.graalvm.compiler.debug.DebugOptions.getDumpDirectory:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/nio/file/Path;
astore 1
start local 1 1: goto 4
end local 1 StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: ldc "."
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 4: StackMap locals: java.nio.file.Path
StackMap stack:
aload 1
new java.lang.StringBuilder
dup
ldc "graal_diagnostics_"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.getExecutionID:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
1 2 1 baseDir Ljava/nio/file/Path;
4 5 1 baseDir Ljava/nio/file/Path;
Exception table:
from to target type
0 1 2 Class java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.archiveAndDelete:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
private synchronized void archiveAndDelete();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=9, locals=9, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.getPath:(Z)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 36
2: aload 0
ldc "\u0000"
putfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
3: aload 1
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 4: aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 36
5: new java.io.File
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".zip"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.getAbsoluteFile:()Ljava/io/File;
astore 3
start local 3 6: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 7: aconst_null
astore 5
aconst_null
astore 6
8: new java.util.zip.ZipOutputStream
dup
new java.io.FileOutputStream
dup
aload 3
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
invokespecial java.util.zip.ZipOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 7
start local 7 9: aload 7
bipush 9
invokevirtual java.util.zip.ZipOutputStream.setLevel:(I)V
10: aload 2
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
ldc 2147483647
new org.graalvm.compiler.debug.DiagnosticsOutputDirectory$1
dup
aload 0
aload 2
aload 7
aload 4
invokespecial org.graalvm.compiler.debug.DiagnosticsOutputDirectory$1.<init>:(Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;Ljava/nio/file/Path;Ljava/util/zip/ZipOutputStream;Ljava/util/List;)V
invokestatic java.nio.file.Files.walkFileTree:(Ljava/nio/file/Path;Ljava/util/Set;ILjava/nio/file/FileVisitor;)Ljava/nio/file/Path;
pop
11: ldc "Graal diagnostic output saved in %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;[Ljava/lang/Object;)V
12: aload 7
ifnull 23
aload 7
invokevirtual java.util.zip.ZipOutputStream.close:()V
goto 23
StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String java.nio.file.Path java.io.File java.util.List java.lang.Throwable java.lang.Throwable java.util.zip.ZipOutputStream
StackMap stack: java.lang.Throwable
13: astore 5
aload 7
ifnull 14
aload 7
invokevirtual java.util.zip.ZipOutputStream.close:()V
end local 7 StackMap locals:
StackMap stack:
14: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 6
aload 5
ifnonnull 16
aload 6
astore 5
goto 17
StackMap locals:
StackMap stack:
16: aload 5
aload 6
if_acmpeq 17
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 5
athrow
StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String java.nio.file.Path java.io.File java.util.List
StackMap stack: java.io.IOException
18: astore 5
start local 5 19: ldc "IO error archiving %s:%n%s. The directory will not be deleted and must be manually removed once the VM exits.%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
20: aload 2
aastore
dup
iconst_1
aload 5
aastore
21: invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
22: aload 4
invokeinterface java.util.List.clear:()V
end local 5 23: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.List.isEmpty:()Z
ifne 36
24: aconst_null
astore 5
start local 5 25: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 31
StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String java.nio.file.Path java.io.File java.util.List java.io.IOException top java.util.Iterator
StackMap stack:
26: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 6
start local 6 27: aload 6
invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
28: goto 31
StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String java.nio.file.Path java.io.File java.util.List java.io.IOException java.nio.file.Path java.util.Iterator
StackMap stack: java.io.IOException
29: astore 8
start local 8 30: aload 8
astore 5
end local 8 end local 6 31: StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String java.nio.file.Path java.io.File java.util.List java.io.IOException top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 26
32: aload 5
ifnull 36
33: ldc "IO error deleting %s:%n%s. This is most likely due to a compilation on another thread holding a handle to a file within this directory. Please delete the directory manually once the VM exits.%n"
iconst_2
anewarray java.lang.Object
dup
iconst_0
34: aload 2
aastore
dup
iconst_1
aload 5
aastore
35: invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 5 end local 4 end local 3 end local 2 36: StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
1 37 1 outDir Ljava/lang/String;
4 36 2 dir Ljava/nio/file/Path;
6 36 3 zip Ljava/io/File;
7 36 4 toDelete Ljava/util/List<Ljava/nio/file/Path;>;
9 14 7 zos Ljava/util/zip/ZipOutputStream;
19 23 5 e Ljava/io/IOException;
25 36 5 lastDeletionError Ljava/io/IOException;
27 31 6 p Ljava/nio/file/Path;
30 31 8 e Ljava/io/IOException;
Exception table:
from to target type
9 12 13 any
8 15 15 any
7 18 18 Class java.io.IOException
27 28 29 Class java.io.IOException
}
SourceFile: "DiagnosticsOutputDirectory.java"
NestMembers:
org.graalvm.compiler.debug.DiagnosticsOutputDirectory$1
InnerClasses:
org.graalvm.compiler.debug.DiagnosticsOutputDirectory$1