class org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream
super_class: java.io.OutputStream
{
private volatile java.io.OutputStream lazy;
descriptor: Ljava/io/OutputStream;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
RuntimeVisibleAnnotations:
jdk.vm.ci.common.NativeImageReinitialize()
final org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey this$1;
descriptor: Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey);
descriptor: (Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.this$1:Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey;
aload 0
invokespecial java.io.OutputStream.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream;
MethodParameters:
Name Flags
this$0 final
private java.io.OutputStream lazy();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
getfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:Ljava/io/OutputStream;
ifnonnull 30
1: aload 0
dup
astore 1
monitorenter
2: aload 0
getfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:Ljava/io/OutputStream;
ifnonnull 26
3: aload 0
getfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.this$1:Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey;
invokestatic org.graalvm.compiler.hotspot.HotSpotGraalOptionValues.defaultOptions:()Lorg/graalvm/compiler/options/OptionValues;
invokevirtual org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 4: aload 2
ifnull 22
5: aload 2
invokestatic org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey.makeFilename:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 6: aload 3
dup
astore 4
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
1248: 7
1258: 8
default: 13
}
StackMap locals: org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream java.lang.String java.lang.String java.lang.String
StackMap stack:
7: aload 4
ldc "%e"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
goto 13
StackMap locals:
StackMap stack:
8: aload 4
ldc "%o"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
goto 13
9: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
putfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:Ljava/io/OutputStream;
10: goto 20
11: StackMap locals:
StackMap stack:
aload 0
getstatic java.lang.System.err:Ljava/io/PrintStream;
putfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:Ljava/io/OutputStream;
12: goto 20
13: StackMap locals:
StackMap stack:
new java.io.FileOutputStream
dup
aload 3
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
astore 5
start local 5 14: getstatic jdk.vm.ci.services.Services.IS_IN_NATIVE_IMAGE:Z
ifne 16
15: aload 0
iconst_1
aload 5
invokevirtual org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.printVMConfig:(ZLjava/io/FileOutputStream;)V
16: StackMap locals: java.io.FileOutputStream
StackMap stack:
aload 0
aload 5
putfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:Ljava/io/OutputStream;
end local 5 17: goto 20
StackMap locals: org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream java.lang.String java.lang.String java.lang.String
StackMap stack: java.io.FileNotFoundException
18: astore 5
start local 5 19: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "couldn't open file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 20: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:Ljava/io/OutputStream;
aload 1
monitorexit
21: areturn
end local 3 22: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime:()Ljdk/vm/ci/hotspot/HotSpotJVMCIRuntime;
invokevirtual jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.getLogStream:()Ljava/io/OutputStream;
putfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:Ljava/io/OutputStream;
23: new java.io.PrintStream
dup
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:Ljava/io/OutputStream;
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
astore 3
start local 3 24: aload 3
ldc "[Use -D%sLogFile=<path> to redirect Graal log output to a file.]%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "graal."
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
25: aload 3
invokevirtual java.io.PrintStream.flush:()V
end local 3 end local 2 26: StackMap locals:
StackMap stack:
aload 1
monitorexit
27: goto 30
StackMap locals:
StackMap stack: java.lang.Throwable
28: aload 1
monitorexit
29: athrow
30: StackMap locals:
StackMap stack:
aload 0
getfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:Ljava/io/OutputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream;
4 26 2 nameTemplate Ljava/lang/String;
6 22 3 name Ljava/lang/String;
14 17 5 result Ljava/io/FileOutputStream;
19 20 5 e Ljava/io/FileNotFoundException;
24 26 3 ps Ljava/io/PrintStream;
Exception table:
from to target type
13 17 18 Class java.io.FileNotFoundException
2 21 28 any
22 27 28 any
28 29 28 any
private void printVMConfig(boolean, java.io.FileOutputStream);
descriptor: (ZLjava/io/FileOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new java.io.PrintStream
dup
aload 2
iload 1
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;Z)V
astore 3
start local 3 1: invokestatic org.graalvm.compiler.serviceprovider.GraalServices.getInputArguments:()Ljava/util/List;
astore 4
start local 4 2: aload 4
ifnull 4
3: aload 3
new java.lang.StringBuilder
dup
ldc "VM Arguments: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
aload 4
invokestatic java.lang.String.join:(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: StackMap locals: java.io.PrintStream java.util.List
StackMap stack:
invokestatic jdk.vm.ci.services.Services.getSavedProperties:()Ljava/util/Map;
ldc "sun.java.command"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 5: aload 5
ifnull 7
6: aload 3
new java.lang.StringBuilder
dup
ldc "sun.java.command="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: StackMap locals: java.lang.String
StackMap stack:
return
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 8 0 this Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream;
0 8 1 enableAutoflush Z
0 8 2 result Ljava/io/FileOutputStream;
1 8 3 ps Ljava/io/PrintStream;
2 8 4 inputArguments Ljava/util/List<Ljava/lang/String;>;
5 8 5 cmd Ljava/lang/String;
RuntimeInvisibleAnnotations:
org.graalvm.compiler.core.common.SuppressFBWarnings(value = {"DLS_DEAD_LOCAL_STORE"}, justification = "false positive on dead store to `ps`")
MethodParameters:
Name Flags
enableAutoflush final
result
public void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:()Ljava/io/OutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream;
0 2 1 b [B
0 2 2 off I
0 2 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public void write(int);
descriptor: (I)V
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.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:()Ljava/io/OutputStream;
iload 1
invokevirtual java.io.OutputStream.write:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream;
0 2 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:()Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:()Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "HotSpotTTYStreamProvider.java"
NestHost: org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider
InnerClasses:
private LogStreamOptionKey = org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey of org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider
DelayedOutputStream = org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream of org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey