class sun.nio.ch.DevPollSelectorImpl extends sun.nio.ch.SelectorImpl
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.DevPollSelectorImpl
super_class: sun.nio.ch.SelectorImpl
{
protected int fd0;
descriptor: I
flags: (0x0004) ACC_PROTECTED
protected int fd1;
descriptor: I
flags: (0x0004) ACC_PROTECTED
sun.nio.ch.DevPollArrayWrapper pollWrapper;
descriptor: Lsun/nio/ch/DevPollArrayWrapper;
flags: (0x0000)
private int totalChannels;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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 java.lang.Object interruptLock;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
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/DevPollSelectorImpl;
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.DevPollSelectorImpl.$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=3, 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.DevPollSelectorImpl.closed:Z
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.DevPollSelectorImpl.interruptLock:Ljava/lang/Object;
3: aload 0
iconst_0
putfield sun.nio.ch.DevPollSelectorImpl.interruptTriggered:Z
4: iconst_2
newarray 10
astore 2
start local 2 5: aload 2
iconst_0
invokestatic sun.nio.ch.IOUtil.initPipe:([IZ)V
6: aload 0
aload 2
iconst_0
iaload
putfield sun.nio.ch.DevPollSelectorImpl.fd0:I
7: aload 0
aload 2
iconst_1
iaload
putfield sun.nio.ch.DevPollSelectorImpl.fd1:I
8: aload 0
new sun.nio.ch.DevPollArrayWrapper
dup
invokespecial sun.nio.ch.DevPollArrayWrapper.<init>:()V
putfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
9: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
aload 0
getfield sun.nio.ch.DevPollSelectorImpl.fd0:I
aload 0
getfield sun.nio.ch.DevPollSelectorImpl.fd1:I
invokevirtual sun.nio.ch.DevPollArrayWrapper.initInterrupt:(II)V
10: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.nio.ch.DevPollSelectorImpl.fdToKey:Ljava/util/Map;
11: aload 0
iconst_1
putfield sun.nio.ch.DevPollSelectorImpl.totalChannels:I
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/DevPollSelectorImpl;
0 13 1 sp Ljava/nio/channels/spi/SelectorProvider;
5 13 2 fdes [I
MethodParameters:
Name Flags
sp
protected int doSelect(long);
descriptor: (J)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.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.DevPollSelectorImpl.processDeregisterQueue:()V
3: aload 0
invokevirtual sun.nio.ch.DevPollSelectorImpl.begin:()V
4: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
lload 1
invokevirtual sun.nio.ch.DevPollArrayWrapper.poll:(J)I
pop
5: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 3
7: aload 0
invokevirtual sun.nio.ch.DevPollSelectorImpl.end:()V
8: aload 3
athrow
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.DevPollSelectorImpl.end:()V
10: aload 0
invokevirtual sun.nio.ch.DevPollSelectorImpl.processDeregisterQueue:()V
11: aload 0
invokevirtual sun.nio.ch.DevPollSelectorImpl.updateSelectedKeys:()I
istore 3
start local 3 12: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
invokevirtual sun.nio.ch.DevPollArrayWrapper.interrupted:()Z
ifeq 22
13: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
invokevirtual sun.nio.ch.DevPollArrayWrapper.interruptedIndex:()I
iconst_0
invokevirtual sun.nio.ch.DevPollArrayWrapper.putReventOps:(II)V
14: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 4
monitorenter
15: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
invokevirtual sun.nio.ch.DevPollArrayWrapper.clearInterrupted:()V
16: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.fd0:I
invokestatic sun.nio.ch.IOUtil.drain:(I)Z
pop
17: aload 0
iconst_0
putfield sun.nio.ch.DevPollSelectorImpl.interruptTriggered:Z
18: aload 4
monitorexit
19: goto 22
StackMap locals: sun.nio.ch.DevPollSelectorImpl long int java.lang.Object
StackMap stack: java.lang.Throwable
20: aload 4
monitorexit
21: athrow
22: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/nio/ch/DevPollSelectorImpl;
0 23 1 timeout J
12 23 3 numKeysUpdated I
Exception table:
from to target type
3 6 6 any
15 19 20 any
20 21 20 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
private int updateSelectedKeys();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
getfield sun.nio.ch.DevPollArrayWrapper.updated:I
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 17
4: StackMap locals: int int int
StackMap stack:
aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
iload 3
invokevirtual sun.nio.ch.DevPollArrayWrapper.getDescriptor:(I)I
istore 4
start local 4 5: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.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 6: aload 5
ifnull 16
7: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
iload 3
invokevirtual sun.nio.ch.DevPollArrayWrapper.getReventOps:(I)I
istore 6
start local 6 8: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.selectedKeys:Ljava/util/Set;
aload 5
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 12
9: 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 16
10: iinc 2 1
11: goto 16
12: 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
13: aload 5
invokevirtual sun.nio.ch.SelectionKeyImpl.nioReadyOps:()I
aload 5
invokevirtual sun.nio.ch.SelectionKeyImpl.nioInterestOps:()I
iand
ifeq 16
14: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.selectedKeys:Ljava/util/Set;
aload 5
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
15: iinc 2 1
end local 6 end local 5 end local 4 16: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
17: iload 3
iload 1
if_icmplt 4
end local 3 18: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/nio/ch/DevPollSelectorImpl;
1 19 1 entries I
2 19 2 numKeysUpdated I
3 18 3 i I
5 16 4 nextFD I
6 16 5 ski Lsun/nio/ch/SelectionKeyImpl;
8 16 6 rOps I
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.DevPollSelectorImpl.closed:Z
ifne 27
1: aload 0
iconst_1
putfield sun.nio.ch.DevPollSelectorImpl.closed:Z
2: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 1
monitorenter
3: aload 0
iconst_1
putfield sun.nio.ch.DevPollSelectorImpl.interruptTriggered:Z
4: aload 1
monitorexit
5: goto 8
StackMap locals: sun.nio.ch.DevPollSelectorImpl java.lang.Object
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.DevPollSelectorImpl.fd0:I
invokestatic sun.nio.ch.FileDispatcher.closeIntFD:(I)V
9: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.fd1:I
invokestatic sun.nio.ch.FileDispatcher.closeIntFD:(I)V
10: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
ifnull 25
11: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
aload 0
getfield sun.nio.ch.DevPollSelectorImpl.fd0:I
invokevirtual sun.nio.ch.DevPollArrayWrapper.release:(I)V
12: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
invokevirtual sun.nio.ch.DevPollArrayWrapper.closeDevPollFD:()V
13: aload 0
aconst_null
putfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
14: aload 0
aconst_null
putfield sun.nio.ch.DevPollSelectorImpl.selectedKeys:Ljava/util/Set;
15: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.keys:Ljava/util/HashSet;
invokevirtual java.util.HashSet.iterator:()Ljava/util/Iterator;
astore 1
start local 1 16: goto 23
17: 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 18: aload 0
aload 2
invokevirtual sun.nio.ch.DevPollSelectorImpl.deregister:(Ljava/nio/channels/spi/AbstractSelectionKey;)V
19: aload 2
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: sun.nio.ch.SelectionKeyImpl java.nio.channels.SelectableChannel
StackMap stack:
aload 1
invokeinterface java.util.Iterator.remove:()V
end local 3 end local 2 23: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
24: aload 0
iconst_0
putfield sun.nio.ch.DevPollSelectorImpl.totalChannels:I
end local 1 25: StackMap locals:
StackMap stack:
aload 0
iconst_m1
putfield sun.nio.ch.DevPollSelectorImpl.fd0:I
26: aload 0
iconst_m1
putfield sun.nio.ch.DevPollSelectorImpl.fd1:I
27: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/nio/ch/DevPollSelectorImpl;
16 25 1 i Ljava/util/Iterator;
18 23 2 ski Lsun/nio/ch/SelectionKeyImpl;
20 23 3 selch Ljava/nio/channels/SelectableChannel;
Exception table:
from to target type
3 5 6 any
6 7 6 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.DevPollSelectorImpl.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
dup
getfield sun.nio.ch.DevPollSelectorImpl.totalChannels:I
iconst_1
iadd
putfield sun.nio.ch.DevPollSelectorImpl.totalChannels:I
3: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.keys:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/DevPollSelectorImpl;
0 5 1 ski Lsun/nio/ch/SelectionKeyImpl;
1 5 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=3, 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.DevPollSelectorImpl.$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.DevPollSelectorImpl.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.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
iload 3
invokevirtual sun.nio.ch.DevPollArrayWrapper.release:(I)V
5: aload 0
dup
getfield sun.nio.ch.DevPollSelectorImpl.totalChannels:I
iconst_1
isub
putfield sun.nio.ch.DevPollSelectorImpl.totalChannels:I
6: aload 1
iconst_m1
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
7: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.keys:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.remove:(Ljava/lang/Object;)Z
pop
8: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.selectedKeys:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
9: aload 0
aload 1
invokevirtual sun.nio.ch.DevPollSelectorImpl.deregister:(Ljava/nio/channels/spi/AbstractSelectionKey;)V
10: aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
astore 4
start local 4 11: aload 4
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifne 13
aload 4
invokevirtual java.nio.channels.SelectableChannel.isRegistered:()Z
ifne 13
12: aload 4
checkcast sun.nio.ch.SelChImpl
invokeinterface sun.nio.ch.SelChImpl.kill:()V
13: 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 14 0 this Lsun/nio/ch/DevPollSelectorImpl;
0 14 1 ski Lsun/nio/ch/SelectionKeyImpl;
1 14 2 i I
3 14 3 fd I
11 14 4 selch Ljava/nio/channels/SelectableChannel;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ski
void putEventOps(sun.nio.ch.SelectionKeyImpl, int);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;I)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 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 3
start local 3 1: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
iload 3
iload 2
invokevirtual sun.nio.ch.DevPollArrayWrapper.setInterest:(II)V
2: return
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/DevPollSelectorImpl;
0 3 1 sk Lsun/nio/ch/SelectionKeyImpl;
0 3 2 ops I
1 3 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.DevPollSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.interruptTriggered:Z
ifne 4
2: aload 0
getfield sun.nio.ch.DevPollSelectorImpl.pollWrapper:Lsun/nio/ch/DevPollArrayWrapper;
invokevirtual sun.nio.ch.DevPollArrayWrapper.interrupt:()V
3: aload 0
iconst_1
putfield sun.nio.ch.DevPollSelectorImpl.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/DevPollSelectorImpl;
Exception table:
from to target type
1 5 6 any
6 7 6 any
}
SourceFile: "DevPollSelectorImpl.java"