final class org.graalvm.compiler.debug.IgvDumpChannel implements java.nio.channels.WritableByteChannel
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: org.graalvm.compiler.debug.IgvDumpChannel
  super_class: java.lang.Object
{
  private final java.util.function.Supplier<java.nio.file.Path> pathProvider;
    descriptor: Ljava/util/function/Supplier;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/function/Supplier<Ljava/nio/file/Path;>;

  private final org.graalvm.compiler.options.OptionValues options;
    descriptor: Lorg/graalvm/compiler/options/OptionValues;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private java.nio.channels.WritableByteChannel sharedChannel;
    descriptor: Ljava/nio/channels/WritableByteChannel;
    flags: (0x0002) ACC_PRIVATE

  private boolean closed;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  void <init>(java.util.function.Supplier<java.nio.file.Path>, org.graalvm.compiler.options.OptionValues);
    descriptor: (Ljava/util/function/Supplier;Lorg/graalvm/compiler/options/OptionValues;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
        start local 1 // java.util.function.Supplier pathProvider
        start local 2 // org.graalvm.compiler.options.OptionValues options
         0: .line 48
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 49
            aload 0 /* this */
            aload 1 /* pathProvider */
            putfield org.graalvm.compiler.debug.IgvDumpChannel.pathProvider:Ljava/util/function/Supplier;
         2: .line 50
            aload 0 /* this */
            aload 2 /* options */
            putfield org.graalvm.compiler.debug.IgvDumpChannel.options:Lorg/graalvm/compiler/options/OptionValues;
         3: .line 51
            return
        end local 2 // org.graalvm.compiler.options.OptionValues options
        end local 1 // java.util.function.Supplier pathProvider
        end local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    4     0          this  Lorg/graalvm/compiler/debug/IgvDumpChannel;
            0    4     1  pathProvider  Ljava/util/function/Supplier<Ljava/nio/file/Path;>;
            0    4     2       options  Lorg/graalvm/compiler/options/OptionValues;
    Signature: (Ljava/util/function/Supplier<Ljava/nio/file/Path;>;Lorg/graalvm/compiler/options/OptionValues;)V
    MethodParameters:
              Name  Flags
      pathProvider  
      options       

  public int write(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
        start local 1 // java.nio.ByteBuffer src
         0: .line 55
            aload 0 /* this */
            invokevirtual org.graalvm.compiler.debug.IgvDumpChannel.channel:()Ljava/nio/channels/WritableByteChannel;
            aload 1 /* src */
            invokeinterface java.nio.channels.WritableByteChannel.write:(Ljava/nio/ByteBuffer;)I
            ireturn
        end local 1 // java.nio.ByteBuffer src
        end local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/debug/IgvDumpChannel;
            0    1     1   src  Ljava/nio/ByteBuffer;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      src   

  public boolean isOpen();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
         0: .line 60
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.IgvDumpChannel.closed:Z
            ifeq 1
            iconst_0
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_1
      StackMap locals:
      StackMap stack: int
         2: ireturn
        end local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/graalvm/compiler/debug/IgvDumpChannel;

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=0, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
         0: .line 65
            return
        end local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/graalvm/compiler/debug/IgvDumpChannel;
    Exceptions:
      throws java.io.IOException

  void realClose();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
         0: .line 68
            aload 0 /* this */
            iconst_1
            putfield org.graalvm.compiler.debug.IgvDumpChannel.closed:Z
         1: .line 69
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
            ifnull 4
         2: .line 70
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
            invokeinterface java.nio.channels.WritableByteChannel.close:()V
         3: .line 71
            aload 0 /* this */
            aconst_null
            putfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
         4: .line 73
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lorg/graalvm/compiler/debug/IgvDumpChannel;
    Exceptions:
      throws java.io.IOException

  java.nio.channels.WritableByteChannel channel();
    descriptor: ()Ljava/nio/channels/WritableByteChannel;
    flags: (0x0000) 
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
         0: .line 76
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.IgvDumpChannel.closed:Z
            ifeq 2
         1: .line 77
            new java.io.IOException
            dup
            invokespecial java.io.IOException.<init>:()V
            athrow
         2: .line 79
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
            ifnonnull 7
         3: .line 80
            getstatic org.graalvm.compiler.debug.DebugOptions.PrintGraphFile:Lorg/graalvm/compiler/options/OptionKey;
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.IgvDumpChannel.options:Lorg/graalvm/compiler/options/OptionValues;
            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 6
         4: .line 81
            aload 0 /* this */
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.IgvDumpChannel.pathProvider:Ljava/util/function/Supplier;
            invokestatic org.graalvm.compiler.debug.IgvDumpChannel.createFileChannel:(Ljava/util/function/Supplier;)Ljava/nio/channels/WritableByteChannel;
            putfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
         5: .line 82
            goto 7
         6: .line 83
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.IgvDumpChannel.pathProvider:Ljava/util/function/Supplier;
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.IgvDumpChannel.options:Lorg/graalvm/compiler/options/OptionValues;
            invokestatic org.graalvm.compiler.debug.IgvDumpChannel.createNetworkChannel:(Ljava/util/function/Supplier;Lorg/graalvm/compiler/options/OptionValues;)Ljava/nio/channels/WritableByteChannel;
            putfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
         7: .line 86
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
            areturn
        end local 0 // org.graalvm.compiler.debug.IgvDumpChannel this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lorg/graalvm/compiler/debug/IgvDumpChannel;
    Exceptions:
      throws java.io.IOException

  private static java.nio.channels.WritableByteChannel createNetworkChannel(java.util.function.Supplier<java.nio.file.Path>, org.graalvm.compiler.options.OptionValues);
    descriptor: (Ljava/util/function/Supplier;Lorg/graalvm/compiler/options/OptionValues;)Ljava/nio/channels/WritableByteChannel;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=7, locals=5, args_size=2
        start local 0 // java.util.function.Supplier pathProvider
        start local 1 // org.graalvm.compiler.options.OptionValues options
         0: .line 90
            getstatic org.graalvm.compiler.debug.DebugOptions.PrintGraphHost:Lorg/graalvm/compiler/options/OptionKey;
            aload 1 /* options */
            invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
            checkcast java.lang.String
            astore 2 /* host */
        start local 2 // java.lang.String host
         1: .line 91
            getstatic org.graalvm.compiler.debug.DebugOptions.PrintBinaryGraphPort:Lorg/graalvm/compiler/options/OptionKey;
            aload 1 /* options */
            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 3 /* port */
        start local 3 // int port
         2: .line 93
            new java.net.InetSocketAddress
            dup
            aload 2 /* host */
            iload 3 /* port */
            invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
            invokestatic java.nio.channels.SocketChannel.open:(Ljava/net/SocketAddress;)Ljava/nio/channels/SocketChannel;
            astore 4 /* channel */
        start local 4 // java.nio.channels.WritableByteChannel channel
         3: .line 94
            ldc "Connected to the IGV on %s:%d"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            aload 2 /* host */
            aastore
            dup
            iconst_1
            iload 3 /* port */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;[Ljava/lang/Object;)V
         4: .line 95
            aload 4 /* channel */
         5: areturn
        end local 4 // java.nio.channels.WritableByteChannel channel
         6: .line 96
      StackMap locals: java.util.function.Supplier org.graalvm.compiler.options.OptionValues java.lang.String int
      StackMap stack: java.io.IOException
            pop
         7: .line 102
            aconst_null
            areturn
         8: .line 103
      StackMap locals:
      StackMap stack: java.io.IOException
            astore 4 /* e */
        start local 4 // java.io.IOException e
         9: .line 104
            getstatic org.graalvm.compiler.debug.DebugOptions.PrintGraphFile:Lorg/graalvm/compiler/options/OptionKey;
            aload 1 /* options */
            invokevirtual org.graalvm.compiler.options.OptionKey.hasBeenSet:(Lorg/graalvm/compiler/options/OptionValues;)Z
            ifne 11
        10: .line 105
            aload 0 /* pathProvider */
            invokestatic org.graalvm.compiler.debug.IgvDumpChannel.createFileChannel:(Ljava/util/function/Supplier;)Ljava/nio/channels/WritableByteChannel;
            areturn
        11: .line 107
      StackMap locals: java.io.IOException
      StackMap stack:
            new java.io.IOException
            dup
            ldc "Could not connect to the IGV on %s:%d"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            aload 2 /* host */
            aastore
            dup
            iconst_1
            iload 3 /* port */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            aload 4 /* e */
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 4 // java.io.IOException e
        end local 3 // int port
        end local 2 // java.lang.String host
        end local 1 // org.graalvm.compiler.options.OptionValues options
        end local 0 // java.util.function.Supplier pathProvider
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   12     0  pathProvider  Ljava/util/function/Supplier<Ljava/nio/file/Path;>;
            0   12     1       options  Lorg/graalvm/compiler/options/OptionValues;
            1   12     2          host  Ljava/lang/String;
            2   12     3          port  I
            3    6     4       channel  Ljava/nio/channels/WritableByteChannel;
            9   12     4             e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           2     5       6  Class java.nio.channels.ClosedByInterruptException
           2     5       6  Class java.io.InterruptedIOException
           2     5       8  Class java.io.IOException
    Exceptions:
      throws java.io.IOException
    Signature: (Ljava/util/function/Supplier<Ljava/nio/file/Path;>;Lorg/graalvm/compiler/options/OptionValues;)Ljava/nio/channels/WritableByteChannel;
    MethodParameters:
              Name  Flags
      pathProvider  
      options       

  private static java.nio.channels.WritableByteChannel createFileChannel(java.util.function.Supplier<java.nio.file.Path>);
    descriptor: (Ljava/util/function/Supplier;)Ljava/nio/channels/WritableByteChannel;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=7, locals=3, args_size=1
        start local 0 // java.util.function.Supplier pathProvider
         0: .line 113
            aload 0 /* pathProvider */
            invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
            checkcast java.nio.file.Path
            astore 1 /* path */
        start local 1 // java.nio.file.Path path
         1: .line 115
            aload 1 /* path */
            iconst_2
            anewarray java.nio.file.OpenOption
            dup
            iconst_0
            getstatic java.nio.file.StandardOpenOption.WRITE:Ljava/nio/file/StandardOpenOption;
            aastore
            dup
            iconst_1
            getstatic java.nio.file.StandardOpenOption.CREATE:Ljava/nio/file/StandardOpenOption;
            aastore
            invokestatic java.nio.channels.FileChannel.open:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/FileChannel;
         2: areturn
         3: .line 116
      StackMap locals: java.util.function.Supplier java.nio.file.Path
      StackMap stack: java.io.IOException
            astore 2 /* e */
        start local 2 // java.io.IOException e
         4: .line 117
            new java.io.IOException
            dup
            ldc "Failed to open %s to dump IGV graphs"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* path */
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            aload 2 /* e */
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.io.IOException e
        end local 1 // java.nio.file.Path path
        end local 0 // java.util.function.Supplier pathProvider
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    5     0  pathProvider  Ljava/util/function/Supplier<Ljava/nio/file/Path;>;
            1    5     1          path  Ljava/nio/file/Path;
            4    5     2             e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           1     2       3  Class java.io.IOException
    Exceptions:
      throws java.io.IOException
    Signature: (Ljava/util/function/Supplier<Ljava/nio/file/Path;>;)Ljava/nio/channels/WritableByteChannel;
    MethodParameters:
              Name  Flags
      pathProvider  
}
SourceFile: "IgvDumpChannel.java"