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=4, locals=7, 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:
aload 3
invokedynamic run(Ljava/lang/String;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lambda$0(Ljava/lang/String;)V (6)
()V
14: invokestatic org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider.getBarrierPointer:()Ljdk/internal/vm/compiler/word/Pointer;
15: invokestatic org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider.execute:(Ljava/lang/Runnable;Ljdk/internal/vm/compiler/word/Pointer;)Z
istore 5
start local 5 16: new java.io.FileOutputStream
dup
aload 3
iconst_1
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;Z)V
astore 6
start local 6 17: iload 5
ifeq 19
18: aload 0
iconst_1
aload 6
invokevirtual org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.printVMConfig:(ZLjava/io/FileOutputStream;)V
19: StackMap locals: int java.io.FileOutputStream
StackMap stack:
aload 0
aload 6
putfield org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lazy:Ljava/io/OutputStream;
end local 6 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: aload 0
invokedynamic run(Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream.lambda$1()V (7)
()V
24: invokestatic org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider.getBarrierPointer:()Ljdk/internal/vm/compiler/word/Pointer;
25: invokestatic org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider.execute:(Ljava/lang/Runnable;Ljdk/internal/vm/compiler/word/Pointer;)Z
pop
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;
16 20 5 executed Z
17 20 6 result Ljava/io/FileOutputStream;
Exception table:
from to target type
2 21 28 any
22 27 28 any
28 29 28 any
Exceptions:
throws java.io.FileNotFoundException
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
private static void lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=1
0: new java.io.File
dup
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: aload 1
invokevirtual java.io.File.exists:()Z
ifeq 3
2: aload 1
invokevirtual java.io.File.delete:()Z
pop
end local 1 3: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 3 1 file Ljava/io/File;
private void lambda$1();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: 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 1
start local 1 1: aload 1
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
2: aload 1
invokevirtual java.io.PrintStream.flush:()V
end local 1 3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/graalvm/compiler/hotspot/HotSpotTTYStreamProvider$LogStreamOptionKey$DelayedOutputStream;
1 3 1 ps Ljava/io/PrintStream;
}
SourceFile: "HotSpotTTYStreamProvider.java"
NestHost: org.graalvm.compiler.hotspot.HotSpotTTYStreamProvider
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
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