final class jdk.tools.jaotc.Linker
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.tools.jaotc.Linker
super_class: java.lang.Object
{
private final jdk.tools.jaotc.Options options;
descriptor: Ljdk/tools/jaotc/Options;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String objectFileName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String libraryFileName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String linkerCmd;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
java.lang.String objFile();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jaotc/Linker;
java.lang.String libFile();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.Linker.libraryFileName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jaotc/Linker;
void <init>(jdk.tools.jaotc.Main);
descriptor: (Ljdk/tools/jaotc/Main;)V
flags: (0x0000)
Code:
stack=5, locals=12, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
getfield jdk.tools.jaotc.Main.options:Ljdk/tools/jaotc/Options;
putfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
2: aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.outputName:Ljava/lang/String;
astore 2
start local 2 3: aload 0
aload 2
putfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
4: aload 0
aload 2
putfield jdk.tools.jaotc.Linker.libraryFileName:Ljava/lang/String;
5: aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
ifnull 7
new java.io.File
dup
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.exists:()Z
ifne 7
6: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Invalid linker path: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: jdk.tools.jaotc.Linker jdk.tools.jaotc.Main java.lang.String
StackMap stack:
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.osName:Ljava/lang/String;
dup
astore 5
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 3
-187773587: 8
73425108: 9
80246032: 10
default: 37
}
StackMap locals: jdk.tools.jaotc.Linker jdk.tools.jaotc.Main java.lang.String top top java.lang.String
StackMap stack:
8: aload 5
ldc "Mac OS X"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 28
goto 37
StackMap locals:
StackMap stack:
9: aload 5
ldc "Linux"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
goto 37
StackMap locals:
StackMap stack:
10: aload 5
ldc "SunOS"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 19
goto 37
11: StackMap locals:
StackMap stack:
aload 2
ldc ".so"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 13
12: aload 0
aload 2
iconst_0
aload 2
invokevirtual java.lang.String.length:()I
ldc ".so"
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
13: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
ifnull 14
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
goto 15
StackMap locals:
StackMap stack:
14: ldc "ld"
StackMap locals:
StackMap stack: java.lang.String
15: astore 3
start local 3 16: aload 0
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " -shared -z noexecstack -o "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.tools.jaotc.Linker.libraryFileName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.linkerCmd:Ljava/lang/String;
17: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " -v"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 18: goto 50
end local 4 end local 3 19: StackMap locals:
StackMap stack:
aload 2
ldc ".so"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 21
20: aload 0
aload 2
iconst_0
aload 2
invokevirtual java.lang.String.length:()I
ldc ".so"
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
21: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
new java.lang.StringBuilder
dup_x1
swap
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".o"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
22: aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
ifnull 23
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
goto 24
StackMap locals:
StackMap stack:
23: ldc "ld"
StackMap locals:
StackMap stack: java.lang.String
24: astore 3
start local 3 25: aload 0
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " -shared -o "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.tools.jaotc.Linker.libraryFileName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.linkerCmd:Ljava/lang/String;
26: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " -V"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 27: goto 50
end local 4 end local 3 28: StackMap locals:
StackMap stack:
aload 2
ldc ".dylib"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 30
29: aload 0
aload 2
iconst_0
aload 2
invokevirtual java.lang.String.length:()I
ldc ".dylib"
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
30: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
new java.lang.StringBuilder
dup_x1
swap
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".o"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
31: aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
ifnull 32
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
goto 33
StackMap locals:
StackMap stack:
32: ldc "ld"
StackMap locals:
StackMap stack: java.lang.String
33: astore 3
start local 3 34: aload 0
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " -dylib -o "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.tools.jaotc.Linker.libraryFileName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.linkerCmd:Ljava/lang/String;
35: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " -v"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 36: goto 50
end local 4 end local 3 37: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.osName:Ljava/lang/String;
ldc "Windows"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 49
38: aload 2
ldc ".dll"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 40
39: aload 0
aload 2
iconst_0
aload 2
invokevirtual java.lang.String.length:()I
ldc ".dll"
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
40: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
new java.lang.StringBuilder
dup_x1
swap
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".obj"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
41: aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
ifnull 42
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.linkerpath:Ljava/lang/String;
goto 43
StackMap locals:
StackMap stack:
42: invokestatic jdk.tools.jaotc.Linker.getWindowsLinkPath:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
43: astore 3
start local 3 44: aload 3
ifnonnull 46
45: new java.lang.InternalError
dup
ldc "Can't locate Microsoft Visual Studio amd64 link.exe"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
46: StackMap locals: jdk.tools.jaotc.Linker jdk.tools.jaotc.Main java.lang.String java.lang.String top java.lang.String
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " /DLL /OPT:NOREF /NOLOGO /NOENTRY"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " /OUT:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.tools.jaotc.Linker.libraryFileName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.tools.jaotc.Linker.linkerCmd:Ljava/lang/String;
47: aconst_null
astore 4
start local 4 48: goto 50
end local 4 end local 3 49: StackMap locals: jdk.tools.jaotc.Linker jdk.tools.jaotc.Main java.lang.String top top java.lang.String
StackMap stack:
new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Unsupported platform: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.osName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
start local 3 start local 4 50: StackMap locals: jdk.tools.jaotc.Linker jdk.tools.jaotc.Main java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 4
ifnull 60
51: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 4
invokevirtual java.lang.Runtime.exec:(Ljava/lang/String;)Ljava/lang/Process;
astore 6
start local 6 52: aload 6
invokevirtual java.lang.Process.waitFor:()I
istore 7
start local 7 53: iload 7
ifeq 60
54: aload 6
invokevirtual java.lang.Process.getErrorStream:()Ljava/io/InputStream;
astore 8
start local 8 55: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 8
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 9
start local 9 56: aload 9
invokevirtual java.io.BufferedReader.lines:()Ljava/util/stream/Stream;
astore 10
start local 10 57: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 11
start local 11 58: aload 10
invokeinterface java.util.stream.Stream.iterator:()Ljava/util/Iterator;
aload 11
invokedynamic accept(Ljava/lang/StringBuilder;)Ljava/util/function/Consumer;
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:
(Ljava/lang/Object;)V
jdk/tools/jaotc/Linker.lambda$0(Ljava/lang/StringBuilder;Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
invokeinterface java.util.Iterator.forEachRemaining:(Ljava/util/function/Consumer;)V
59: new java.lang.InternalError
dup
aload 11
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 60: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 61 0 this Ljdk/tools/jaotc/Linker;
0 61 1 main Ljdk/tools/jaotc/Main;
3 61 2 name Ljava/lang/String;
16 19 3 linkerPath Ljava/lang/String;
25 28 3 linkerPath Ljava/lang/String;
34 37 3 linkerPath Ljava/lang/String;
44 49 3 linkerPath Ljava/lang/String;
50 61 3 linkerPath Ljava/lang/String;
18 19 4 linkerCheck Ljava/lang/String;
27 28 4 linkerCheck Ljava/lang/String;
36 37 4 linkerCheck Ljava/lang/String;
48 49 4 linkerCheck Ljava/lang/String;
50 61 4 linkerCheck Ljava/lang/String;
52 60 6 p Ljava/lang/Process;
53 60 7 exitCode I
55 60 8 stderr Ljava/io/InputStream;
56 60 9 br Ljava/io/BufferedReader;
57 60 10 lines Ljava/util/stream/Stream<Ljava/lang/String;>;
58 60 11 sb Ljava/lang/StringBuilder;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
main
void link();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=1
start local 0 0: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 0
getfield jdk.tools.jaotc.Linker.linkerCmd:Ljava/lang/String;
invokevirtual java.lang.Runtime.exec:(Ljava/lang/String;)Ljava/lang/Process;
astore 1
start local 1 1: aload 1
invokevirtual java.lang.Process.waitFor:()I
istore 2
start local 2 2: iload 2
ifeq 11
3: aload 1
invokevirtual java.lang.Process.getErrorStream:()Ljava/io/InputStream;
astore 3
start local 3 4: aload 3
invokevirtual java.io.InputStream.read:()I
iconst_m1
if_icmpne 6
5: aload 1
invokevirtual java.lang.Process.getInputStream:()Ljava/io/InputStream;
astore 3
6: StackMap locals: java.lang.Process int java.io.InputStream
StackMap stack:
new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 3
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
start local 4 7: aload 4
invokevirtual java.io.BufferedReader.lines:()Ljava/util/stream/Stream;
astore 5
start local 5 8: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 6
start local 6 9: aload 5
invokeinterface java.util.stream.Stream.iterator:()Ljava/util/Iterator;
aload 6
invokedynamic accept(Ljava/lang/StringBuilder;)Ljava/util/function/Consumer;
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:
(Ljava/lang/Object;)V
jdk/tools/jaotc/Linker.lambda$1(Ljava/lang/StringBuilder;Ljava/lang/String;)V (6)
(Ljava/lang/String;)V
invokeinterface java.util.Iterator.forEachRemaining:(Ljava/util/function/Consumer;)V
10: new java.lang.InternalError
dup
aload 6
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 6 end local 5 end local 4 end local 3 11: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 0
getfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 3
start local 3 12: aload 3
invokevirtual java.io.File.exists:()Z
ifeq 15
13: aload 3
invokevirtual java.io.File.delete:()Z
ifne 15
14: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Failed to delete "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.tools.jaotc.Linker.objectFileName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " file"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals: java.io.File
StackMap stack:
new java.io.File
dup
aload 0
getfield jdk.tools.jaotc.Linker.libraryFileName:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
start local 4 16: aload 4
invokevirtual java.io.File.exists:()Z
ifeq 19
aload 0
getfield jdk.tools.jaotc.Linker.options:Ljdk/tools/jaotc/Options;
getfield jdk.tools.jaotc.Options.osName:Ljava/lang/String;
ldc "Windows"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 19
17: aload 4
iconst_0
iconst_0
invokevirtual java.io.File.setExecutable:(ZZ)Z
ifne 19
18: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Failed to change attribute for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.tools.jaotc.Linker.libraryFileName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " file"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals: java.io.File
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/tools/jaotc/Linker;
1 20 1 p Ljava/lang/Process;
2 20 2 exitCode I
4 11 3 stderr Ljava/io/InputStream;
7 11 4 br Ljava/io/BufferedReader;
8 11 5 lines Ljava/util/stream/Stream<Ljava/lang/String;>;
9 11 6 sb Ljava/lang/StringBuilder;
12 20 3 objFile Ljava/io/File;
16 20 4 libFile Ljava/io/File;
Exceptions:
throws java.lang.Exception
private static java.lang.String getWindowsLinkPath();
descriptor: ()Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=9, args_size=0
0: ldc "\\VC\\bin\\amd64\\link.exe"
astore 0
start local 0 1: invokestatic jdk.tools.jaotc.Linker$VSVERSIONS.values:()[Ljdk/tools/jaotc/Linker$VSVERSIONS;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 11
StackMap locals: java.lang.String top int int jdk.tools.jaotc.Linker$VSVERSIONS[]
StackMap stack:
2: aload 4
iload 2
aaload
astore 1
start local 1 3: aload 1
invokevirtual jdk.tools.jaotc.Linker$VSVERSIONS.EnvVariable:()Ljava/lang/String;
invokestatic java.lang.System.getenv:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 4: aload 5
ifnull 10
5: new java.io.File
dup
aload 5
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 6
start local 6 6: aload 6
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
astore 7
start local 7 7: new java.io.File
dup
aload 7
aload 0
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 8
start local 8 8: aload 8
invokevirtual java.io.File.exists:()Z
ifeq 10
9: aload 8
invokevirtual java.io.File.getPath:()Ljava/lang/String;
areturn
end local 8 end local 7 end local 6 end local 5 end local 1 10: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
11: iload 2
iload 3
if_icmplt 2
12: invokestatic jdk.tools.jaotc.Linker$VSVERSIONS.values:()[Ljdk/tools/jaotc/Linker$VSVERSIONS;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 18
StackMap locals:
StackMap stack:
13: aload 4
iload 2
aaload
astore 1
start local 1 14: aload 1
invokevirtual jdk.tools.jaotc.Linker$VSVERSIONS.WellKnownPath:()Ljava/lang/String;
astore 5
start local 5 15: new java.io.File
dup
aload 5
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.exists:()Z
ifeq 17
16: aload 5
areturn
end local 5 end local 1 17: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
18: iload 2
iload 3
if_icmplt 13
19: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 20 0 link Ljava/lang/String;
3 10 1 vs Ljdk/tools/jaotc/Linker$VSVERSIONS;
4 10 5 vspath Ljava/lang/String;
6 10 6 commonTools Ljava/io/File;
7 10 7 vsRoot Ljava/io/File;
8 10 8 linkPath Ljava/io/File;
14 17 1 vs Ljdk/tools/jaotc/Linker$VSVERSIONS;
15 17 5 wkp Ljava/lang/String;
private static void lambda$0(java.lang.StringBuilder, java.lang.String);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 e Ljava/lang/String;
private static void lambda$1(java.lang.StringBuilder, java.lang.String);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/String;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 e Ljava/lang/String;
}
SourceFile: "Linker.java"
NestMembers:
jdk.tools.jaotc.Linker$VSVERSIONS
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final VSVERSIONS = jdk.tools.jaotc.Linker$VSVERSIONS of jdk.tools.jaotc.Linker