class sun.nio.ch.EventPortSelectorImpl extends sun.nio.ch.SelectorImpl
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.EventPortSelectorImpl
super_class: sun.nio.ch.SelectorImpl
{
private final sun.nio.ch.EventPortWrapper pollWrapper;
descriptor: Lsun/nio/ch/EventPortWrapper;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.Map<java.lang.Integer, sun.nio.ch.SelectionKeyImpl> fdToKey;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/Integer;Lsun/nio/ch/SelectionKeyImpl;>;
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.lang.Object interruptLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean interruptTriggered;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/nio/ch/EventPortSelectorImpl;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.nio.channels.spi.SelectorProvider);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.nio.ch.SelectorImpl.<init>:(Ljava/nio/channels/spi/SelectorProvider;)V
1: aload 0
iconst_0
putfield sun.nio.ch.EventPortSelectorImpl.closed:Z
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.EventPortSelectorImpl.interruptLock:Ljava/lang/Object;
3: aload 0
iconst_0
putfield sun.nio.ch.EventPortSelectorImpl.interruptTriggered:Z
4: aload 0
new sun.nio.ch.EventPortWrapper
dup
invokespecial sun.nio.ch.EventPortWrapper.<init>:()V
putfield sun.nio.ch.EventPortSelectorImpl.pollWrapper:Lsun/nio/ch/EventPortWrapper;
5: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.nio.ch.EventPortSelectorImpl.fdToKey:Ljava/util/Map;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/EventPortSelectorImpl;
0 7 1 sp Ljava/nio/channels/spi/SelectorProvider;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sp
protected int doSelect(long);
descriptor: (J)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.closed:Z
ifeq 2
1: new java.nio.channels.ClosedSelectorException
dup
invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.EventPortSelectorImpl.processDeregisterQueue:()V
3: aload 0
invokevirtual sun.nio.ch.EventPortSelectorImpl.begin:()V
4: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.pollWrapper:Lsun/nio/ch/EventPortWrapper;
lload 1
invokevirtual sun.nio.ch.EventPortWrapper.poll:(J)I
istore 3
start local 3 5: goto 9
end local 3 StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 4
7: aload 0
invokevirtual sun.nio.ch.EventPortSelectorImpl.end:()V
8: aload 4
athrow
start local 3 9: StackMap locals: int
StackMap stack:
aload 0
invokevirtual sun.nio.ch.EventPortSelectorImpl.end:()V
10: aload 0
invokevirtual sun.nio.ch.EventPortSelectorImpl.processDeregisterQueue:()V
11: aload 0
iload 3
invokevirtual sun.nio.ch.EventPortSelectorImpl.updateSelectedKeys:(I)I
istore 4
start local 4 12: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.pollWrapper:Lsun/nio/ch/EventPortWrapper;
invokevirtual sun.nio.ch.EventPortWrapper.interrupted:()Z
ifeq 19
13: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 5
monitorenter
14: aload 0
iconst_0
putfield sun.nio.ch.EventPortSelectorImpl.interruptTriggered:Z
15: aload 5
monitorexit
16: goto 19
StackMap locals: sun.nio.ch.EventPortSelectorImpl long int int java.lang.Object
StackMap stack: java.lang.Throwable
17: aload 5
monitorexit
18: athrow
19: StackMap locals:
StackMap stack:
iload 4
ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/nio/ch/EventPortSelectorImpl;
0 20 1 timeout J
5 6 3 entries I
9 20 3 entries I
12 20 4 numKeysUpdated I
Exception table:
from to target type
3 6 6 any
14 16 17 any
17 18 17 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
private int updateSelectedKeys(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 16
3: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.nio.ch.EventPortSelectorImpl.pollWrapper:Lsun/nio/ch/EventPortWrapper;
iload 3
invokevirtual sun.nio.ch.EventPortWrapper.getDescriptor:(I)I
istore 4
start local 4 4: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.fdToKey:Ljava/util/Map;
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.nio.ch.SelectionKeyImpl
astore 5
start local 5 5: aload 5
ifnull 15
6: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.pollWrapper:Lsun/nio/ch/EventPortWrapper;
iload 3
invokevirtual sun.nio.ch.EventPortWrapper.getEventOps:(I)I
istore 6
start local 6 7: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.selectedKeys:Ljava/util/Set;
aload 5
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 11
8: aload 5
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
iload 6
aload 5
invokeinterface sun.nio.ch.SelChImpl.translateAndSetReadyOps:(ILsun/nio/ch/SelectionKeyImpl;)Z
ifeq 15
9: iinc 2 1
10: goto 15
11: StackMap locals: int sun.nio.ch.SelectionKeyImpl int
StackMap stack:
aload 5
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
iload 6
aload 5
invokeinterface sun.nio.ch.SelChImpl.translateAndSetReadyOps:(ILsun/nio/ch/SelectionKeyImpl;)Z
pop
12: aload 5
invokevirtual sun.nio.ch.SelectionKeyImpl.nioReadyOps:()I
aload 5
invokevirtual sun.nio.ch.SelectionKeyImpl.nioInterestOps:()I
iand
ifeq 15
13: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.selectedKeys:Ljava/util/Set;
aload 5
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
14: iinc 2 1
end local 6 end local 5 end local 4 15: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
16: iload 3
iload 1
if_icmplt 3
end local 3 17: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/nio/ch/EventPortSelectorImpl;
0 18 1 entries I
1 18 2 numKeysUpdated I
2 17 3 i I
4 15 4 nextFD I
5 15 5 ski Lsun/nio/ch/SelectionKeyImpl;
7 15 6 rOps I
MethodParameters:
Name Flags
entries
protected void implClose();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.EventPortSelectorImpl.closed:Z
3: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 1
monitorenter
4: aload 0
iconst_1
putfield sun.nio.ch.EventPortSelectorImpl.interruptTriggered:Z
5: aload 1
monitorexit
6: goto 9
StackMap locals: sun.nio.ch.EventPortSelectorImpl java.lang.Object
StackMap stack: java.lang.Throwable
7: aload 1
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.EventPortSelectorImpl.pollWrapper:Lsun/nio/ch/EventPortWrapper;
invokevirtual sun.nio.ch.EventPortWrapper.close:()V
10: aload 0
aconst_null
putfield sun.nio.ch.EventPortSelectorImpl.selectedKeys:Ljava/util/Set;
11: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.keys:Ljava/util/HashSet;
invokevirtual java.util.HashSet.iterator:()Ljava/util/Iterator;
astore 1
start local 1 12: goto 19
13: StackMap locals: java.util.Iterator
StackMap stack:
aload 1
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.nio.ch.SelectionKeyImpl
astore 2
start local 2 14: aload 0
aload 2
invokevirtual sun.nio.ch.EventPortSelectorImpl.deregister:(Ljava/nio/channels/spi/AbstractSelectionKey;)V
15: aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
astore 3
start local 3 16: aload 3
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifne 18
aload 3
invokevirtual java.nio.channels.SelectableChannel.isRegistered:()Z
ifne 18
17: aload 3
checkcast sun.nio.ch.SelChImpl
invokeinterface sun.nio.ch.SelChImpl.kill:()V
18: StackMap locals: sun.nio.ch.SelectionKeyImpl java.nio.channels.SelectableChannel
StackMap stack:
aload 1
invokeinterface java.util.Iterator.remove:()V
end local 3 end local 2 19: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
20: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/nio/ch/EventPortSelectorImpl;
12 21 1 i Ljava/util/Iterator<Ljava/nio/channels/SelectionKey;>;
14 19 2 ski Lsun/nio/ch/SelectionKeyImpl;
16 19 3 selch Ljava/nio/channels/SelectableChannel;
Exception table:
from to target type
4 6 7 any
7 8 7 any
Exceptions:
throws java.io.IOException
protected void implRegister(sun.nio.ch.SelectionKeyImpl);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
invokeinterface sun.nio.ch.SelChImpl.getFD:()Ljava/io/FileDescriptor;
invokestatic sun.nio.ch.IOUtil.fdVal:(Ljava/io/FileDescriptor;)I
istore 2
start local 2 1: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.fdToKey:Ljava/util/Map;
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.keys:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/EventPortSelectorImpl;
0 4 1 ski Lsun/nio/ch/SelectionKeyImpl;
1 4 2 fd I
MethodParameters:
Name Flags
ski
protected void implDereg(sun.nio.ch.SelectionKeyImpl);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.getIndex:()I
istore 2
start local 2 1: getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
ifne 2
iload 2
ifge 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: int
StackMap stack:
aload 1
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
invokeinterface sun.nio.ch.SelChImpl.getFDVal:()I
istore 3
start local 3 3: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.fdToKey:Ljava/util/Map;
iload 3
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.EventPortSelectorImpl.pollWrapper:Lsun/nio/ch/EventPortWrapper;
iload 3
invokevirtual sun.nio.ch.EventPortWrapper.release:(I)V
5: aload 1
iconst_m1
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
6: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.keys:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.remove:(Ljava/lang/Object;)Z
pop
7: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.selectedKeys:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
8: aload 0
aload 1
invokevirtual sun.nio.ch.EventPortSelectorImpl.deregister:(Ljava/nio/channels/spi/AbstractSelectionKey;)V
9: aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
astore 4
start local 4 10: aload 4
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifne 12
aload 4
invokevirtual java.nio.channels.SelectableChannel.isRegistered:()Z
ifne 12
11: aload 4
checkcast sun.nio.ch.SelChImpl
invokeinterface sun.nio.ch.SelChImpl.kill:()V
12: StackMap locals: int java.nio.channels.SelectableChannel
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 13 0 this Lsun/nio/ch/EventPortSelectorImpl;
0 13 1 ski Lsun/nio/ch/SelectionKeyImpl;
1 13 2 i I
3 13 3 fd I
10 13 4 selch Ljava/nio/channels/SelectableChannel;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ski
public void putEventOps(sun.nio.ch.SelectionKeyImpl, int);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.closed:Z
ifeq 2
1: new java.nio.channels.ClosedSelectorException
dup
invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
invokeinterface sun.nio.ch.SelChImpl.getFDVal:()I
istore 3
start local 3 3: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.pollWrapper:Lsun/nio/ch/EventPortWrapper;
iload 3
iload 2
invokevirtual sun.nio.ch.EventPortWrapper.setInterest:(II)V
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/EventPortSelectorImpl;
0 5 1 sk Lsun/nio/ch/SelectionKeyImpl;
0 5 2 ops I
3 5 3 fd I
MethodParameters:
Name Flags
sk
ops
public java.nio.channels.Selector wakeup();
descriptor: ()Ljava/nio/channels/Selector;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.interruptTriggered:Z
ifne 4
2: aload 0
getfield sun.nio.ch.EventPortSelectorImpl.pollWrapper:Lsun/nio/ch/EventPortWrapper;
invokevirtual sun.nio.ch.EventPortWrapper.interrupt:()V
3: aload 0
iconst_1
putfield sun.nio.ch.EventPortSelectorImpl.interruptTriggered:Z
4: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/EventPortSelectorImpl;
Exception table:
from to target type
1 5 6 any
6 7 6 any
}
SourceFile: "EventPortSelectorImpl.java"