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 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.graalvm.compiler.debug.IgvDumpChannel.pathProvider:Ljava/util/function/Supplier;
2: aload 0
aload 2
putfield org.graalvm.compiler.debug.IgvDumpChannel.options:Lorg/graalvm/compiler/options/OptionValues;
3: return
end local 2 end local 1 end local 0 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 start local 1 0: aload 0
invokevirtual org.graalvm.compiler.debug.IgvDumpChannel.channel:()Ljava/nio/channels/WritableByteChannel;
aload 1
invokeinterface java.nio.channels.WritableByteChannel.write:(Ljava/nio/ByteBuffer;)I
ireturn
end local 1 end local 0 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 0: aload 0
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 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 0: return
end local 0 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 0: aload 0
iconst_1
putfield org.graalvm.compiler.debug.IgvDumpChannel.closed:Z
1: aload 0
getfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
ifnull 4
2: aload 0
getfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
invokeinterface java.nio.channels.WritableByteChannel.close:()V
3: aload 0
aconst_null
putfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
4: StackMap locals:
StackMap stack:
return
end local 0 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 0: aload 0
getfield org.graalvm.compiler.debug.IgvDumpChannel.closed:Z
ifeq 2
1: new java.io.IOException
dup
invokespecial java.io.IOException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
ifnonnull 7
3: getstatic org.graalvm.compiler.debug.DebugOptions.PrintGraphFile:Lorg/graalvm/compiler/options/OptionKey;
aload 0
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: aload 0
aload 0
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: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.graalvm.compiler.debug.IgvDumpChannel.pathProvider:Ljava/util/function/Supplier;
aload 0
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: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
areturn
end local 0 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 start local 1 0: getstatic org.graalvm.compiler.debug.DebugOptions.PrintGraphHost:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.OptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 1: getstatic org.graalvm.compiler.debug.DebugOptions.PrintBinaryGraphPort:Lorg/graalvm/compiler/options/OptionKey;
aload 1
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
start local 3 2: new java.net.InetSocketAddress
dup
aload 2
iload 3
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
start local 4 3: ldc "Connected to the IGV on %s:%d"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
iload 3
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: aload 4
5: areturn
end local 4 6: StackMap locals: java.util.function.Supplier org.graalvm.compiler.options.OptionValues java.lang.String int
StackMap stack: java.io.IOException
pop
7: aconst_null
areturn
8: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 9: getstatic org.graalvm.compiler.debug.DebugOptions.PrintGraphFile:Lorg/graalvm/compiler/options/OptionKey;
aload 1
invokevirtual org.graalvm.compiler.options.OptionKey.hasBeenSet:(Lorg/graalvm/compiler/options/OptionValues;)Z
ifne 11
10: aload 0
invokestatic org.graalvm.compiler.debug.IgvDumpChannel.createFileChannel:(Ljava/util/function/Supplier;)Ljava/nio/channels/WritableByteChannel;
areturn
11: 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
aastore
dup
iconst_1
iload 3
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
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 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 0: aload 0
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 1
start local 1 1: aload 1
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: StackMap locals: java.util.function.Supplier java.nio.file.Path
StackMap stack: java.io.IOException
astore 2
start local 2 4: 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
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 2
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 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"