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
private static java.lang.String lastTargetAnnouncement;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
RuntimeVisibleAnnotations:
jdk.vm.ci.common.NativeImageReinitialize()
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=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.graalvm.compiler.debug.IgvDumpChannel.channel:()Ljava/nio/channels/WritableByteChannel;
astore 2
start local 2 1: aload 2
ifnonnull 2
iconst_0
goto 3
StackMap locals: java.nio.channels.WritableByteChannel
StackMap stack:
2: aload 2
aload 1
invokeinterface java.nio.channels.WritableByteChannel.write:(Ljava/nio/ByteBuffer;)I
StackMap locals:
StackMap stack: int
3: ireturn
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 src Ljava/nio/ByteBuffer;
1 4 2 channel Ljava/nio/channels/WritableByteChannel;
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=5, locals=2, 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 11
3: getstatic org.graalvm.compiler.debug.DebugOptions.PrintGraph:Lorg/graalvm/compiler/options/EnumOptionKey;
aload 0
getfield org.graalvm.compiler.debug.IgvDumpChannel.options:Lorg/graalvm/compiler/options/OptionValues;
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast org.graalvm.compiler.debug.DebugOptions$PrintGraphTarget
astore 1
start local 1 4: aload 1
getstatic org.graalvm.compiler.debug.DebugOptions$PrintGraphTarget.File:Lorg/graalvm/compiler/debug/DebugOptions$PrintGraphTarget;
if_acmpne 7
5: aload 0
aload 0
getfield org.graalvm.compiler.debug.IgvDumpChannel.pathProvider:Ljava/util/function/Supplier;
aconst_null
invokestatic org.graalvm.compiler.debug.IgvDumpChannel.createFileChannel:(Ljava/util/function/Supplier;Ljava/lang/String;)Ljava/nio/channels/WritableByteChannel;
putfield org.graalvm.compiler.debug.IgvDumpChannel.sharedChannel:Ljava/nio/channels/WritableByteChannel;
6: goto 11
StackMap locals: org.graalvm.compiler.debug.DebugOptions$PrintGraphTarget
StackMap stack:
7: aload 1
getstatic org.graalvm.compiler.debug.DebugOptions$PrintGraphTarget.Network:Lorg/graalvm/compiler/debug/DebugOptions$PrintGraphTarget;
if_acmpne 10
8: 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;
9: goto 11
10: StackMap locals:
StackMap stack:
ldc "WARNING: Graph dumping requested but value of %s option is %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
getstatic org.graalvm.compiler.debug.DebugOptions.PrintGraph:Lorg/graalvm/compiler/options/EnumOptionKey;
invokevirtual org.graalvm.compiler.options.EnumOptionKey.getName:()Ljava/lang/String;
aastore
dup
iconst_1
getstatic org.graalvm.compiler.debug.DebugOptions$PrintGraphTarget.Disable:Lorg/graalvm/compiler/debug/DebugOptions$PrintGraphTarget;
aastore
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 1 11: 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 12 0 this Lorg/graalvm/compiler/debug/IgvDumpChannel;
4 11 1 target Lorg/graalvm/compiler/debug/DebugOptions$PrintGraphTarget;
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=5, locals=6, 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.PrintGraphPort: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 java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 5
start local 5 4: aload 5
invokestatic org.graalvm.compiler.debug.IgvDumpChannel.maybeAnnounceTarget:(Ljava/lang/String;)V
5: aload 4
6: areturn
end local 5 end local 4 7: StackMap locals: java.util.function.Supplier org.graalvm.compiler.options.OptionValues java.lang.String int
StackMap stack: java.io.IOException
pop
8: aconst_null
areturn
9: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 10: 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;
astore 5
start local 5 11: aload 0
ifnull 13
12: aload 0
aload 5
invokestatic org.graalvm.compiler.debug.IgvDumpChannel.createFileChannel:(Ljava/util/function/Supplier;Ljava/lang/String;)Ljava/nio/channels/WritableByteChannel;
areturn
13: StackMap locals: java.io.IOException java.lang.String
StackMap stack:
new java.io.IOException
dup
aload 5
aload 4
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 pathProvider Ljava/util/function/Supplier<Ljava/nio/file/Path;>;
0 14 1 options Lorg/graalvm/compiler/options/OptionValues;
1 14 2 host Ljava/lang/String;
2 14 3 port I
3 7 4 channel Ljava/nio/channels/WritableByteChannel;
4 7 5 targetAnnouncement Ljava/lang/String;
10 14 4 e Ljava/io/IOException;
11 14 5 networkFailure Ljava/lang/String;
Exception table:
from to target type
2 6 7 Class java.nio.channels.ClosedByInterruptException
2 6 7 Class java.io.InterruptedIOException
2 6 9 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 void maybeAnnounceTarget(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.graalvm.compiler.debug.IgvDumpChannel.lastTargetAnnouncement:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 3
1: aload 0
putstatic org.graalvm.compiler.debug.IgvDumpChannel.lastTargetAnnouncement:Ljava/lang/String;
2: aload 0
invokestatic org.graalvm.compiler.debug.TTY.println:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 targetAnnouncement Ljava/lang/String;
MethodParameters:
Name Flags
targetAnnouncement
private static java.nio.channels.WritableByteChannel createFileChannel(java.util.function.Supplier<java.nio.file.Path>, java.lang.String);
descriptor: (Ljava/util/function/Supplier;Ljava/lang/String;)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: aload 0
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 2
start local 2 1: aload 2
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;
astore 3
start local 3 2: aload 2
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
astore 4
start local 4 3: aload 4
invokevirtual java.io.File.isDirectory:()Z
ifne 5
4: aload 4
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
astore 4
5: StackMap locals: java.nio.file.Path java.nio.channels.FileChannel java.io.File
StackMap stack:
aload 1
ifnonnull 8
6: new java.lang.StringBuilder
dup
ldc "Dumping IGV graphs in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.IgvDumpChannel.maybeAnnounceTarget:(Ljava/lang/String;)V
7: goto 9
8: StackMap locals:
StackMap stack:
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 ". Dumping IGV graphs in "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.graalvm.compiler.debug.IgvDumpChannel.maybeAnnounceTarget:(Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
aload 3
10: areturn
end local 4 end local 3 11: StackMap locals: java.util.function.Supplier java.lang.String java.nio.file.Path
StackMap stack: java.io.IOException
astore 3
start local 3 12: new java.io.IOException
dup
ldc "Failed to open %s to dump IGV graphs"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 3
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 pathProvider Ljava/util/function/Supplier<Ljava/nio/file/Path;>;
0 13 1 networkFailure Ljava/lang/String;
1 13 2 path Ljava/nio/file/Path;
2 11 3 channel Ljava/nio/channels/FileChannel;
3 11 4 dir Ljava/io/File;
12 13 3 e Ljava/io/IOException;
Exception table:
from to target type
1 10 11 Class java.io.IOException
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Supplier<Ljava/nio/file/Path;>;Ljava/lang/String;)Ljava/nio/channels/WritableByteChannel;
MethodParameters:
Name Flags
pathProvider
networkFailure
}
SourceFile: "IgvDumpChannel.java"
InnerClasses:
public final PrintGraphTarget = org.graalvm.compiler.debug.DebugOptions$PrintGraphTarget of org.graalvm.compiler.debug.DebugOptions