public class sun.nio.ch.ThreadPool
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.nio.ch.ThreadPool
super_class: java.lang.Object
{
private static final java.lang.String DEFAULT_THREAD_POOL_THREAD_FACTORY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "java.nio.channels.DefaultThreadPool.threadFactory"
private static final java.lang.String DEFAULT_THREAD_POOL_INITIAL_SIZE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "java.nio.channels.DefaultThreadPool.initialSize"
private final java.util.concurrent.ExecutorService executor;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean isFixed;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int poolSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>(java.util.concurrent.ExecutorService, boolean, int);
descriptor: (Ljava/util/concurrent/ExecutorService;ZI)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.nio.ch.ThreadPool.executor:Ljava/util/concurrent/ExecutorService;
2: aload 0
iload 2
putfield sun.nio.ch.ThreadPool.isFixed:Z
3: aload 0
iload 3
putfield sun.nio.ch.ThreadPool.poolSize:I
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/ThreadPool;
0 5 1 executor Ljava/util/concurrent/ExecutorService;
0 5 2 isFixed Z
0 5 3 poolSize I
MethodParameters:
Name Flags
executor
isFixed
poolSize
java.util.concurrent.ExecutorService executor();
descriptor: ()Ljava/util/concurrent/ExecutorService;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ThreadPool.executor:Ljava/util/concurrent/ExecutorService;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/ThreadPool;
boolean isFixedThreadPool();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ThreadPool.isFixed:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/ThreadPool;
int poolSize();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ThreadPool.poolSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/ThreadPool;
static java.util.concurrent.ThreadFactory defaultThreadFactory();
descriptor: ()Ljava/util/concurrent/ThreadFactory;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 2
1: new sun.nio.ch.ThreadPool$1
dup
invokespecial sun.nio.ch.ThreadPool$1.<init>:()V
areturn
2: StackMap locals:
StackMap stack:
new sun.nio.ch.ThreadPool$2
dup
invokespecial sun.nio.ch.ThreadPool$2.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
static sun.nio.ch.ThreadPool getDefault();
descriptor: ()Lsun/nio/ch/ThreadPool;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.nio.ch.ThreadPool$DefaultThreadPoolHolder.defaultThreadPool:Lsun/nio/ch/ThreadPool;
areturn
LocalVariableTable:
Start End Slot Name Signature
static sun.nio.ch.ThreadPool createDefault();
descriptor: ()Lsun/nio/ch/ThreadPool;
flags: (0x0008) ACC_STATIC
Code:
stack=9, locals=3, args_size=0
0: invokestatic sun.nio.ch.ThreadPool.getDefaultThreadPoolInitialSize:()I
istore 0
start local 0 1: iload 0
ifge 3
2: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
invokevirtual java.lang.Runtime.availableProcessors:()I
istore 0
3: StackMap locals: int
StackMap stack:
invokestatic sun.nio.ch.ThreadPool.getDefaultThreadPoolThreadFactory:()Ljava/util/concurrent/ThreadFactory;
astore 1
start local 1 4: aload 1
ifnonnull 6
5: invokestatic sun.nio.ch.ThreadPool.defaultThreadFactory:()Ljava/util/concurrent/ThreadFactory;
astore 1
6: StackMap locals: java.util.concurrent.ThreadFactory
StackMap stack:
new java.util.concurrent.ThreadPoolExecutor
dup
iconst_0
ldc 2147483647
7: ldc 9223372036854775807
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
8: new java.util.concurrent.SynchronousQueue
dup
invokespecial java.util.concurrent.SynchronousQueue.<init>:()V
9: aload 1
10: invokespecial java.util.concurrent.ThreadPoolExecutor.<init>:(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
11: astore 2
start local 2 12: new sun.nio.ch.ThreadPool
dup
aload 2
iconst_0
iload 0
invokespecial sun.nio.ch.ThreadPool.<init>:(Ljava/util/concurrent/ExecutorService;ZI)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 13 0 initialSize I
4 13 1 threadFactory Ljava/util/concurrent/ThreadFactory;
12 13 2 executor Ljava/util/concurrent/ExecutorService;
static sun.nio.ch.ThreadPool create(int, java.util.concurrent.ThreadFactory);
descriptor: (ILjava/util/concurrent/ThreadFactory;)Lsun/nio/ch/ThreadPool;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: iload 0
ifgt 2
1: new java.lang.IllegalArgumentException
dup
ldc "'nThreads' must be > 0"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 0
aload 1
invokestatic java.util.concurrent.Executors.newFixedThreadPool:(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;
astore 2
start local 2 3: new sun.nio.ch.ThreadPool
dup
aload 2
iconst_1
iload 0
invokespecial sun.nio.ch.ThreadPool.<init>:(Ljava/util/concurrent/ExecutorService;ZI)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 nThreads I
0 4 1 factory Ljava/util/concurrent/ThreadFactory;
3 4 2 executor Ljava/util/concurrent/ExecutorService;
MethodParameters:
Name Flags
nThreads
factory
public static sun.nio.ch.ThreadPool wrap(java.util.concurrent.ExecutorService, int);
descriptor: (Ljava/util/concurrent/ExecutorService;I)Lsun/nio/ch/ThreadPool;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "'executor' is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.concurrent.ThreadPoolExecutor
ifeq 10
3: aload 0
checkcast java.util.concurrent.ThreadPoolExecutor
invokevirtual java.util.concurrent.ThreadPoolExecutor.getMaximumPoolSize:()I
istore 2
start local 2 4: iload 2
ldc 2147483647
if_icmpne 12
5: iload 1
ifge 8
6: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
invokevirtual java.lang.Runtime.availableProcessors:()I
istore 1
7: goto 12
8: StackMap locals: int
StackMap stack:
iconst_0
istore 1
end local 2 9: goto 12
10: StackMap locals:
StackMap stack:
iload 1
ifge 12
11: iconst_0
istore 1
12: StackMap locals:
StackMap stack:
new sun.nio.ch.ThreadPool
dup
aload 0
iconst_0
iload 1
invokespecial sun.nio.ch.ThreadPool.<init>:(Ljava/util/concurrent/ExecutorService;ZI)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 executor Ljava/util/concurrent/ExecutorService;
0 13 1 initialSize I
4 9 2 max I
MethodParameters:
Name Flags
executor
initialSize
private static int getDefaultThreadPoolInitialSize();
descriptor: ()I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=0
0: new sun.security.action.GetPropertyAction
dup
ldc "java.nio.channels.DefaultThreadPool.initialSize"
1: invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 2: aload 0
ifnull 9
3: aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
4: ireturn
5: StackMap locals: java.lang.String
StackMap stack: java.lang.NumberFormatException
astore 1
start local 1 6: new java.lang.Error
dup
new java.lang.StringBuilder
dup
ldc "Value of property 'java.nio.channels.DefaultThreadPool.initialSize' is invalid: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
7: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 1 9: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
2 10 0 propValue Ljava/lang/String;
6 9 1 x Ljava/lang/NumberFormatException;
Exception table:
from to target type
3 4 5 Class java.lang.NumberFormatException
private static java.util.concurrent.ThreadFactory getDefaultThreadPoolThreadFactory();
descriptor: ()Ljava/util/concurrent/ThreadFactory;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=0
0: new sun.security.action.GetPropertyAction
dup
ldc "java.nio.channels.DefaultThreadPool.threadFactory"
1: invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 2: aload 0
ifnull 13
3: aload 0
iconst_1
invokestatic java.lang.ClassLoader.getSystemClassLoader:()Ljava/lang/ClassLoader;
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
4: astore 1
start local 1 5: aload 1
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast java.util.concurrent.ThreadFactory
6: areturn
end local 1 7: StackMap locals: java.lang.String
StackMap stack: java.lang.ClassNotFoundException
astore 1
start local 1 8: new java.lang.Error
dup
aload 1
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 9: StackMap locals:
StackMap stack: java.lang.InstantiationException
astore 1
start local 1 10: new java.lang.Error
dup
aload 1
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 11: StackMap locals:
StackMap stack: java.lang.IllegalAccessException
astore 1
start local 1 12: new java.lang.Error
dup
aload 1
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 13: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
2 14 0 propValue Ljava/lang/String;
5 7 1 c Ljava/lang/Class<*>;
8 9 1 x Ljava/lang/ClassNotFoundException;
10 11 1 x Ljava/lang/InstantiationException;
12 13 1 x Ljava/lang/IllegalAccessException;
Exception table:
from to target type
3 6 7 Class java.lang.ClassNotFoundException
3 6 9 Class java.lang.InstantiationException
3 6 11 Class java.lang.IllegalAccessException
}
SourceFile: "ThreadPool.java"
NestMembers:
sun.nio.ch.ThreadPool$1 sun.nio.ch.ThreadPool$2 sun.nio.ch.ThreadPool$2$1 sun.nio.ch.ThreadPool$DefaultThreadPoolHolder
InnerClasses:
sun.nio.ch.ThreadPool$1
sun.nio.ch.ThreadPool$2
private DefaultThreadPoolHolder = sun.nio.ch.ThreadPool$DefaultThreadPoolHolder of sun.nio.ch.ThreadPool