abstract class sun.nio.ch.AsynchronousChannelGroupImpl extends java.nio.channels.AsynchronousChannelGroup implements java.util.concurrent.Executor
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: sun.nio.ch.AsynchronousChannelGroupImpl
super_class: java.nio.channels.AsynchronousChannelGroup
{
private static final int internalThreadCount;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final sun.nio.ch.ThreadPool pool;
descriptor: Lsun/nio/ch/ThreadPool;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger threadCount;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.concurrent.ScheduledThreadPoolExecutor timeoutExecutor;
descriptor: Ljava/util/concurrent/ScheduledThreadPoolExecutor;
flags: (0x0002) ACC_PRIVATE
private final java.util.Queue<java.lang.Runnable> taskQueue;
descriptor: Ljava/util/Queue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Queue<Ljava/lang/Runnable;>;
private final java.util.concurrent.atomic.AtomicBoolean shutdown;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object shutdownNowLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean terminateInitiated;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new sun.security.action.GetIntegerAction
dup
ldc "sun.nio.ch.internalThreadPoolSize"
iconst_1
invokespecial sun.security.action.GetIntegerAction.<init>:(Ljava/lang/String;I)V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
putstatic sun.nio.ch.AsynchronousChannelGroupImpl.internalThreadCount:I
2: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.nio.channels.spi.AsynchronousChannelProvider, sun.nio.ch.ThreadPool);
descriptor: (Ljava/nio/channels/spi/AsynchronousChannelProvider;Lsun/nio/ch/ThreadPool;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.nio.channels.AsynchronousChannelGroup.<init>:(Ljava/nio/channels/spi/AsynchronousChannelProvider;)V
1: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putfield sun.nio.ch.AsynchronousChannelGroupImpl.threadCount:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield sun.nio.ch.AsynchronousChannelGroupImpl.shutdown:Ljava/util/concurrent/atomic/AtomicBoolean;
3: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.AsynchronousChannelGroupImpl.shutdownNowLock:Ljava/lang/Object;
4: aload 0
aload 2
putfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
5: aload 2
invokevirtual sun.nio.ch.ThreadPool.isFixedThreadPool:()Z
ifeq 8
6: aload 0
new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield sun.nio.ch.AsynchronousChannelGroupImpl.taskQueue:Ljava/util/Queue;
7: goto 9
8: StackMap locals: sun.nio.ch.AsynchronousChannelGroupImpl java.nio.channels.spi.AsynchronousChannelProvider sun.nio.ch.ThreadPool
StackMap stack:
aload 0
aconst_null
putfield sun.nio.ch.AsynchronousChannelGroupImpl.taskQueue:Ljava/util/Queue;
9: StackMap locals:
StackMap stack:
aload 0
10: iconst_1
invokestatic sun.nio.ch.ThreadPool.defaultThreadFactory:()Ljava/util/concurrent/ThreadFactory;
invokestatic java.util.concurrent.Executors.newScheduledThreadPool:(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
11: checkcast java.util.concurrent.ScheduledThreadPoolExecutor
putfield sun.nio.ch.AsynchronousChannelGroupImpl.timeoutExecutor:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
12: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.timeoutExecutor:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
iconst_1
invokevirtual java.util.concurrent.ScheduledThreadPoolExecutor.setRemoveOnCancelPolicy:(Z)V
13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
0 14 1 provider Ljava/nio/channels/spi/AsynchronousChannelProvider;
0 14 2 pool Lsun/nio/ch/ThreadPool;
MethodParameters:
Name Flags
provider
pool
final java.util.concurrent.ExecutorService executor();
descriptor: ()Ljava/util/concurrent/ExecutorService;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual 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/AsynchronousChannelGroupImpl;
final boolean isFixedThreadPool();
descriptor: ()Z
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual sun.nio.ch.ThreadPool.isFixedThreadPool:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
final int fixedThreadCount();
descriptor: ()I
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.isFixedThreadPool:()Z
ifeq 2
1: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual sun.nio.ch.ThreadPool.poolSize:()I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual sun.nio.ch.ThreadPool.poolSize:()I
getstatic sun.nio.ch.AsynchronousChannelGroupImpl.internalThreadCount:I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
private java.lang.Runnable bindToGroup(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Runnable;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
astore 2
start local 2 1: new sun.nio.ch.AsynchronousChannelGroupImpl$1
dup
aload 0
aload 2
aload 1
invokespecial sun.nio.ch.AsynchronousChannelGroupImpl$1.<init>:(Lsun/nio/ch/AsynchronousChannelGroupImpl;Lsun/nio/ch/AsynchronousChannelGroupImpl;Ljava/lang/Runnable;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
0 2 1 task Ljava/lang/Runnable;
1 2 2 thisGroup Lsun/nio/ch/AsynchronousChannelGroupImpl;
MethodParameters:
Name Flags
task final
private void startInternalThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new sun.nio.ch.AsynchronousChannelGroupImpl$2
dup
aload 0
aload 1
invokespecial sun.nio.ch.AsynchronousChannelGroupImpl$2.<init>:(Lsun/nio/ch/AsynchronousChannelGroupImpl;Ljava/lang/Runnable;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
0 2 1 task Ljava/lang/Runnable;
MethodParameters:
Name Flags
task final
protected final void startThreads(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.isFixedThreadPool:()Z
ifne 7
1: iconst_0
istore 2
start local 2 2: goto 6
3: StackMap locals: int
StackMap stack:
aload 0
aload 1
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.startInternalThread:(Ljava/lang/Runnable;)V
4: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.threadCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
getstatic sun.nio.ch.AsynchronousChannelGroupImpl.internalThreadCount:I
if_icmplt 3
end local 2 7: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual sun.nio.ch.ThreadPool.poolSize:()I
ifle 17
8: aload 0
aload 1
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.bindToGroup:(Ljava/lang/Runnable;)Ljava/lang/Runnable;
astore 1
9: iconst_0
istore 2
start local 2 10: goto 14
11: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual sun.nio.ch.ThreadPool.executor:()Ljava/util/concurrent/ExecutorService;
aload 1
invokeinterface java.util.concurrent.ExecutorService.execute:(Ljava/lang/Runnable;)V
12: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.threadCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
13: iinc 2 1
StackMap locals:
StackMap stack:
14: iload 2
aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual sun.nio.ch.ThreadPool.poolSize:()I
if_icmplt 11
end local 2 15: goto 17
StackMap locals: sun.nio.ch.AsynchronousChannelGroupImpl java.lang.Runnable
StackMap stack: java.util.concurrent.RejectedExecutionException
16: pop
17: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
0 18 1 task Ljava/lang/Runnable;
2 7 2 i I
10 15 2 i I
Exception table:
from to target type
9 15 16 Class java.util.concurrent.RejectedExecutionException
MethodParameters:
Name Flags
task
final int threadCount();
descriptor: ()I
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.threadCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
final int threadExit(java.lang.Runnable, boolean);
descriptor: (Ljava/lang/Runnable;Z)I
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifeq 8
1: invokestatic sun.nio.ch.Invoker.isBoundToAnyGroup:()Z
ifeq 4
2: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual sun.nio.ch.ThreadPool.executor:()Ljava/util/concurrent/ExecutorService;
aload 0
aload 1
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.bindToGroup:(Ljava/lang/Runnable;)Ljava/lang/Runnable;
invokeinterface java.util.concurrent.ExecutorService.execute:(Ljava/lang/Runnable;)V
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.startInternalThread:(Ljava/lang/Runnable;)V
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.threadCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
6: ireturn
7: StackMap locals:
StackMap stack: java.util.concurrent.RejectedExecutionException
pop
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.threadCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
0 9 1 task Ljava/lang/Runnable;
0 9 2 replaceMe Z
Exception table:
from to target type
1 6 7 Class java.util.concurrent.RejectedExecutionException
MethodParameters:
Name Flags
task
replaceMe
abstract void executeOnHandlerTask(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
task
final void executeOnPooledThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.isFixedThreadPool:()Z
ifeq 3
1: aload 0
aload 1
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.executeOnHandlerTask:(Ljava/lang/Runnable;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual sun.nio.ch.ThreadPool.executor:()Ljava/util/concurrent/ExecutorService;
aload 0
aload 1
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.bindToGroup:(Ljava/lang/Runnable;)Ljava/lang/Runnable;
invokeinterface java.util.concurrent.ExecutorService.execute:(Ljava/lang/Runnable;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
0 5 1 task Ljava/lang/Runnable;
MethodParameters:
Name Flags
task
final void offerTask(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.taskQueue:Ljava/util/Queue;
aload 1
invokeinterface java.util.Queue.offer:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
0 2 1 task Ljava/lang/Runnable;
MethodParameters:
Name Flags
task
final java.lang.Runnable pollTask();
descriptor: ()Ljava/lang/Runnable;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.taskQueue:Ljava/util/Queue;
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.taskQueue:Ljava/util/Queue;
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast java.lang.Runnable
StackMap locals:
StackMap stack: java.lang.Runnable
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
final java.util.concurrent.Future<?> schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit);
descriptor: (Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/Future;
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.timeoutExecutor:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
aload 1
lload 2
aload 4
invokevirtual java.util.concurrent.ScheduledThreadPoolExecutor.schedule:(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
1: areturn
2: StackMap locals:
StackMap stack: java.util.concurrent.RejectedExecutionException
astore 5
start local 5 3: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.terminateInitiated:Z
ifeq 5
4: aconst_null
areturn
5: StackMap locals: java.util.concurrent.RejectedExecutionException
StackMap stack:
new java.lang.AssertionError
dup
aload 5
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
0 6 1 task Ljava/lang/Runnable;
0 6 2 timeout J
0 6 4 unit Ljava/util/concurrent/TimeUnit;
3 6 5 rej Ljava/util/concurrent/RejectedExecutionException;
Exception table:
from to target type
0 1 2 Class java.util.concurrent.RejectedExecutionException
Signature: (Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/Future<*>;
MethodParameters:
Name Flags
task
timeout
unit
public final boolean isShutdown();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.shutdown:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
public final boolean isTerminated();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual sun.nio.ch.ThreadPool.executor:()Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.isTerminated:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
abstract boolean isEmpty();
descriptor: ()Z
flags: (0x0400) ACC_ABSTRACT
abstract java.lang.Object attachForeignChannel(java.nio.channels.Channel, java.io.FileDescriptor);
descriptor: (Ljava/nio/channels/Channel;Ljava/io/FileDescriptor;)Ljava/lang/Object;
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
channel
fdo
abstract void detachForeignChannel(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
key
abstract void closeAllChannels();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.io.IOException
abstract void shutdownHandlerTasks();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
private void shutdownExecutors();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=1, args_size=1
start local 0 0: invokestatic sun.misc.SharedSecrets.getJavaSecurityAccess:()Lsun/misc/JavaSecurityAccess;
1: new sun.nio.ch.AsynchronousChannelGroupImpl$3
dup
aload 0
invokespecial sun.nio.ch.AsynchronousChannelGroupImpl$3.<init>:(Lsun/nio/ch/AsynchronousChannelGroupImpl;)V
2: aconst_null
iconst_1
anewarray java.security.Permission
dup
iconst_0
3: new java.lang.RuntimePermission
dup
ldc "modifyThread"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
aastore
4: invokeinterface sun.misc.JavaSecurityAccess.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;[Ljava/security/Permission;)Ljava/lang/Object;
pop
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
public final void shutdown();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.shutdown:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.getAndSet:(Z)Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.isEmpty:()Z
ifne 4
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.shutdownNowLock:Ljava/lang/Object;
dup
astore 1
monitorenter
5: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.terminateInitiated:Z
ifne 9
6: aload 0
iconst_1
putfield sun.nio.ch.AsynchronousChannelGroupImpl.terminateInitiated:Z
7: aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.shutdownHandlerTasks:()V
8: aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.shutdownExecutors:()V
9: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
10: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
11: aload 1
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
Exception table:
from to target type
5 10 11 any
11 12 11 any
public final void shutdownNow();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.shutdown:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.set:(Z)V
1: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.shutdownNowLock:Ljava/lang/Object;
dup
astore 1
monitorenter
2: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.terminateInitiated:Z
ifne 7
3: aload 0
iconst_1
putfield sun.nio.ch.AsynchronousChannelGroupImpl.terminateInitiated:Z
4: aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.closeAllChannels:()V
5: aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.shutdownHandlerTasks:()V
6: aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.shutdownExecutors:()V
7: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
Exception table:
from to target type
2 8 9 any
9 10 9 any
Exceptions:
throws java.io.IOException
final void detachFromThreadPool();
descriptor: ()V
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.shutdown:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.getAndSet:(Z)Z
ifeq 2
1: new java.lang.AssertionError
dup
ldc "Already shutdown"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.isEmpty:()Z
ifne 4
3: new java.lang.AssertionError
dup
ldc "Group not empty"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.shutdownHandlerTasks:()V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
public final boolean awaitTermination(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield sun.nio.ch.AsynchronousChannelGroupImpl.pool:Lsun/nio/ch/ThreadPool;
invokevirtual sun.nio.ch.ThreadPool.executor:()Ljava/util/concurrent/ExecutorService;
lload 1
aload 3
invokeinterface java.util.concurrent.ExecutorService.awaitTermination:(JLjava/util/concurrent/TimeUnit;)Z
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
0 1 1 timeout J
0 1 3 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
timeout
unit
public final void execute(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 1: aload 2
ifnull 5
2: invokestatic java.security.AccessController.getContext:()Ljava/security/AccessControlContext;
astore 3
start local 3 3: aload 1
astore 4
start local 4 4: new sun.nio.ch.AsynchronousChannelGroupImpl$4
dup
aload 0
aload 3
aload 4
invokespecial sun.nio.ch.AsynchronousChannelGroupImpl$4.<init>:(Lsun/nio/ch/AsynchronousChannelGroupImpl;Ljava/security/AccessControlContext;Ljava/lang/Runnable;)V
astore 1
end local 4 end local 3 5: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
aload 1
invokevirtual sun.nio.ch.AsynchronousChannelGroupImpl.executeOnPooledThread:(Ljava/lang/Runnable;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/AsynchronousChannelGroupImpl;
0 7 1 task Ljava/lang/Runnable;
1 7 2 sm Ljava/lang/SecurityManager;
3 5 3 acc Ljava/security/AccessControlContext;
4 5 4 delegate Ljava/lang/Runnable;
MethodParameters:
Name Flags
task
}
SourceFile: "AsynchronousChannelGroupImpl.java"
NestMembers:
sun.nio.ch.AsynchronousChannelGroupImpl$1 sun.nio.ch.AsynchronousChannelGroupImpl$2 sun.nio.ch.AsynchronousChannelGroupImpl$3 sun.nio.ch.AsynchronousChannelGroupImpl$4 sun.nio.ch.AsynchronousChannelGroupImpl$4$1
InnerClasses:
sun.nio.ch.AsynchronousChannelGroupImpl$1
sun.nio.ch.AsynchronousChannelGroupImpl$2
sun.nio.ch.AsynchronousChannelGroupImpl$3
sun.nio.ch.AsynchronousChannelGroupImpl$4