abstract class sun.nio.ch.AbstractPollSelectorImpl extends sun.nio.ch.SelectorImpl
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: sun.nio.ch.AbstractPollSelectorImpl
super_class: sun.nio.ch.SelectorImpl
{
sun.nio.ch.PollArrayWrapper pollWrapper;
descriptor: Lsun/nio/ch/PollArrayWrapper;
flags: (0x0000)
protected final int INIT_CAP;
descriptor: I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
ConstantValue: 10
protected sun.nio.ch.SelectionKeyImpl[] channelArray;
descriptor: [Lsun/nio/ch/SelectionKeyImpl;
flags: (0x0004) ACC_PROTECTED
protected int channelOffset;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int totalChannels;
descriptor: I
flags: (0x0004) ACC_PROTECTED
private boolean closed;
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/AbstractPollSelectorImpl;
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.AbstractPollSelectorImpl.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.nio.channels.spi.SelectorProvider, int, int);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;II)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokespecial sun.nio.ch.SelectorImpl.<init>:(Ljava/nio/channels/spi/SelectorProvider;)V
1: aload 0
bipush 10
putfield sun.nio.ch.AbstractPollSelectorImpl.INIT_CAP:I
2: aload 0
iconst_0
putfield sun.nio.ch.AbstractPollSelectorImpl.channelOffset:I
3: aload 0
iconst_0
putfield sun.nio.ch.AbstractPollSelectorImpl.closed:Z
4: aload 0
iload 2
putfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
5: aload 0
iload 3
putfield sun.nio.ch.AbstractPollSelectorImpl.channelOffset:I
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/AbstractPollSelectorImpl;
0 7 1 sp Ljava/nio/channels/spi/SelectorProvider;
0 7 2 channels I
0 7 3 offset I
MethodParameters:
Name Flags
sp
channels
offset
void putEventOps(sun.nio.ch.SelectionKeyImpl, int);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.getIndex:()I
iload 2
invokevirtual sun.nio.ch.PollArrayWrapper.putEventOps:(II)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/AbstractPollSelectorImpl;
0 2 1 sk Lsun/nio/ch/SelectionKeyImpl;
0 2 2 ops I
MethodParameters:
Name Flags
sk
ops
public java.nio.channels.Selector wakeup();
descriptor: ()Ljava/nio/channels/Selector;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
invokevirtual sun.nio.ch.PollArrayWrapper.interrupt:()V
1: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/AbstractPollSelectorImpl;
protected abstract int doSelect(long);
descriptor: (J)I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
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.AbstractPollSelectorImpl.closed:Z
ifne 19
1: aload 0
iconst_1
putfield sun.nio.ch.AbstractPollSelectorImpl.closed:Z
2: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelOffset:I
istore 1
start local 1 3: goto 12
4: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
iload 1
aaload
astore 2
start local 2 5: getstatic sun.nio.ch.AbstractPollSelectorImpl.$assertionsDisabled:Z
ifne 6
aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.getIndex:()I
iconst_m1
if_icmpne 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals: sun.nio.ch.SelectionKeyImpl
StackMap stack:
aload 2
iconst_m1
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
7: aload 0
aload 2
invokevirtual sun.nio.ch.AbstractPollSelectorImpl.deregister:(Ljava/nio/channels/spi/AbstractSelectionKey;)V
8: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
iload 1
aaload
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
astore 3
start local 3 9: aload 3
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifne 11
aload 3
invokevirtual java.nio.channels.SelectableChannel.isRegistered:()Z
ifne 11
10: aload 3
checkcast sun.nio.ch.SelChImpl
invokeinterface sun.nio.ch.SelChImpl.kill:()V
end local 3 end local 2 11: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
12: iload 1
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
if_icmplt 4
end local 1 13: aload 0
invokevirtual sun.nio.ch.AbstractPollSelectorImpl.implCloseInterrupt:()V
14: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
invokevirtual sun.nio.ch.PollArrayWrapper.free:()V
15: aload 0
aconst_null
putfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
16: aload 0
aconst_null
putfield sun.nio.ch.AbstractPollSelectorImpl.selectedKeys:Ljava/util/Set;
17: aload 0
aconst_null
putfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
18: aload 0
iconst_0
putfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/nio/ch/AbstractPollSelectorImpl;
3 13 1 i I
5 11 2 ski Lsun/nio/ch/SelectionKeyImpl;
9 11 3 selch Ljava/nio/channels/SelectableChannel;
Exceptions:
throws java.io.IOException
protected abstract void implCloseInterrupt();
descriptor: ()V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
protected int updateSelectedKeys();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelOffset:I
istore 2
start local 2 2: goto 16
3: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
iload 2
invokevirtual sun.nio.ch.PollArrayWrapper.getReventOps:(I)I
istore 3
start local 3 4: iload 3
ifeq 15
5: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
iload 2
aaload
astore 4
start local 4 6: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
iload 2
iconst_0
invokevirtual sun.nio.ch.PollArrayWrapper.putReventOps:(II)V
7: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.selectedKeys:Ljava/util/Set;
aload 4
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 11
8: aload 4
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
iload 3
aload 4
invokeinterface sun.nio.ch.SelChImpl.translateAndSetReadyOps:(ILsun/nio/ch/SelectionKeyImpl;)Z
ifeq 15
9: iinc 1 1
10: goto 15
11: StackMap locals: int sun.nio.ch.SelectionKeyImpl
StackMap stack:
aload 4
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
iload 3
aload 4
invokeinterface sun.nio.ch.SelChImpl.translateAndSetReadyOps:(ILsun/nio/ch/SelectionKeyImpl;)Z
pop
12: aload 4
invokevirtual sun.nio.ch.SelectionKeyImpl.nioReadyOps:()I
aload 4
invokevirtual sun.nio.ch.SelectionKeyImpl.nioInterestOps:()I
iand
ifeq 15
13: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.selectedKeys:Ljava/util/Set;
aload 4
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
14: iinc 1 1
end local 4 end local 3 15: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
16: iload 2
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
if_icmplt 3
end local 2 17: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/nio/ch/AbstractPollSelectorImpl;
1 18 1 numKeysUpdated I
2 17 2 i I
4 15 3 rOps I
6 15 4 sk Lsun/nio/ch/SelectionKeyImpl;
protected void implRegister(sun.nio.ch.SelectionKeyImpl);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
arraylength
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
if_icmpne 10
1: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
getfield sun.nio.ch.PollArrayWrapper.totalChannels:I
iconst_2
imul
istore 2
start local 2 2: iload 2
anewarray sun.nio.ch.SelectionKeyImpl
astore 3
start local 3 3: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelOffset:I
istore 4
start local 4 4: goto 7
5: StackMap locals: int sun.nio.ch.SelectionKeyImpl[] int
StackMap stack:
aload 3
iload 4
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
iload 4
aaload
aastore
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
if_icmplt 5
end local 4 8: aload 0
aload 3
putfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
9: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
iload 2
invokevirtual sun.nio.ch.PollArrayWrapper.grow:(I)V
end local 3 end local 2 10: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
aload 1
aastore
11: aload 1
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
12: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
aload 1
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
invokevirtual sun.nio.ch.PollArrayWrapper.addEntry:(Lsun/nio/ch/SelChImpl;)V
13: aload 0
dup
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
iconst_1
iadd
putfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
14: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.keys:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/nio/ch/AbstractPollSelectorImpl;
0 16 1 ski Lsun/nio/ch/SelectionKeyImpl;
2 10 2 newSize I
3 10 3 temp [Lsun/nio/ch/SelectionKeyImpl;
4 8 4 i I
MethodParameters:
Name Flags
ski
protected void implDereg(sun.nio.ch.SelectionKeyImpl);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, 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.AbstractPollSelectorImpl.$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:
iload 2
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
iconst_1
isub
if_icmpeq 11
3: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
iconst_1
isub
aaload
astore 3
start local 3 4: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
iload 2
aload 3
aastore
5: aload 3
iload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
6: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
iload 2
invokevirtual sun.nio.ch.PollArrayWrapper.release:(I)V
7: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
iconst_1
isub
8: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
iload 2
9: invokestatic sun.nio.ch.PollArrayWrapper.replaceEntry:(Lsun/nio/ch/PollArrayWrapper;ILsun/nio/ch/PollArrayWrapper;I)V
end local 3 10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
iload 2
invokevirtual sun.nio.ch.PollArrayWrapper.release:(I)V
12: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
iconst_1
isub
aconst_null
aastore
13: aload 0
dup
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
iconst_1
isub
putfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
14: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
dup
getfield sun.nio.ch.AbstractPollArrayWrapper.totalChannels:I
iconst_1
isub
putfield sun.nio.ch.PollArrayWrapper.totalChannels:I
15: aload 1
iconst_m1
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
16: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.keys:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.remove:(Ljava/lang/Object;)Z
pop
17: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.selectedKeys:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
18: aload 0
aload 1
invokevirtual sun.nio.ch.AbstractPollSelectorImpl.deregister:(Ljava/nio/channels/spi/AbstractSelectionKey;)V
19: aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
astore 3
start local 3 20: aload 3
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifne 22
aload 3
invokevirtual java.nio.channels.SelectableChannel.isRegistered:()Z
ifne 22
21: aload 3
checkcast sun.nio.ch.SelChImpl
invokeinterface sun.nio.ch.SelChImpl.kill:()V
22: StackMap locals: java.nio.channels.SelectableChannel
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/nio/ch/AbstractPollSelectorImpl;
0 23 1 ski Lsun/nio/ch/SelectionKeyImpl;
1 23 2 i I
4 10 3 endChannel Lsun/nio/ch/SelectionKeyImpl;
20 23 3 selch Ljava/nio/channels/SelectableChannel;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ski
}
SourceFile: "AbstractPollSelectorImpl.java"