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=6, 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_0
invokestatic sun.nio.ch.IOUtil.makePipe:(Z)J
lstore 2
start local 2 4: aload 0
lload 2
bipush 32
lushr
l2i
putfield sun.nio.ch.PollSelectorImpl.fd0:I
5: aload 0
lload 2
l2i
putfield sun.nio.ch.PollSelectorImpl.fd1:I
6: 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;
7: 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
8: aload 0
bipush 10
anewarray sun.nio.ch.SelectionKeyImpl
putfield sun.nio.ch.PollSelectorImpl.channelArray:[Lsun/nio/ch/SelectionKeyImpl;
9: goto 20
StackMap locals: sun.nio.ch.PollSelectorImpl java.nio.channels.spi.SelectorProvider long
StackMap stack: java.lang.Throwable
10: astore 4
start local 4 11: aload 0
getfield sun.nio.ch.PollSelectorImpl.fd0:I
invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(I)V
12: goto 15
StackMap locals: sun.nio.ch.PollSelectorImpl java.nio.channels.spi.SelectorProvider long java.lang.Throwable
StackMap stack: java.io.IOException
13: astore 5
start local 5 14: aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
end local 5 15: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.PollSelectorImpl.fd1:I
invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(I)V
16: goto 19
StackMap locals:
StackMap stack: java.io.IOException
17: astore 5
start local 5 18: aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
end local 5 19: StackMap locals:
StackMap stack:
aload 4
athrow
end local 4 20: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/nio/ch/PollSelectorImpl;
0 21 1 sp Ljava/nio/channels/spi/SelectorProvider;
4 21 2 pipeFds J
11 20 4 t Ljava/lang/Throwable;
14 15 5 ioe0 Ljava/io/IOException;
18 19 5 ioe1 Ljava/io/IOException;
Exception table:
from to target type
6 9 10 Class java.lang.Throwable
11 12 13 Class java.io.IOException
15 16 17 Class java.io.IOException
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.FileDispatcherImpl.closeIntFD:(I)V
7: aload 0
getfield sun.nio.ch.PollSelectorImpl.fd1:I
invokestatic sun.nio.ch.FileDispatcherImpl.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"