class sun.nio.ch.PollSelectorImpl extends sun.nio.ch.AbstractPollSelectorImpl
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.PollSelectorImpl
super_class: sun.nio.ch.AbstractPollSelectorImpl
{
private int fd0;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int fd1;
descriptor: I
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
void <init>(java.nio.channels.spi.SelectorProvider);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
iconst_1
invokespecial sun.nio.ch.AbstractPollSelectorImpl.<init>:(Ljava/nio/channels/spi/SelectorProvider;II)V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.PollSelectorImpl.interruptLock:Ljava/lang/Object;
2: aload 0
iconst_0
putfield sun.nio.ch.PollSelectorImpl.interruptTriggered:Z
3: iconst_2
newarray 10
astore 2
start local 2 4: aload 2
iconst_0
invokestatic sun.nio.ch.IOUtil.initPipe:([IZ)V
5: aload 0
aload 2
iconst_0
iaload
putfield sun.nio.ch.PollSelectorImpl.fd0:I
6: aload 0
aload 2
iconst_1
iaload
putfield sun.nio.ch.PollSelectorImpl.fd1:I
7: aload 0
new sun.nio.ch.PollArrayWrapper
dup
bipush 10
invokespecial sun.nio.ch.PollArrayWrapper.<init>:(I)V
putfield sun.nio.ch.PollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
8: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
aload 0
getfield sun.nio.ch.PollSelectorImpl.fd0:I
aload 0
getfield sun.nio.ch.PollSelectorImpl.fd1:I
invokevirtual sun.nio.ch.PollArrayWrapper.initInterrupt:(II)V
9: aload 0
bipush 10
anewarray sun.nio.ch.SelectionKeyImpl
putfield sun.nio.ch.PollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/nio/ch/PollSelectorImpl;
0 11 1 sp Ljava/nio/channels/spi/SelectorProvider;
4 11 2 fdes [I
MethodParameters:
Name Flags
sp
protected int doSelect(long);
descriptor: (J)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.PollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
ifnonnull 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.PollSelectorImpl.processDeregisterQueue:()V
3: aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.begin:()V
4: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
aload 0
getfield sun.nio.ch.PollSelectorImpl.totalChannels:I
iconst_0
lload 1
invokevirtual sun.nio.ch.PollArrayWrapper.poll:(IIJ)I
pop
5: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 3
7: aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.end:()V
8: aload 3
athrow
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.end:()V
10: aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.processDeregisterQueue:()V
11: aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.updateSelectedKeys:()I
istore 3
start local 3 12: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
iconst_0
invokevirtual sun.nio.ch.PollArrayWrapper.getReventOps:(I)I
ifeq 21
13: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
iconst_0
iconst_0
invokevirtual sun.nio.ch.PollArrayWrapper.putReventOps:(II)V
14: aload 0
getfield sun.nio.ch.PollSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 4
monitorenter
15: aload 0
getfield sun.nio.ch.PollSelectorImpl.fd0:I
invokestatic sun.nio.ch.IOUtil.drain:(I)Z
pop
16: aload 0
iconst_0
putfield sun.nio.ch.PollSelectorImpl.interruptTriggered:Z
17: aload 4
monitorexit
18: goto 21
StackMap locals: sun.nio.ch.PollSelectorImpl long int java.lang.Object
StackMap stack: java.lang.Throwable
19: aload 4
monitorexit
20: athrow
21: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/nio/ch/PollSelectorImpl;
0 22 1 timeout J
12 22 3 numKeysUpdated I
Exception table:
from to target type
3 6 6 any
15 18 19 any
19 20 19 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
protected void implCloseInterrupt();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.PollSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
iconst_1
putfield sun.nio.ch.PollSelectorImpl.interruptTriggered:Z
2: aload 1
monitorexit
3: goto 6
StackMap locals: sun.nio.ch.PollSelectorImpl java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.PollSelectorImpl.fd0:I
invokestatic sun.nio.ch.FileDispatcher.closeIntFD:(I)V
7: aload 0
getfield sun.nio.ch.PollSelectorImpl.fd1:I
invokestatic sun.nio.ch.FileDispatcher.closeIntFD:(I)V
8: aload 0
iconst_m1
putfield sun.nio.ch.PollSelectorImpl.fd0:I
9: aload 0
iconst_m1
putfield sun.nio.ch.PollSelectorImpl.fd1:I
10: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
iconst_0
invokevirtual sun.nio.ch.PollArrayWrapper.release:(I)V
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/ch/PollSelectorImpl;
Exception table:
from to target type
1 3 4 any
4 5 4 any
Exceptions:
throws java.io.IOException
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.PollSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.PollSelectorImpl.interruptTriggered:Z
ifne 4
2: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollWrapper:Lsun/nio/ch/PollArrayWrapper;
invokevirtual sun.nio.ch.PollArrayWrapper.interrupt:()V
3: aload 0
iconst_1
putfield sun.nio.ch.PollSelectorImpl.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/PollSelectorImpl;
Exception table:
from to target type
1 5 6 any
6 7 6 any
}
SourceFile: "PollSelectorImpl.java"