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
private java.lang.Object closeLock;
descriptor: Ljava/lang/Object;
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=3, 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
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.AbstractPollSelectorImpl.closeLock:Ljava/lang/Object;
5: aload 0
iload 2
putfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
6: aload 0
iload 3
putfield sun.nio.ch.AbstractPollSelectorImpl.channelOffset:I
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/AbstractPollSelectorImpl;
0 8 1 sp Ljava/nio/channels/spi/SelectorProvider;
0 8 2 channels I
0 8 3 offset I
MethodParameters:
Name Flags
sp
channels
offset
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.AbstractPollSelectorImpl.closeLock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.closed:Z
ifeq 3
2: new java.nio.channels.ClosedSelectorException
dup
invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
athrow
3: StackMap locals: java.lang.Object
StackMap stack:
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
4: aload 3
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 3
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/AbstractPollSelectorImpl;
0 9 1 sk Lsun/nio/ch/SelectionKeyImpl;
0 9 2 ops I
Exception table:
from to target type
1 5 6 any
6 7 6 any
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=5, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.closeLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.closed:Z
ifeq 4
2: aload 1
monitorexit
3: return
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.AbstractPollSelectorImpl.closed:Z
5: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelOffset:I
istore 2
start local 2 6: goto 15
7: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
iload 2
aaload
astore 3
start local 3 8: getstatic sun.nio.ch.AbstractPollSelectorImpl.$assertionsDisabled:Z
ifne 9
aload 3
invokevirtual sun.nio.ch.SelectionKeyImpl.getIndex:()I
iconst_m1
if_icmpne 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals: sun.nio.ch.SelectionKeyImpl
StackMap stack:
aload 3
iconst_m1
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
10: aload 0
aload 3
invokevirtual sun.nio.ch.AbstractPollSelectorImpl.deregister:(Ljava/nio/channels/spi/AbstractSelectionKey;)V
11: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
iload 2
aaload
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
astore 4
start local 4 12: aload 4
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifne 14
aload 4
invokevirtual java.nio.channels.SelectableChannel.isRegistered:()Z
ifne 14
13: aload 4
checkcast sun.nio.ch.SelChImpl
invokeinterface sun.nio.ch.SelChImpl.kill:()V
end local 4 end local 3 14: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
15: iload 2
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
if_icmplt 7
end local 2 16: aload 0
invokevirtual sun.nio.ch.AbstractPollSelectorImpl.implCloseInterrupt:()V
17: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
invokevirtual sun.nio.ch.PollArrayWrapper.free:()V
18: aload 0
aconst_null
putfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
19: aload 0
aconst_null
putfield sun.nio.ch.AbstractPollSelectorImpl.selectedKeys:Ljava/util/Set;
20: aload 0
aconst_null
putfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
21: aload 0
iconst_0
putfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
22: aload 1
monitorexit
23: goto 26
StackMap locals: sun.nio.ch.AbstractPollSelectorImpl java.lang.Object
StackMap stack: java.lang.Throwable
24: aload 1
monitorexit
25: athrow
26: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/nio/ch/AbstractPollSelectorImpl;
6 16 2 i I
8 14 3 ski Lsun/nio/ch/SelectionKeyImpl;
12 14 4 selch Ljava/nio/channels/SelectableChannel;
Exception table:
from to target type
1 3 24 any
4 23 24 any
24 25 24 any
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=6, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.closeLock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.closed:Z
ifeq 3
2: new java.nio.channels.ClosedSelectorException
dup
invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
athrow
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
arraylength
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
if_icmpne 13
4: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
getfield sun.nio.ch.PollArrayWrapper.totalChannels:I
iconst_2
imul
istore 3
start local 3 5: iload 3
anewarray sun.nio.ch.SelectionKeyImpl
astore 4
start local 4 6: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelOffset:I
istore 5
start local 5 7: goto 10
8: StackMap locals: int sun.nio.ch.SelectionKeyImpl[] int
StackMap stack:
aload 4
iload 5
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
iload 5
aaload
aastore
9: iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
if_icmplt 8
end local 5 11: aload 0
aload 4
putfield sun.nio.ch.AbstractPollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
12: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
iload 3
invokevirtual sun.nio.ch.PollArrayWrapper.grow:(I)V
end local 4 end local 3 13: 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
14: aload 1
aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
15: 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
16: aload 0
dup
getfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
iconst_1
iadd
putfield sun.nio.ch.AbstractPollSelectorImpl.totalChannels:I
17: aload 0
getfield sun.nio.ch.AbstractPollSelectorImpl.keys:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
18: aload 2
monitorexit
19: goto 22
StackMap locals:
StackMap stack: java.lang.Throwable
20: aload 2
monitorexit
21: athrow
22: StackMap locals:
StackMap stack:
return
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;
5 13 3 newSize I
6 13 4 temp [Lsun/nio/ch/SelectionKeyImpl;
7 11 5 i I
Exception table:
from to target type
1 19 20 any
20 21 20 any
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"