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;
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 11
9: ldc "Warning: Graal diagnostic directory already closed"
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
10: aconst_null
areturn
11: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
0 12 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
invokestatic org.graalvm.compiler.serviceprovider.GraalServices.getExecutionID:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 64
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokestatic org.graalvm.compiler.serviceprovider.IsolateUtil.getIsolateID:()J
invokevirtual java.lang.StringBuilder.append:(J)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=10, locals=10, 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 37
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 37
5: new java.lang.StringBuilder
dup
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 6: 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 4
start local 4 7: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 5
start local 5 8: aconst_null
astore 6
aconst_null
astore 7
9: new java.util.zip.ZipOutputStream
dup
new java.io.FileOutputStream
dup
aload 4
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
invokespecial java.util.zip.ZipOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 8
start local 8 10: aload 8
bipush 9
invokevirtual java.util.zip.ZipOutputStream.setLevel:(I)V
11: aload 2
invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
ldc 2147483647
new org.graalvm.compiler.debug.DiagnosticsOutputDirectory$1
dup
aload 0
aload 3
aload 2
aload 8
aload 5
invokespecial org.graalvm.compiler.debug.DiagnosticsOutputDirectory$1.<init>:(Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;Ljava/lang/String;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
12: ldc "Graal diagnostic output saved in %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 4
aastore
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;[Ljava/lang/Object;)V
13: aload 8
ifnull 24
aload 8
invokevirtual java.util.zip.ZipOutputStream.close:()V
goto 24
StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String java.nio.file.Path java.lang.String java.io.File java.util.List java.lang.Throwable java.lang.Throwable java.util.zip.ZipOutputStream
StackMap stack: java.lang.Throwable
14: astore 6
aload 8
ifnull 15
aload 8
invokevirtual java.util.zip.ZipOutputStream.close:()V
end local 8 StackMap locals:
StackMap stack:
15: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 7
aload 6
ifnonnull 17
aload 7
astore 6
goto 18
StackMap locals:
StackMap stack:
17: aload 6
aload 7
if_acmpeq 18
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 6
athrow
StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String java.nio.file.Path java.lang.String java.io.File java.util.List
StackMap stack: java.io.IOException
19: astore 6
start local 6 20: 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
21: aload 2
aastore
dup
iconst_1
aload 6
aastore
22: invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
23: aload 5
invokeinterface java.util.List.clear:()V
end local 6 24: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.List.isEmpty:()Z
ifne 37
25: aconst_null
astore 6
start local 6 26: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 32
StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String java.nio.file.Path java.lang.String java.io.File java.util.List java.io.IOException top java.util.Iterator
StackMap stack:
27: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 7
start local 7 28: aload 7
invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
29: goto 32
StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String java.nio.file.Path java.lang.String java.io.File java.util.List java.io.IOException java.nio.file.Path java.util.Iterator
StackMap stack: java.io.IOException
30: astore 9
start local 9 31: aload 9
astore 6
end local 9 end local 7 32: StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String java.nio.file.Path java.lang.String java.io.File java.util.List java.io.IOException top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 27
33: aload 6
ifnull 37
34: 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
35: aload 2
aastore
dup
iconst_1
aload 6
aastore
36: invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 6 end local 5 end local 4 end local 3 end local 2 37: 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 38 0 this Lorg/graalvm/compiler/debug/DiagnosticsOutputDirectory;
1 38 1 outDir Ljava/lang/String;
4 37 2 dir Ljava/nio/file/Path;
6 37 3 prefix Ljava/lang/String;
7 37 4 zip Ljava/io/File;
8 37 5 toDelete Ljava/util/List<Ljava/nio/file/Path;>;
10 15 8 zos Ljava/util/zip/ZipOutputStream;
20 24 6 e Ljava/io/IOException;
26 37 6 lastDeletionError Ljava/io/IOException;
28 32 7 p Ljava/nio/file/Path;
31 32 9 e Ljava/io/IOException;
Exception table:
from to target type
10 13 14 any
9 16 16 any
8 19 19 Class java.io.IOException
28 29 30 Class java.io.IOException
}
SourceFile: "DiagnosticsOutputDirectory.java"
NestMembers:
org.graalvm.compiler.debug.DiagnosticsOutputDirectory$1
InnerClasses:
org.graalvm.compiler.debug.DiagnosticsOutputDirectory$1