abstract class sun.nio.ch.Port extends sun.nio.ch.AsynchronousChannelGroupImpl
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: sun.nio.ch.Port
super_class: sun.nio.ch.AsynchronousChannelGroupImpl
{
protected final java.util.concurrent.locks.ReadWriteLock fdToChannelLock;
descriptor: Ljava/util/concurrent/locks/ReadWriteLock;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.util.Map<java.lang.Integer, sun.nio.ch.Port$PollableChannel> fdToChannel;
descriptor: Ljava/util/Map;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Integer;Lsun/nio/ch/Port$PollableChannel;>;
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
aload 2
invokespecial sun.nio.ch.AsynchronousChannelGroupImpl.<init>:(Ljava/nio/channels/spi/AsynchronousChannelProvider;Lsun/nio/ch/ThreadPool;)V
1: aload 0
new java.util.concurrent.locks.ReentrantReadWriteLock
dup
invokespecial java.util.concurrent.locks.ReentrantReadWriteLock.<init>:()V
putfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
2: aload 0
3: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.nio.ch.Port.fdToChannel:Ljava/util/Map;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/Port;
0 5 1 provider Ljava/nio/channels/spi/AsynchronousChannelProvider;
0 5 2 pool Lsun/nio/ch/ThreadPool;
MethodParameters:
Name Flags
provider
pool
final void register(int, sun.nio.ch.Port$PollableChannel);
descriptor: (ILsun/nio/ch/Port$PollableChannel;)V
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
invokevirtual sun.nio.ch.Port.isShutdown:()Z
ifeq 3
2: new java.nio.channels.ShutdownChannelGroupException
dup
invokespecial java.nio.channels.ShutdownChannelGroupException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.Port.fdToChannel:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 3
6: aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: aload 3
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/Port;
0 10 1 fd I
0 10 2 ch Lsun/nio/ch/Port$PollableChannel;
Exception table:
from to target type
1 5 5 any
MethodParameters:
Name Flags
fd
ch
void unregisterImpl(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/Port;
0 1 1 fd I
MethodParameters:
Name Flags
fd
final void unregister(int);
descriptor: (I)V
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
iload 1
invokevirtual sun.nio.ch.Port.unregisterImpl:(I)V
2: aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
3: aload 0
getfield sun.nio.ch.Port.fdToChannel:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 0
getfield sun.nio.ch.Port.fdToChannel:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifeq 10
5: iconst_1
istore 2
6: goto 10
StackMap locals: sun.nio.ch.Port int int
StackMap stack: java.lang.Throwable
7: astore 3
8: aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
9: aload 3
athrow
10: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
11: iload 2
ifeq 15
aload 0
invokevirtual sun.nio.ch.Port.isShutdown:()Z
ifeq 15
12: aload 0
invokevirtual sun.nio.ch.Port.shutdownNow:()V
13: goto 15
StackMap locals:
StackMap stack: java.io.IOException
14: pop
15: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/nio/ch/Port;
0 16 1 fd I
1 16 2 checkForShutdown Z
Exception table:
from to target type
3 7 7 any
12 13 14 Class java.io.IOException
MethodParameters:
Name Flags
fd
abstract void startPoll(int, int);
descriptor: (II)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
fd
events
final boolean isEmpty();
descriptor: ()Z
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield sun.nio.ch.Port.fdToChannel:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
istore 2
2: aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: iload 2
ireturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
5: aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/Port;
Exception table:
from to target type
1 2 4 any
final java.lang.Object attachForeignChannel(java.nio.channels.Channel, java.io.FileDescriptor);
descriptor: (Ljava/nio/channels/Channel;Ljava/io/FileDescriptor;)Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic sun.nio.ch.IOUtil.fdVal:(Ljava/io/FileDescriptor;)I
istore 3
start local 3 1: aload 0
iload 3
new sun.nio.ch.Port$1
dup
aload 0
aload 1
invokespecial sun.nio.ch.Port$1.<init>:(Lsun/nio/ch/Port;Ljava/nio/channels/Channel;)V
invokevirtual sun.nio.ch.Port.register:(ILsun/nio/ch/Port$PollableChannel;)V
2: iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/Port;
0 3 1 channel Ljava/nio/channels/Channel;
0 3 2 fd Ljava/io/FileDescriptor;
1 3 3 fdVal I
MethodParameters:
Name Flags
channel final
fd
final void detachForeignChannel(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual sun.nio.ch.Port.unregister:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/Port;
0 2 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
final void closeAllChannels();
descriptor: ()V
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=6, args_size=1
start local 0 0: sipush 128
anewarray sun.nio.ch.Port$PollableChannel
astore 1
start local 1 1: StackMap locals: sun.nio.ch.Port$PollableChannel[]
StackMap stack:
aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: iconst_0
istore 2
start local 2 3: aload 0
getfield sun.nio.ch.Port.fdToChannel:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: sun.nio.ch.Port sun.nio.ch.Port$PollableChannel[] int top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
astore 3
start local 3 5: aload 1
iload 2
iinc 2 1
aload 0
getfield sun.nio.ch.Port.fdToChannel:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.nio.ch.Port$PollableChannel
aastore
6: iload 2
sipush 128
if_icmplt 8
7: goto 13
end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
9: goto 13
StackMap locals: sun.nio.ch.Port sun.nio.ch.Port$PollableChannel[] int
StackMap stack: java.lang.Throwable
10: astore 5
11: aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
12: aload 5
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.Port.fdToChannelLock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
14: iconst_0
istore 3
start local 3 15: goto 20
16: StackMap locals: int
StackMap stack:
aload 1
iload 3
aaload
invokeinterface sun.nio.ch.Port$PollableChannel.close:()V
17: goto 19
StackMap locals:
StackMap stack: java.io.IOException
18: pop
19: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
20: iload 3
iload 2
if_icmplt 16
end local 3 21: iload 2
22: ifgt 1
23: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/nio/ch/Port;
1 24 1 channels [Lsun/nio/ch/Port$PollableChannel;
3 24 2 count I
5 8 3 fd Ljava/lang/Integer;
15 21 3 i I
Exception table:
from to target type
3 10 10 any
16 17 18 Class java.io.IOException
}
SourceFile: "Port.java"
NestMembers:
sun.nio.ch.Port$1 sun.nio.ch.Port$PollableChannel
InnerClasses:
sun.nio.ch.Port$1
abstract PollableChannel = sun.nio.ch.Port$PollableChannel of sun.nio.ch.Port