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 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
        start local 1 // org.graalvm.compiler.options.OptionValues options
         0: .line 57
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 58
            aload 0 /* this */
            aload 1 /* options */
            putfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.options:Lorg/graalvm/compiler/options/OptionValues;
         2: .line 59
            return
        end local 1 // org.graalvm.compiler.options.OptionValues options
        end local 0 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
      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 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
         0: .line 72
            aload 0 /* this */
            iconst_1
            invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.getPath:(Z)Ljava/lang/String;
            areturn
        end local 0 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
      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 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
        start local 1 // boolean createIfNull
         0: .line 76
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
            ifnonnull 8
            iload 1 /* createIfNull */
            ifeq 8
         1: .line 77
            aload 0 /* this */
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.createPath:()Ljava/lang/String;
            putfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
         2: .line 78
            new java.io.File
            dup
            aload 0 /* this */
            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 /* dir */
        start local 2 // java.io.File dir
         3: .line 79
            aload 2 /* dir */
            invokevirtual java.io.File.exists:()Z
            ifne 8
         4: .line 80
            aload 2 /* dir */
            invokevirtual java.io.File.mkdirs:()Z
            pop
         5: .line 81
            aload 2 /* dir */
            invokevirtual java.io.File.exists:()Z
            ifne 8
         6: .line 82
            new java.lang.StringBuilder
            dup
            ldc "Warning: could not create Graal diagnostic directory "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 2 /* dir */
            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: .line 83
            aconst_null
            areturn
        end local 2 // java.io.File dir
         8: .line 87
      StackMap locals:
      StackMap stack:
            ldc "\u0000"
            aload 0 /* this */
            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 /* this */
            getfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
      StackMap locals:
      StackMap stack: java.lang.String
        10: areturn
        end local 1 // boolean createIfNull
        end local 0 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
      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 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
         0: .line 100
            aload 0 /* this */
            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 /* baseDir */
        start local 1 // java.nio.file.Path baseDir
         1: .line 101
            goto 4
        end local 1 // java.nio.file.Path baseDir
      StackMap locals:
      StackMap stack: java.io.IOException
         2: pop
         3: .line 104
            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 /* baseDir */
        start local 1 // java.nio.file.Path baseDir
         4: .line 106
      StackMap locals: java.nio.file.Path
      StackMap stack:
            aload 1 /* baseDir */
            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;
            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 // java.nio.file.Path baseDir
        end local 0 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
      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 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
         0: .line 113
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.archiveAndDelete:()V
         1: .line 114
            return
        end local 0 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
      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 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
         0: .line 120
            aload 0 /* this */
            iconst_0
            invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.getPath:(Z)Ljava/lang/String;
            astore 1 /* outDir */
        start local 1 // java.lang.String outDir
         1: .line 121
            aload 1 /* outDir */
            ifnull 36
         2: .line 125
            aload 0 /* this */
            ldc "\u0000"
            putfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
         3: .line 127
            aload 1 /* outDir */
            iconst_0
            anewarray java.lang.String
            invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
            astore 2 /* dir */
        start local 2 // java.nio.file.Path dir
         4: .line 128
            aload 2 /* dir */
            invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
            invokevirtual java.io.File.exists:()Z
            ifeq 36
         5: .line 129
            new java.io.File
            dup
            new java.lang.StringBuilder
            dup
            aload 1 /* outDir */
            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 /* zip */
        start local 3 // java.io.File zip
         6: .line 130
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            astore 4 /* toDelete */
        start local 4 // java.util.List toDelete
         7: .line 131
            aconst_null
            astore 5
            aconst_null
            astore 6
         8: new java.util.zip.ZipOutputStream
            dup
            new java.io.FileOutputStream
            dup
            aload 3 /* zip */
            invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
            invokespecial java.util.zip.ZipOutputStream.<init>:(Ljava/io/OutputStream;)V
            astore 7 /* zos */
        start local 7 // java.util.zip.ZipOutputStream zos
         9: .line 132
            aload 7 /* zos */
            bipush 9
            invokevirtual java.util.zip.ZipOutputStream.setLevel:(I)V
        10: .line 133
            aload 2 /* dir */
            invokestatic java.util.Collections.emptySet:()Ljava/util/Set;
            ldc 2147483647
            new org.graalvm.compiler.debug.DiagnosticsOutputDirectory$1
            dup
            aload 0 /* this */
            aload 2 /* dir */
            aload 7 /* zos */
            aload 4 /* toDelete */
            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: .line 154
            ldc "Graal diagnostic output saved in %s"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 3 /* zip */
            aastore
            invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;[Ljava/lang/Object;)V
        12: .line 155
            aload 7 /* zos */
            ifnull 23
            aload 7 /* zos */
            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 /* zos */
            ifnull 14
            aload 7 /* zos */
            invokevirtual java.util.zip.ZipOutputStream.close:()V
        end local 7 // java.util.zip.ZipOutputStream zos
      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 /* e */
        start local 5 // java.io.IOException e
        19: .line 156
            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: .line 157
            aload 2 /* dir */
            aastore
            dup
            iconst_1
            aload 5 /* e */
            aastore
        21: .line 156
            invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
        22: .line 158
            aload 4 /* toDelete */
            invokeinterface java.util.List.clear:()V
        end local 5 // java.io.IOException e
        23: .line 160
      StackMap locals:
      StackMap stack:
            aload 4 /* toDelete */
            invokeinterface java.util.List.isEmpty:()Z
            ifne 36
        24: .line 161
            aconst_null
            astore 5 /* lastDeletionError */
        start local 5 // java.io.IOException lastDeletionError
        25: .line 162
            aload 4 /* toDelete */
            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 /* p */
        start local 6 // java.nio.file.Path p
        27: .line 164
            aload 6 /* p */
            invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
        28: .line 165
            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 /* e */
        start local 8 // java.io.IOException e
        30: .line 166
            aload 8 /* e */
            astore 5 /* lastDeletionError */
        end local 8 // java.io.IOException e
        end local 6 // java.nio.file.Path p
        31: .line 162
      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: .line 169
            aload 5 /* lastDeletionError */
            ifnull 36
        33: .line 170
            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: .line 172
            aload 2 /* dir */
            aastore
            dup
            iconst_1
            aload 5 /* lastDeletionError */
            aastore
        35: .line 170
            invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
        end local 5 // java.io.IOException lastDeletionError
        end local 4 // java.util.List toDelete
        end local 3 // java.io.File zip
        end local 2 // java.nio.file.Path dir
        36: .line 177
      StackMap locals: org.graalvm.compiler.debug.DiagnosticsOutputDirectory java.lang.String
      StackMap stack:
            return
        end local 1 // java.lang.String outDir
        end local 0 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
      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