class sun.nio.ch.PollSelectorImpl extends sun.nio.ch.SelectorImpl
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.PollSelectorImpl
super_class: sun.nio.ch.SelectorImpl
{
private static final int INITIAL_CAPACITY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 16
private int pollArrayCapacity;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int pollArraySize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private sun.nio.ch.AllocatedNativeObject pollArray;
descriptor: Lsun/nio/ch/AllocatedNativeObject;
flags: (0x0002) ACC_PRIVATE
private final int fd0;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int fd1;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<sun.nio.ch.SelectionKeyImpl> pollKeys;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lsun/nio/ch/SelectionKeyImpl;>;
private final java.lang.Object updateLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Deque<sun.nio.ch.SelectionKeyImpl> updateKeys;
descriptor: Ljava/util/Deque;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Deque<Lsun/nio/ch/SelectionKeyImpl;>;
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
private static final short SIZE_POLLFD;
descriptor: S
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final short FD_OFFSET;
descriptor: S
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final short EVENT_OFFSET;
descriptor: S
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final short REVENT_OFFSET;
descriptor: S
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6
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/PollSelectorImpl;
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.PollSelectorImpl.$assertionsDisabled:Z
3: invokestatic sun.nio.ch.IOUtil.load:()V
4: 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=5, locals=5, 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
bipush 16
putfield sun.nio.ch.PollSelectorImpl.pollArrayCapacity:I
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
3: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.PollSelectorImpl.updateLock:Ljava/lang/Object;
4: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield sun.nio.ch.PollSelectorImpl.updateKeys:Ljava/util/Deque;
5: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.PollSelectorImpl.interruptLock:Ljava/lang/Object;
6: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArrayCapacity:I
bipush 8
imul
istore 2
start local 2 7: aload 0
new sun.nio.ch.AllocatedNativeObject
dup
iload 2
iconst_0
invokespecial sun.nio.ch.AllocatedNativeObject.<init>:(IZ)V
putfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
8: iconst_0
invokestatic sun.nio.ch.IOUtil.makePipe:(Z)J
lstore 3
start local 3 9: aload 0
lload 3
bipush 32
lushr
l2i
putfield sun.nio.ch.PollSelectorImpl.fd0:I
10: aload 0
lload 3
l2i
putfield sun.nio.ch.PollSelectorImpl.fd1:I
end local 3 11: goto 15
StackMap locals: sun.nio.ch.PollSelectorImpl java.nio.channels.spi.SelectorProvider int
StackMap stack: java.io.IOException
12: astore 3
start local 3 13: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
invokevirtual sun.nio.ch.AllocatedNativeObject.free:()V
14: aload 3
athrow
end local 3 15: StackMap locals:
StackMap stack:
aload 0
dup
astore 3
monitorenter
16: aload 0
aload 0
getfield sun.nio.ch.PollSelectorImpl.fd0:I
getstatic sun.nio.ch.Net.POLLIN:S
invokevirtual sun.nio.ch.PollSelectorImpl.setFirst:(II)V
17: aload 3
monitorexit
18: goto 21
StackMap locals: sun.nio.ch.PollSelectorImpl java.nio.channels.spi.SelectorProvider int sun.nio.ch.PollSelectorImpl
StackMap stack: java.lang.Throwable
19: aload 3
monitorexit
20: athrow
21: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/nio/ch/PollSelectorImpl;
0 22 1 sp Ljava/nio/channels/spi/SelectorProvider;
7 22 2 size I
9 11 3 fds J
13 15 3 ioe Ljava/io/IOException;
Exception table:
from to target type
8 11 12 Class java.io.IOException
16 18 19 any
19 20 19 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sp
private void ensureOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.isOpen:()Z
ifne 2
1: new java.nio.channels.ClosedSelectorException
dup
invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/PollSelectorImpl;
protected int doSelect(java.util.function.Consumer<java.nio.channels.SelectionKey>, );
descriptor: (Ljava/util/function/Consumer;J)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=13, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
lload 2
ldc 2147483647
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 4
start local 4 2: iload 4
ifeq 3
iconst_1
goto 4
StackMap locals: int
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 5
start local 5 5: iload 4
ifle 6
iconst_1
goto 7
StackMap locals: int
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: istore 6
start local 6 8: aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.processUpdateQueue:()V
9: aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.processDeregisterQueue:()V
10: aload 0
iload 5
invokevirtual sun.nio.ch.PollSelectorImpl.begin:(Z)V
11: StackMap locals: int
StackMap stack:
iload 6
ifeq 12
invokestatic java.lang.System.nanoTime:()J
goto 13
StackMap locals:
StackMap stack:
12: lconst_0
StackMap locals:
StackMap stack: long
13: lstore 8
start local 8 14: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
invokevirtual sun.nio.ch.AllocatedNativeObject.address:()J
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
iload 4
invokestatic sun.nio.ch.PollSelectorImpl.poll:(JII)I
istore 7
start local 7 15: iload 7
bipush -3
if_icmpne 20
iload 6
ifeq 20
16: invokestatic java.lang.System.nanoTime:()J
lload 8
lsub
lstore 10
start local 10 17: iload 4
i2l
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
lload 10
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lsub
l2i
istore 4
18: iload 4
ifgt 20
19: iconst_0
istore 7
end local 10 end local 8 20: StackMap locals: int
StackMap stack:
iload 7
bipush -3
if_icmpeq 11
21: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 25
iload 7
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
if_icmple 25
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 7 22: StackMap locals: sun.nio.ch.PollSelectorImpl java.util.function.Consumer long int int int
StackMap stack: java.lang.Throwable
astore 12
23: aload 0
iload 5
invokevirtual sun.nio.ch.PollSelectorImpl.end:(Z)V
24: aload 12
athrow
25: StackMap locals:
StackMap stack:
aload 0
iload 5
invokevirtual sun.nio.ch.PollSelectorImpl.end:(Z)V
26: aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.processDeregisterQueue:()V
27: aload 0
aload 1
invokevirtual sun.nio.ch.PollSelectorImpl.processEvents:(Ljava/util/function/Consumer;)I
ireturn
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/nio/ch/PollSelectorImpl;
0 28 1 action Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
0 28 2 timeout J
2 28 4 to I
5 28 5 blocking Z
8 28 6 timedPoll Z
15 22 7 numPolled I
14 20 8 startTime J
17 20 10 adjust J
Exception table:
from to target type
10 22 22 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;J)I
MethodParameters:
Name Flags
action
timeout
private void processUpdateQueue();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=1
start local 0 0: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.PollSelectorImpl.updateLock:Ljava/lang/Object;
dup
astore 1
monitorenter
2: goto 17
start local 2 3: StackMap locals: java.lang.Object sun.nio.ch.SelectionKeyImpl
StackMap stack:
aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.translateInterestOps:()I
istore 3
start local 3 4: aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.isValid:()Z
ifeq 17
5: aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.getIndex:()I
istore 4
start local 4 6: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 8
iload 4
iflt 7
iload 4
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
if_icmplt 8
StackMap locals: int int
StackMap stack:
7: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals:
StackMap stack:
iload 4
ifle 15
9: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 10
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
aload 2
if_acmpeq 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
iload 3
ifne 13
11: aload 0
aload 2
invokevirtual sun.nio.ch.PollSelectorImpl.remove:(Lsun/nio/ch/SelectionKeyImpl;)V
12: goto 17
13: StackMap locals:
StackMap stack:
aload 0
aload 2
iload 3
invokevirtual sun.nio.ch.PollSelectorImpl.update:(Lsun/nio/ch/SelectionKeyImpl;I)V
14: goto 17
StackMap locals:
StackMap stack:
15: iload 3
ifeq 17
16: aload 0
aload 2
iload 3
invokevirtual sun.nio.ch.PollSelectorImpl.add:(Lsun/nio/ch/SelectionKeyImpl;I)V
end local 4 end local 3 end local 2 17: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.PollSelectorImpl.updateKeys:Ljava/util/Deque;
invokeinterface java.util.Deque.pollFirst:()Ljava/lang/Object;
checkcast sun.nio.ch.SelectionKeyImpl
dup
astore 2
start local 2 18: ifnonnull 3
end local 2 19: aload 1
monitorexit
20: goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
21: aload 1
monitorexit
22: athrow
23: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/nio/ch/PollSelectorImpl;
3 17 2 ski Lsun/nio/ch/SelectionKeyImpl;
18 19 2 ski Lsun/nio/ch/SelectionKeyImpl;
4 17 3 newEvents I
6 17 4 index I
Exception table:
from to target type
2 20 21 any
21 22 21 any
private int processEvents(java.util.function.Consumer<java.nio.channels.SelectionKey>);
descriptor: (Ljava/util/function/Consumer;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 3
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
ifle 2
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmpeq 3
StackMap locals:
StackMap stack:
2: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 4: iconst_1
istore 3
start local 3 5: goto 13
6: StackMap locals: int int
StackMap stack:
aload 0
iload 3
invokevirtual sun.nio.ch.PollSelectorImpl.getReventOps:(I)I
istore 4
start local 4 7: iload 4
ifeq 12
8: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.nio.ch.SelectionKeyImpl
astore 5
start local 5 9: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 10
aload 5
invokevirtual sun.nio.ch.SelectionKeyImpl.getFDVal:()I
aload 0
iload 3
invokevirtual sun.nio.ch.PollSelectorImpl.getDescriptor:(I)I
if_icmpeq 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals: int sun.nio.ch.SelectionKeyImpl
StackMap stack:
aload 5
invokevirtual sun.nio.ch.SelectionKeyImpl.isValid:()Z
ifeq 12
11: iload 2
aload 0
iload 4
aload 5
aload 1
invokevirtual sun.nio.ch.PollSelectorImpl.processReadyEvents:(ILsun/nio/ch/SelectionKeyImpl;Ljava/util/function/Consumer;)I
iadd
istore 2
end local 5 end local 4 12: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
13: iload 3
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
if_icmplt 6
end local 3 14: aload 0
iconst_0
invokevirtual sun.nio.ch.PollSelectorImpl.getReventOps:(I)I
ifeq 17
15: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 16
aload 0
iconst_0
invokevirtual sun.nio.ch.PollSelectorImpl.getDescriptor:(I)I
aload 0
getfield sun.nio.ch.PollSelectorImpl.fd0:I
if_icmpeq 16
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
16: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.clearInterrupt:()V
17: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/nio/ch/PollSelectorImpl;
0 18 1 action Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
4 18 2 numKeysUpdated I
5 14 3 i I
7 12 4 rOps I
9 12 5 ski Lsun/nio/ch/SelectionKeyImpl;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;)I
MethodParameters:
Name Flags
action
protected void implClose();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.isOpen:()Z
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 2
aload 0
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.PollSelectorImpl.interruptLock:Ljava/lang/Object;
dup
astore 1
monitorenter
3: aload 0
iconst_1
putfield sun.nio.ch.PollSelectorImpl.interruptTriggered:Z
4: aload 1
monitorexit
5: goto 8
StackMap locals: sun.nio.ch.PollSelectorImpl 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.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
invokevirtual sun.nio.ch.AllocatedNativeObject.free:()V
9: aload 0
getfield sun.nio.ch.PollSelectorImpl.fd0:I
invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(I)V
10: aload 0
getfield sun.nio.ch.PollSelectorImpl.fd1:I
invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(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
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=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 1
aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.getIndex:()I
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.ensureOpen:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/PollSelectorImpl;
0 3 1 ski Lsun/nio/ch/SelectionKeyImpl;
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=3, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 1
aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.isValid:()Z
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 2
aload 0
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.getIndex:()I
istore 2
start local 2 3: iload 2
ifle 5
4: aload 0
aload 1
invokevirtual sun.nio.ch.PollSelectorImpl.remove:(Lsun/nio/ch/SelectionKeyImpl;)V
5: StackMap locals: int
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/PollSelectorImpl;
0 6 1 ski Lsun/nio/ch/SelectionKeyImpl;
3 6 2 index I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ski
public void setEventOps(sun.nio.ch.SelectionKeyImpl);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.ensureOpen:()V
1: aload 0
getfield sun.nio.ch.PollSelectorImpl.updateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
2: aload 0
getfield sun.nio.ch.PollSelectorImpl.updateKeys:Ljava/util/Deque;
aload 1
invokeinterface java.util.Deque.addLast:(Ljava/lang/Object;)V
3: aload 2
monitorexit
4: goto 7
StackMap locals: sun.nio.ch.PollSelectorImpl sun.nio.ch.SelectionKeyImpl java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/PollSelectorImpl;
0 8 1 ski Lsun/nio/ch/SelectionKeyImpl;
Exception table:
from to target type
2 4 5 any
5 6 5 any
MethodParameters:
Name Flags
ski
public java.nio.channels.Selector wakeup();
descriptor: ()Ljava/nio/channels/Selector;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, 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 7
2: aload 0
getfield sun.nio.ch.PollSelectorImpl.fd1:I
iconst_0
invokestatic sun.nio.ch.IOUtil.write1:(IB)I
pop
3: goto 6
StackMap locals: sun.nio.ch.PollSelectorImpl java.lang.Object
StackMap stack: java.io.IOException
4: astore 2
start local 2 5: new java.lang.InternalError
dup
aload 2
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 6: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.PollSelectorImpl.interruptTriggered:Z
7: StackMap locals:
StackMap stack:
aload 1
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/ch/PollSelectorImpl;
5 6 2 ioe Ljava/io/IOException;
Exception table:
from to target type
2 3 4 Class java.io.IOException
1 8 9 any
9 10 9 any
private void clearInterrupt();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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.fd0:I
invokestatic sun.nio.ch.IOUtil.drain:(I)Z
pop
2: aload 0
iconst_0
putfield sun.nio.ch.PollSelectorImpl.interruptTriggered:Z
3: aload 1
monitorexit
4: goto 7
StackMap locals: sun.nio.ch.PollSelectorImpl java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/PollSelectorImpl;
Exception table:
from to target type
1 4 5 any
5 6 5 any
Exceptions:
throws java.io.IOException
private void setFirst(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 1
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 2
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
iload 1
invokevirtual sun.nio.ch.PollSelectorImpl.putDescriptor:(II)V
3: aload 0
iconst_0
iload 2
invokevirtual sun.nio.ch.PollSelectorImpl.putEventOps:(II)V
4: aload 0
iconst_1
putfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
5: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
aconst_null
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/PollSelectorImpl;
0 7 1 fd I
0 7 2 ops I
MethodParameters:
Name Flags
fd
ops
private void add(sun.nio.ch.SelectionKeyImpl, int);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual sun.nio.ch.PollSelectorImpl.expandIfNeeded:()V
1: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
istore 3
start local 3 2: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 3
iload 3
ifgt 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
iload 3
aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.getFDVal:()I
invokevirtual sun.nio.ch.PollSelectorImpl.putDescriptor:(II)V
4: aload 0
iload 3
iload 2
invokevirtual sun.nio.ch.PollSelectorImpl.putEventOps:(II)V
5: aload 0
iload 3
iconst_0
invokevirtual sun.nio.ch.PollSelectorImpl.putReventOps:(II)V
6: aload 1
iload 3
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
7: aload 0
dup
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
iconst_1
iadd
putfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
8: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
9: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 10
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
invokeinterface java.util.List.size:()I
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
if_icmpeq 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
return
end local 3 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 ski Lsun/nio/ch/SelectionKeyImpl;
0 11 2 ops I
2 11 3 index I
MethodParameters:
Name Flags
ski
ops
private void update(sun.nio.ch.SelectionKeyImpl, int);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.getIndex:()I
istore 3
start local 3 1: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 3
iload 3
ifle 2
iload 3
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
if_icmplt 3
StackMap locals: int
StackMap stack:
2: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 4
aload 0
iload 3
invokevirtual sun.nio.ch.PollSelectorImpl.getDescriptor:(I)I
aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.getFDVal:()I
if_icmpeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
iload 3
iload 2
invokevirtual sun.nio.ch.PollSelectorImpl.putEventOps:(II)V
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/PollSelectorImpl;
0 6 1 ski Lsun/nio/ch/SelectionKeyImpl;
0 6 2 ops I
1 6 3 index I
MethodParameters:
Name Flags
ski
ops
private void remove(sun.nio.ch.SelectionKeyImpl);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, 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.PollSelectorImpl.$assertionsDisabled:Z
ifne 3
iload 2
ifle 2
iload 2
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
if_icmplt 3
StackMap locals: int
StackMap stack:
2: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 4
aload 0
iload 2
invokevirtual sun.nio.ch.PollSelectorImpl.getDescriptor:(I)I
aload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.getFDVal:()I
if_icmpeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
iconst_1
isub
istore 3
start local 3 5: iload 3
iload 2
if_icmpeq 17
6: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.nio.ch.SelectionKeyImpl
astore 4
start local 4 7: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 8
aload 4
invokevirtual sun.nio.ch.SelectionKeyImpl.getIndex:()I
iload 3
if_icmpeq 8
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals: int sun.nio.ch.SelectionKeyImpl
StackMap stack:
aload 0
iload 3
invokevirtual sun.nio.ch.PollSelectorImpl.getDescriptor:(I)I
istore 5
start local 5 9: aload 0
iload 3
invokevirtual sun.nio.ch.PollSelectorImpl.getEventOps:(I)I
istore 6
start local 6 10: aload 0
iload 3
invokevirtual sun.nio.ch.PollSelectorImpl.getReventOps:(I)I
istore 7
start local 7 11: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 12
aload 4
invokevirtual sun.nio.ch.SelectionKeyImpl.getFDVal:()I
iload 5
if_icmpeq 12
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
12: StackMap locals: int int int
StackMap stack:
aload 0
iload 2
iload 5
invokevirtual sun.nio.ch.PollSelectorImpl.putDescriptor:(II)V
13: aload 0
iload 2
iload 6
invokevirtual sun.nio.ch.PollSelectorImpl.putEventOps:(II)V
14: aload 0
iload 2
iload 7
invokevirtual sun.nio.ch.PollSelectorImpl.putReventOps:(II)V
15: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
iload 2
aload 4
invokeinterface java.util.List.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
16: aload 4
iload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
end local 7 end local 6 end local 5 end local 4 17: StackMap locals: sun.nio.ch.PollSelectorImpl sun.nio.ch.SelectionKeyImpl int int
StackMap stack:
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
iload 3
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
18: aload 0
dup
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
iconst_1
isub
putfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
19: getstatic sun.nio.ch.PollSelectorImpl.$assertionsDisabled:Z
ifne 20
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollKeys:Ljava/util/List;
invokeinterface java.util.List.size:()I
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
if_icmpeq 20
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
20: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual sun.nio.ch.SelectionKeyImpl.setIndex:(I)V
21: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/nio/ch/PollSelectorImpl;
0 22 1 ski Lsun/nio/ch/SelectionKeyImpl;
1 22 2 index I
5 22 3 lastIndex I
7 17 4 lastKey Lsun/nio/ch/SelectionKeyImpl;
9 17 5 lastFd I
10 17 6 lastOps I
11 17 7 lastRevents I
MethodParameters:
Name Flags
ski
private void expandIfNeeded();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArraySize:I
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArrayCapacity:I
if_icmpne 9
1: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArrayCapacity:I
bipush 8
imul
istore 1
start local 1 2: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArrayCapacity:I
bipush 16
iadd
istore 2
start local 2 3: iload 2
bipush 8
imul
istore 3
start local 3 4: new sun.nio.ch.AllocatedNativeObject
dup
iload 3
iconst_0
invokespecial sun.nio.ch.AllocatedNativeObject.<init>:(IZ)V
astore 4
start local 4 5: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
invokevirtual sun.nio.ch.AllocatedNativeObject.address:()J
aload 4
invokevirtual sun.nio.ch.AllocatedNativeObject.address:()J
iload 1
i2l
invokevirtual jdk.internal.misc.Unsafe.copyMemory:(JJJ)V
6: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
invokevirtual sun.nio.ch.AllocatedNativeObject.free:()V
7: aload 0
aload 4
putfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
8: aload 0
iload 2
putfield sun.nio.ch.PollSelectorImpl.pollArrayCapacity:I
end local 4 end local 3 end local 2 end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/PollSelectorImpl;
2 9 1 oldSize I
3 9 2 newCapacity I
4 9 3 newSize I
5 9 4 newPollArray Lsun/nio/ch/AllocatedNativeObject;
private void putDescriptor(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: bipush 8
iload 1
imul
iconst_0
iadd
istore 3
start local 3 1: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
iload 3
iload 2
invokevirtual sun.nio.ch.AllocatedNativeObject.putInt:(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/PollSelectorImpl;
0 3 1 i I
0 3 2 fd I
1 3 3 offset I
MethodParameters:
Name Flags
i
fd
private int getDescriptor(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: bipush 8
iload 1
imul
iconst_0
iadd
istore 2
start local 2 1: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
iload 2
invokevirtual sun.nio.ch.AllocatedNativeObject.getInt:(I)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/PollSelectorImpl;
0 2 1 i I
1 2 2 offset I
MethodParameters:
Name Flags
i
private void putEventOps(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: bipush 8
iload 1
imul
iconst_4
iadd
istore 3
start local 3 1: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
iload 3
iload 2
i2s
invokevirtual sun.nio.ch.AllocatedNativeObject.putShort:(IS)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/PollSelectorImpl;
0 3 1 i I
0 3 2 event I
1 3 3 offset I
MethodParameters:
Name Flags
i
event
private int getEventOps(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: bipush 8
iload 1
imul
iconst_4
iadd
istore 2
start local 2 1: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
iload 2
invokevirtual sun.nio.ch.AllocatedNativeObject.getShort:(I)S
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/PollSelectorImpl;
0 2 1 i I
1 2 2 offset I
MethodParameters:
Name Flags
i
private void putReventOps(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: bipush 8
iload 1
imul
bipush 6
iadd
istore 3
start local 3 1: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
iload 3
iload 2
i2s
invokevirtual sun.nio.ch.AllocatedNativeObject.putShort:(IS)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/PollSelectorImpl;
0 3 1 i I
0 3 2 revent I
1 3 3 offset I
MethodParameters:
Name Flags
i
revent
private int getReventOps(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: bipush 8
iload 1
imul
bipush 6
iadd
istore 2
start local 2 1: aload 0
getfield sun.nio.ch.PollSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
iload 2
invokevirtual sun.nio.ch.AllocatedNativeObject.getShort:(I)S
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/PollSelectorImpl;
0 2 1 i I
1 2 2 offset I
MethodParameters:
Name Flags
i
private static native int poll(long, int, int);
descriptor: (JII)I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
pollAddress
numfds
timeout
}
SourceFile: "PollSelectorImpl.java"