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 58
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 59
            aload 0 /* this */
            aload 1 /* options */
            putfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.options:Lorg/graalvm/compiler/options/OptionValues;
         2: .line 60
            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 73
            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 77
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
            ifnonnull 8
            iload 1 /* createIfNull */
            ifeq 8
         1: .line 78
            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 79
            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 80
            aload 2 /* dir */
            invokevirtual java.io.File.exists:()Z
            ifne 8
         4: .line 81
            aload 2 /* dir */
            invokevirtual java.io.File.mkdirs:()Z
            pop
         5: .line 82
            aload 2 /* dir */
            invokevirtual java.io.File.exists:()Z
            ifne 8
         6: .line 83
            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 84
            aconst_null
            areturn
        end local 2 // java.io.File dir
         8: .line 88
      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 11
         9: .line 89
            ldc "Warning: Graal diagnostic directory already closed"
            invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
        10: .line 90
            aconst_null
            areturn
        11: .line 92
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
            areturn
        end local 1 // boolean createIfNull
        end local 0 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
      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 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
         0: .line 105
            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 106
            goto 4
        end local 1 // java.nio.file.Path baseDir
      StackMap locals:
      StackMap stack: java.io.IOException
         2: pop
         3: .line 109
            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 111
      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;
            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 // 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 118
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.debug.DiagnosticsOutputDirectory.archiveAndDelete:()V
         1: .line 119
            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=10, locals=10, args_size=1
        start local 0 // org.graalvm.compiler.debug.DiagnosticsOutputDirectory this
         0: .line 125
            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 126
            aload 1 /* outDir */
            ifnull 37
         2: .line 130
            aload 0 /* this */
            ldc "\u0000"
            putfield org.graalvm.compiler.debug.DiagnosticsOutputDirectory.path:Ljava/lang/String;
         3: .line 132
            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 133
            aload 2 /* dir */
            invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
            invokevirtual java.io.File.exists:()Z
            ifeq 37
         5: .line 134
            new java.lang.StringBuilder
            dup
            new java.io.File
            dup
            aload 1 /* outDir */
            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 /* prefix */
        start local 3 // java.lang.String prefix
         6: .line 135
            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 4 /* zip */
        start local 4 // java.io.File zip
         7: .line 136
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            astore 5 /* toDelete */
        start local 5 // java.util.List toDelete
         8: .line 137
            aconst_null
            astore 6
            aconst_null
            astore 7
         9: new java.util.zip.ZipOutputStream
            dup
            new java.io.FileOutputStream
            dup
            aload 4 /* zip */
            invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
            invokespecial java.util.zip.ZipOutputStream.<init>:(Ljava/io/OutputStream;)V
            astore 8 /* zos */
        start local 8 // java.util.zip.ZipOutputStream zos
        10: .line 138
            aload 8 /* zos */
            bipush 9
            invokevirtual java.util.zip.ZipOutputStream.setLevel:(I)V
        11: .line 139
            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 3 /* prefix */
            aload 2 /* dir */
            aload 8 /* zos */
            aload 5 /* toDelete */
            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: .line 160
            ldc "Graal diagnostic output saved in %s"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 4 /* zip */
            aastore
            invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;[Ljava/lang/Object;)V
        13: .line 161
            aload 8 /* zos */
            ifnull 24
            aload 8 /* zos */
            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 /* zos */
            ifnull 15
            aload 8 /* zos */
            invokevirtual java.util.zip.ZipOutputStream.close:()V
        end local 8 // java.util.zip.ZipOutputStream zos
      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 /* e */
        start local 6 // java.io.IOException e
        20: .line 162
            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: .line 163
            aload 2 /* dir */
            aastore
            dup
            iconst_1
            aload 6 /* e */
            aastore
        22: .line 162
            invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
        23: .line 164
            aload 5 /* toDelete */
            invokeinterface java.util.List.clear:()V
        end local 6 // java.io.IOException e
        24: .line 166
      StackMap locals:
      StackMap stack:
            aload 5 /* toDelete */
            invokeinterface java.util.List.isEmpty:()Z
            ifne 37
        25: .line 167
            aconst_null
            astore 6 /* lastDeletionError */
        start local 6 // java.io.IOException lastDeletionError
        26: .line 168
            aload 5 /* toDelete */
            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 /* p */
        start local 7 // java.nio.file.Path p
        28: .line 170
            aload 7 /* p */
            invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
        29: .line 171
            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 /* e */
        start local 9 // java.io.IOException e
        31: .line 172
            aload 9 /* e */
            astore 6 /* lastDeletionError */
        end local 9 // java.io.IOException e
        end local 7 // java.nio.file.Path p
        32: .line 168
      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: .line 175
            aload 6 /* lastDeletionError */
            ifnull 37
        34: .line 176
            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: .line 178
            aload 2 /* dir */
            aastore
            dup
            iconst_1
            aload 6 /* lastDeletionError */
            aastore
        36: .line 176
            invokestatic org.graalvm.compiler.debug.TTY.printf:(Ljava/lang/String;[Ljava/lang/Object;)V
        end local 6 // java.io.IOException lastDeletionError
        end local 5 // java.util.List toDelete
        end local 4 // java.io.File zip
        end local 3 // java.lang.String prefix
        end local 2 // java.nio.file.Path dir
        37: .line 183
      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   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