class sun.nio.ch.EPollSelectorImpl extends sun.nio.ch.SelectorImpl
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.EPollSelectorImpl
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.EPollArrayWrapper pollWrapper;
descriptor: Lsun/nio/ch/EPollArrayWrapper;
flags: (0x0000)
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 volatile boolean closed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
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/EPollSelectorImpl;
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.EPollSelectorImpl.$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=4, locals=4, 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.EPollSelectorImpl.closed:Z
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.EPollSelectorImpl.interruptLock:Ljava/lang/Object;
3: aload 0
iconst_0
putfield sun.nio.ch.EPollSelectorImpl.interruptTriggered:Z
4: iconst_0
invokestatic sun.nio.ch.IOUtil.makePipe:(Z)J
lstore 2
start local 2 5: aload 0
lload 2
bipush 32
lushr
l2i
putfield sun.nio.ch.EPollSelectorImpl.fd0:I
6: aload 0
lload 2
l2i
putfield sun.nio.ch.EPollSelectorImpl.fd1:I
7: aload 0
new sun.nio.ch.EPollArrayWrapper
dup
invokespecial sun.nio.ch.EPollArrayWrapper.<init>:()V
putfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
8: aload 0
getfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
aload 0
getfield sun.nio.ch.EPollSelectorImpl.fd0:I
aload 0
getfield sun.nio.ch.EPollSelectorImpl.fd1:I
invokevirtual sun.nio.ch.EPollArrayWrapper.initInterrupt:(II)V
9: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.nio.ch.EPollSelectorImpl.fdToKey:Ljava/util/Map;
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/nio/ch/EPollSelectorImpl;
0 11 1 sp Ljava/nio/channels/spi/SelectorProvider;
5 11 2 pipeFds J
Exceptions:
throws java.io.IOException
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.EPollSelectorImpl.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.EPollSelectorImpl.processDeregisterQueue:()V
3: aload 0
invokevirtual sun.nio.ch.EPollSelectorImpl.begin:()V
4: aload 0
getfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
lload 1
invokevirtual sun.nio.ch.EPollArrayWrapper.poll:(J)I
pop
5: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 3
7: aload 0
invokevirtual sun.nio.ch.EPollSelectorImpl.end:()V
8: aload 3
athrow
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.EPollSelectorImpl.end:()V
10: aload 0
invokevirtual sun.nio.ch.EPollSelectorImpl.processDeregisterQueue:()V
11: aload 0
invokevirtual sun.nio.ch.EPollSelectorImpl.updateSelectedKeys:()I
istore 3
start local 3 12: aload 0
getfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
invokevirtual sun.nio.ch.EPollArrayWrapper.interrupted:()Z
ifeq 22
13: aload 0
getfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
aload 0
getfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
invokevirtual sun.nio.ch.EPollArrayWrapper.interruptedIndex:()I
iconst_0
invokevirtual sun.nio.ch.EPollArrayWrapper.putEventOps:(II)V
14: aload 0
getfield sun.nio.ch.EPollSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 4
monitorenter
15: aload 0
getfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
invokevirtual sun.nio.ch.EPollArrayWrapper.clearInterrupted:()V
16: aload 0
getfield sun.nio.ch.EPollSelectorImpl.fd0:I
invokestatic sun.nio.ch.IOUtil.drain:(I)Z
pop
17: aload 0
iconst_0
putfield sun.nio.ch.EPollSelectorImpl.interruptTriggered:Z
18: aload 4
monitorexit
19: goto 22
StackMap locals: sun.nio.ch.EPollSelectorImpl 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/EPollSelectorImpl;
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.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
getfield sun.nio.ch.EPollArrayWrapper.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.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
iload 3
invokevirtual sun.nio.ch.EPollArrayWrapper.getDescriptor:(I)I
istore 4
start local 4 5: aload 0
getfield sun.nio.ch.EPollSelectorImpl.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.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
iload 3
invokevirtual sun.nio.ch.EPollArrayWrapper.getEventOps:(I)I
istore 6
start local 6 8: aload 0
getfield sun.nio.ch.EPollSelectorImpl.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.EPollSelectorImpl.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/EPollSelectorImpl;
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.EPollSelectorImpl.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.EPollSelectorImpl.closed:Z
3: aload 0
getfield sun.nio.ch.EPollSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 1
monitorenter
4: aload 0
iconst_1
putfield sun.nio.ch.EPollSelectorImpl.interruptTriggered:Z
5: aload 1
monitorexit
6: goto 9
StackMap locals: sun.nio.ch.EPollSelectorImpl 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.EPollSelectorImpl.fd0:I
invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(I)V
10: aload 0
getfield sun.nio.ch.EPollSelectorImpl.fd1:I
invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(I)V
11: aload 0
getfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
invokevirtual sun.nio.ch.EPollArrayWrapper.closeEPollFD:()V
12: aload 0
aconst_null
putfield sun.nio.ch.EPollSelectorImpl.selectedKeys:Ljava/util/Set;
13: aload 0
getfield sun.nio.ch.EPollSelectorImpl.keys:Ljava/util/HashSet;
invokevirtual java.util.HashSet.iterator:()Ljava/util/Iterator;
astore 1
start local 1 14: goto 21
15: 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 16: aload 0
aload 2
invokevirtual sun.nio.ch.EPollSelectorImpl.deregister:(Ljava/nio/channels/spi/AbstractSelectionKey;)V
17: aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
astore 3
start local 3 18: aload 3
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifne 20
aload 3
invokevirtual java.nio.channels.SelectableChannel.isRegistered:()Z
ifne 20
19: aload 3
checkcast sun.nio.ch.SelChImpl
invokeinterface sun.nio.ch.SelChImpl.kill:()V
20: 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 21: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
22: aload 0
iconst_m1
putfield sun.nio.ch.EPollSelectorImpl.fd0:I
23: aload 0
iconst_m1
putfield sun.nio.ch.EPollSelectorImpl.fd1:I
24: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/nio/ch/EPollSelectorImpl;
14 25 1 i Ljava/util/Iterator<Ljava/nio/channels/SelectionKey;>;
16 21 2 ski Lsun/nio/ch/SelectionKeyImpl;
18 21 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=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.EPollSelectorImpl.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;
astore 2
start local 2 3: aload 2
invokeinterface sun.nio.ch.SelChImpl.getFDVal:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
istore 3
start local 3 4: aload 0
getfield sun.nio.ch.EPollSelectorImpl.fdToKey:Ljava/util/Map;
iload 3
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
5: aload 0
getfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
iload 3
invokevirtual sun.nio.ch.EPollArrayWrapper.add:(I)V
6: aload 0
getfield sun.nio.ch.EPollSelectorImpl.keys:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
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/EPollSelectorImpl;
0 8 1 ski Lsun/nio/ch/SelectionKeyImpl;
3 8 2 ch Lsun/nio/ch/SelChImpl;
4 8 3 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: getstatic sun.nio.ch.EPollSelectorImpl.$assertionsDisabled:Z
ifne 1
aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.getIndex:()I
ifge 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
astore 2
start local 2 2: aload 2
invokeinterface sun.nio.ch.SelChImpl.getFDVal:()I
istore 3
start local 3 3: aload 0
getfield sun.nio.ch.EPollSelectorImpl.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.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
iload 3
invokevirtual sun.nio.ch.EPollArrayWrapper.remove:(I)V
5: aload 1
iconst_m1
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
6: aload 0
getfield sun.nio.ch.EPollSelectorImpl.keys:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.remove:(Ljava/lang/Object;)Z
pop
7: aload 0
getfield sun.nio.ch.EPollSelectorImpl.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.EPollSelectorImpl.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: sun.nio.ch.SelChImpl 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/EPollSelectorImpl;
0 13 1 ski Lsun/nio/ch/SelectionKeyImpl;
2 13 2 ch Lsun/nio/ch/SelChImpl;
3 13 3 fd I
10 13 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 0
getfield sun.nio.ch.EPollSelectorImpl.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;
astore 3
start local 3 3: aload 0
getfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
aload 3
invokeinterface sun.nio.ch.SelChImpl.getFDVal:()I
iload 2
invokevirtual sun.nio.ch.EPollArrayWrapper.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/EPollSelectorImpl;
0 5 1 ski Lsun/nio/ch/SelectionKeyImpl;
0 5 2 ops I
3 5 3 ch Lsun/nio/ch/SelChImpl;
MethodParameters:
Name Flags
ski
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.EPollSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.EPollSelectorImpl.interruptTriggered:Z
ifne 4
2: aload 0
getfield sun.nio.ch.EPollSelectorImpl.pollWrapper:Lsun/nio/ch/EPollArrayWrapper;
invokevirtual sun.nio.ch.EPollArrayWrapper.interrupt:()V
3: aload 0
iconst_1
putfield sun.nio.ch.EPollSelectorImpl.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/EPollSelectorImpl;
Exception table:
from to target type
1 5 6 any
6 7 6 any
}
SourceFile: "EPollSelectorImpl.java"