public class com.sun.tools.sjavac.comp.PooledSjavac implements com.sun.tools.sjavac.server.Sjavac
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.sjavac.comp.PooledSjavac
super_class: java.lang.Object
{
final com.sun.tools.sjavac.server.Sjavac delegate;
descriptor: Lcom/sun/tools/sjavac/server/Sjavac;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.ExecutorService pool;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0010) ACC_FINAL
public void <init>(com.sun.tools.sjavac.server.Sjavac, int);
descriptor: (Lcom/sun/tools/sjavac/server/Sjavac;I)V
flags: (0x0001) ACC_PUBLIC
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 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
aload 1
putfield com.sun.tools.sjavac.comp.PooledSjavac.delegate:Lcom/sun/tools/sjavac/server/Sjavac;
3: aload 0
iload 2
invokestatic java.util.concurrent.Executors.newFixedThreadPool:(I)Ljava/util/concurrent/ExecutorService;
putfield com.sun.tools.sjavac.comp.PooledSjavac.pool:Ljava/util/concurrent/ExecutorService;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/tools/sjavac/comp/PooledSjavac;
0 5 1 delegate Lcom/sun/tools/sjavac/server/Sjavac;
0 5 2 poolsize I
MethodParameters:
Name Flags
delegate
poolsize
public com.sun.tools.javac.main.Main$Result compile(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Lcom/sun/tools/javac/main/Main$Result;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: invokestatic com.sun.tools.sjavac.Log.get:()Lcom/sun/tools/sjavac/Log;
astore 2
start local 2 1: aload 0
getfield com.sun.tools.sjavac.comp.PooledSjavac.pool:Ljava/util/concurrent/ExecutorService;
aload 0
aload 2
aload 1
invokedynamic call(Lcom/sun/tools/sjavac/comp/PooledSjavac;Lcom/sun/tools/sjavac/Log;[Ljava/lang/String;)Ljava/util/concurrent/Callable;
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;
com/sun/tools/sjavac/comp/PooledSjavac.lambda$0(Lcom/sun/tools/sjavac/Log;[Ljava/lang/String;)Lcom/sun/tools/javac/main/Main$Result; (7)
()Lcom/sun/tools/javac/main/Main$Result;
invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
2: invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
checkcast com.sun.tools.javac.main.Main$Result
3: areturn
4: StackMap locals: com.sun.tools.sjavac.comp.PooledSjavac java.lang.String[] com.sun.tools.sjavac.Log
StackMap stack: java.lang.Exception
astore 3
start local 3 5: aload 3
invokevirtual java.lang.Exception.printStackTrace:()V
6: new java.lang.RuntimeException
dup
ldc "Error during compile"
aload 3
invokespecial java.lang.RuntimeException.<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 7 0 this Lcom/sun/tools/sjavac/comp/PooledSjavac;
0 7 1 args [Ljava/lang/String;
1 7 2 log Lcom/sun/tools/sjavac/Log;
5 7 3 e Ljava/lang/Exception;
Exception table:
from to target type
1 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
args
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: ldc "Shutting down PooledSjavac"
invokestatic com.sun.tools.sjavac.Log.debug:(Ljava/lang/String;)V
1: aload 0
getfield com.sun.tools.sjavac.comp.PooledSjavac.pool:Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
2: aload 0
getfield com.sun.tools.sjavac.comp.PooledSjavac.pool:Ljava/util/concurrent/ExecutorService;
ldc 60
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokeinterface java.util.concurrent.ExecutorService.awaitTermination:(JLjava/util/concurrent/TimeUnit;)Z
ifne 10
3: aload 0
getfield com.sun.tools.sjavac.comp.PooledSjavac.pool:Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdownNow:()Ljava/util/List;
pop
4: aload 0
getfield com.sun.tools.sjavac.comp.PooledSjavac.pool:Ljava/util/concurrent/ExecutorService;
ldc 60
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokeinterface java.util.concurrent.ExecutorService.awaitTermination:(JLjava/util/concurrent/TimeUnit;)Z
ifne 10
5: ldc "ThreadPool did not terminate"
invokestatic com.sun.tools.sjavac.Log.error:(Ljava/lang/String;)V
6: goto 10
StackMap locals:
StackMap stack: java.lang.InterruptedException
7: pop
8: aload 0
getfield com.sun.tools.sjavac.comp.PooledSjavac.pool:Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdownNow:()Ljava/util/List;
pop
9: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
10: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.sjavac.comp.PooledSjavac.delegate:Lcom/sun/tools/sjavac/server/Sjavac;
invokeinterface com.sun.tools.sjavac.server.Sjavac.shutdown:()V
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/tools/sjavac/comp/PooledSjavac;
Exception table:
from to target type
2 6 7 Class java.lang.InterruptedException
private com.sun.tools.javac.main.Main$Result lambda$0(com.sun.tools.sjavac.Log, java.lang.String[]);
descriptor: (Lcom/sun/tools/sjavac/Log;[Ljava/lang/String;)Lcom/sun/tools/javac/main/Main$Result;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 0: aload 1
invokestatic com.sun.tools.sjavac.Log.setLogForCurrentThread:(Lcom/sun/tools/sjavac/Log;)V
1: aload 0
getfield com.sun.tools.sjavac.comp.PooledSjavac.delegate:Lcom/sun/tools/sjavac/server/Sjavac;
aload 2
invokeinterface com.sun.tools.sjavac.server.Sjavac.compile:([Ljava/lang/String;)Lcom/sun/tools/javac/main/Main$Result;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/sjavac/comp/PooledSjavac;
Exceptions:
throws java.lang.Exception
}
SourceFile: "PooledSjavac.java"
InnerClasses:
public final Result = com.sun.tools.javac.main.Main$Result of com.sun.tools.javac.main.Main
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles