public class org.graalvm.compiler.hotspot.PrintStreamOptionKey extends org.graalvm.compiler.options.OptionKey<java.lang.String>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.hotspot.PrintStreamOptionKey
super_class: org.graalvm.compiler.options.OptionKey
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 // org.graalvm.compiler.hotspot.PrintStreamOptionKey this
0: .line 48
aload 0 /* this */
aconst_null
invokespecial org.graalvm.compiler.options.OptionKey.<init>:(Ljava/lang/Object;)V
1: .line 49
return
end local 0 // org.graalvm.compiler.hotspot.PrintStreamOptionKey this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/hotspot/PrintStreamOptionKey;
private static java.lang.String makeFilename(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 // java.lang.String nameTemplate
0: .line 56
aload 0 /* nameTemplate */
astore 1 /* name */
start local 1 // java.lang.String name
1: .line 57
aload 1 /* name */
ldc "%p"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 3
2: .line 58
aload 1 /* name */
ldc "%p"
invokestatic org.graalvm.compiler.serviceprovider.GraalServices.getExecutionID:()Ljava/lang/String;
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 1 /* name */
3: .line 60
StackMap locals: java.lang.String
StackMap stack:
aload 1 /* name */
ldc "%t"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 5
4: .line 61
aload 1 /* name */
ldc "%t"
invokestatic java.lang.System.currentTimeMillis:()J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 1 /* name */
5: .line 63
StackMap locals:
StackMap stack:
aload 1 /* name */
areturn
end local 1 // java.lang.String name
end local 0 // java.lang.String nameTemplate
LocalVariableTable:
Start End Slot Name Signature
0 6 0 nameTemplate Ljava/lang/String;
1 6 1 name Ljava/lang/String;
MethodParameters:
Name Flags
nameTemplate
public java.io.PrintStream getStream(org.graalvm.compiler.options.OptionValues);
descriptor: (Lorg/graalvm/compiler/options/OptionValues;)Ljava/io/PrintStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 // org.graalvm.compiler.hotspot.PrintStreamOptionKey this
start local 1 // org.graalvm.compiler.options.OptionValues options
0: .line 112
aload 0 /* this */
aload 1 /* options */
invokevirtual org.graalvm.compiler.hotspot.PrintStreamOptionKey.getValue:(Lorg/graalvm/compiler/options/OptionValues;)Ljava/lang/Object;
checkcast java.lang.String
astore 2 /* nameTemplate */
start local 2 // java.lang.String nameTemplate
1: .line 113
aload 2 /* nameTemplate */
ifnull 14
2: .line 114
aload 2 /* nameTemplate */
invokestatic org.graalvm.compiler.hotspot.PrintStreamOptionKey.makeFilename:(Ljava/lang/String;)Ljava/lang/String;
astore 3 /* name */
start local 3 // java.lang.String name
3: .line 117
new java.io.PrintStream
dup
new java.io.FileOutputStream
dup
aload 3 /* name */
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
iconst_1
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;Z)V
astore 4 /* ps */
start local 4 // java.io.PrintStream ps
4: .line 121
invokestatic org.graalvm.compiler.serviceprovider.GraalServices.getInputArguments:()Ljava/util/List;
astore 5 /* inputArguments */
start local 5 // java.util.List inputArguments
5: .line 122
aload 5 /* inputArguments */
ifnull 7
6: .line 123
aload 4 /* ps */
new java.lang.StringBuilder
dup
ldc "VM Arguments: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
aload 5 /* inputArguments */
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
7: .line 125
StackMap locals: org.graalvm.compiler.hotspot.PrintStreamOptionKey org.graalvm.compiler.options.OptionValues java.lang.String java.lang.String java.io.PrintStream java.util.List
StackMap stack:
ldc "sun.java.command"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 6 /* cmd */
start local 6 // java.lang.String cmd
8: .line 126
aload 6 /* cmd */
ifnull 10
9: .line 127
aload 4 /* ps */
new java.lang.StringBuilder
dup
ldc "sun.java.command="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6 /* cmd */
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
10: .line 129
StackMap locals: java.lang.String
StackMap stack:
aload 4 /* ps */
11: areturn
end local 6 // java.lang.String cmd
end local 5 // java.util.List inputArguments
end local 4 // java.io.PrintStream ps
12: .line 130
StackMap locals: org.graalvm.compiler.hotspot.PrintStreamOptionKey org.graalvm.compiler.options.OptionValues java.lang.String java.lang.String
StackMap stack: java.io.FileNotFoundException
astore 4 /* e */
start local 4 // java.io.FileNotFoundException e
13: .line 131
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 /* name */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4 /* e */
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 // java.io.FileNotFoundException e
end local 3 // java.lang.String name
14: .line 134
StackMap locals:
StackMap stack:
new java.io.PrintStream
dup
new org.graalvm.compiler.hotspot.PrintStreamOptionKey$DelayedOutputStream
dup
invokespecial org.graalvm.compiler.hotspot.PrintStreamOptionKey$DelayedOutputStream.<init>:()V
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
areturn
end local 2 // java.lang.String nameTemplate
end local 1 // org.graalvm.compiler.options.OptionValues options
end local 0 // org.graalvm.compiler.hotspot.PrintStreamOptionKey this
LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/graalvm/compiler/hotspot/PrintStreamOptionKey;
0 15 1 options Lorg/graalvm/compiler/options/OptionValues;
1 15 2 nameTemplate Ljava/lang/String;
3 14 3 name Ljava/lang/String;
4 12 4 ps Ljava/io/PrintStream;
5 12 5 inputArguments Ljava/util/List<Ljava/lang/String;>;
8 12 6 cmd Ljava/lang/String;
13 14 4 e Ljava/io/FileNotFoundException;
Exception table:
from to target type
3 11 12 Class java.io.FileNotFoundException
MethodParameters:
Name Flags
options
}
Signature: Lorg/graalvm/compiler/options/OptionKey<Ljava/lang/String;>;
SourceFile: "PrintStreamOptionKey.java"
NestMembers:
org.graalvm.compiler.hotspot.PrintStreamOptionKey$DelayedOutputStream
InnerClasses:
DelayedOutputStream = org.graalvm.compiler.hotspot.PrintStreamOptionKey$DelayedOutputStream of org.graalvm.compiler.hotspot.PrintStreamOptionKey