public abstract class sun.nio.ch.SelectorImpl extends java.nio.channels.spi.AbstractSelector
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.nio.ch.SelectorImpl
super_class: java.nio.channels.spi.AbstractSelector
{
private final java.util.Set<java.nio.channels.SelectionKey> keys;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
private final java.util.Set<java.nio.channels.SelectionKey> selectedKeys;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
private final java.util.Set<java.nio.channels.SelectionKey> publicKeys;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
private final java.util.Set<java.nio.channels.SelectionKey> publicSelectedKeys;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
private final java.util.Deque<sun.nio.ch.SelectionKeyImpl> cancelledKeys;
descriptor: Ljava/util/Deque;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Deque<Lsun/nio/ch/SelectionKeyImpl;>;
private boolean inSelect;
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/SelectorImpl;
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.SelectorImpl.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(java.nio.channels.spi.SelectorProvider);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.nio.channels.spi.AbstractSelector.<init>:(Ljava/nio/channels/spi/SelectorProvider;)V
1: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield sun.nio.ch.SelectorImpl.cancelledKeys:Ljava/util/Deque;
2: aload 0
invokestatic java.util.concurrent.ConcurrentHashMap.newKeySet:()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
putfield sun.nio.ch.SelectorImpl.keys:Ljava/util/Set;
3: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
4: aload 0
aload 0
getfield sun.nio.ch.SelectorImpl.keys:Ljava/util/Set;
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
putfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
5: aload 0
aload 0
getfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
invokestatic sun.nio.ch.Util.ungrowableSet:(Ljava/util/Set;)Ljava/util/Set;
putfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/SelectorImpl;
0 7 1 sp Ljava/nio/channels/spi/SelectorProvider;
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.SelectorImpl.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/SelectorImpl;
public final java.util.Set<java.nio.channels.SelectionKey> keys();
descriptor: ()Ljava/util/Set;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SelectorImpl.ensureOpen:()V
1: aload 0
getfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectorImpl;
Signature: ()Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
public final java.util.Set<java.nio.channels.SelectionKey> selectedKeys();
descriptor: ()Ljava/util/Set;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SelectorImpl.ensureOpen:()V
1: aload 0
getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectorImpl;
Signature: ()Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
protected final void begin(boolean);
descriptor: (Z)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
aload 0
invokevirtual sun.nio.ch.SelectorImpl.begin:()V
1: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectorImpl;
0 2 1 blocking Z
MethodParameters:
Name Flags
blocking
protected final void end(boolean);
descriptor: (Z)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
aload 0
invokevirtual sun.nio.ch.SelectorImpl.end:()V
1: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectorImpl;
0 2 1 blocking Z
MethodParameters:
Name Flags
blocking
protected abstract int doSelect(java.util.function.Consumer<java.nio.channels.SelectionKey>, );
descriptor: (Ljava/util/function/Consumer;J)I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;J)I
MethodParameters:
Name Flags
action
timeout
private int lockAndDoSelect(java.util.function.Consumer<java.nio.channels.SelectionKey>, );
descriptor: (Ljava/util/function/Consumer;J)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
dup
astore 4
monitorenter
1: aload 0
invokevirtual sun.nio.ch.SelectorImpl.ensureOpen:()V
2: aload 0
getfield sun.nio.ch.SelectorImpl.inSelect:Z
ifeq 4
3: new java.lang.IllegalStateException
dup
ldc "select in progress"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: sun.nio.ch.SelectorImpl
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.SelectorImpl.inSelect:Z
5: aload 0
getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
dup
astore 5
monitorenter
6: aload 0
aload 1
lload 2
invokevirtual sun.nio.ch.SelectorImpl.doSelect:(Ljava/util/function/Consumer;J)I
istore 7
aload 5
monitorexit
7: aload 0
iconst_0
putfield sun.nio.ch.SelectorImpl.inSelect:Z
8: aload 4
monitorexit
9: iload 7
ireturn
10: StackMap locals: sun.nio.ch.SelectorImpl java.util.function.Consumer long sun.nio.ch.SelectorImpl java.util.Set
StackMap stack: java.lang.Throwable
aload 5
monitorexit
11: athrow
12: StackMap locals: sun.nio.ch.SelectorImpl java.util.function.Consumer long sun.nio.ch.SelectorImpl
StackMap stack: java.lang.Throwable
astore 6
13: aload 0
iconst_0
putfield sun.nio.ch.SelectorImpl.inSelect:Z
14: aload 6
athrow
15: StackMap locals:
StackMap stack: java.lang.Throwable
aload 4
monitorexit
16: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/nio/ch/SelectorImpl;
0 17 1 action Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
0 17 2 timeout J
Exception table:
from to target type
6 7 10 any
10 11 10 any
5 7 12 any
10 12 12 any
1 9 15 any
10 16 15 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;J)I
MethodParameters:
Name Flags
action
timeout
public final int select(long);
descriptor: (J)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "Negative timeout"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aconst_null
lload 1
lconst_0
lcmp
ifne 3
ldc -1
goto 4
StackMap locals: sun.nio.ch.SelectorImpl long
StackMap stack: sun.nio.ch.SelectorImpl null
3: lload 1
StackMap locals: sun.nio.ch.SelectorImpl long
StackMap stack: sun.nio.ch.SelectorImpl null long
4: invokevirtual sun.nio.ch.SelectorImpl.lockAndDoSelect:(Ljava/util/function/Consumer;J)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/SelectorImpl;
0 5 1 timeout J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
public final int select();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
ldc -1
invokevirtual sun.nio.ch.SelectorImpl.lockAndDoSelect:(Ljava/util/function/Consumer;J)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectorImpl;
Exceptions:
throws java.io.IOException
public final int selectNow();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
lconst_0
invokevirtual sun.nio.ch.SelectorImpl.lockAndDoSelect:(Ljava/util/function/Consumer;J)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectorImpl;
Exceptions:
throws java.io.IOException
public final int select(java.util.function.Consumer<java.nio.channels.SelectionKey>, );
descriptor: (Ljava/util/function/Consumer;J)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: lload 2
lconst_0
lcmp
ifge 3
2: new java.lang.IllegalArgumentException
dup
ldc "Negative timeout"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
lload 2
lconst_0
lcmp
ifne 4
ldc -1
goto 5
StackMap locals: sun.nio.ch.SelectorImpl java.util.function.Consumer long
StackMap stack: sun.nio.ch.SelectorImpl java.util.function.Consumer
4: lload 2
StackMap locals: sun.nio.ch.SelectorImpl java.util.function.Consumer long
StackMap stack: sun.nio.ch.SelectorImpl java.util.function.Consumer long
5: invokevirtual sun.nio.ch.SelectorImpl.lockAndDoSelect:(Ljava/util/function/Consumer;J)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/SelectorImpl;
0 6 1 action Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
0 6 2 timeout J
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;J)I
MethodParameters:
Name Flags
action
timeout
public final int select(java.util.function.Consumer<java.nio.channels.SelectionKey>);
descriptor: (Ljava/util/function/Consumer;)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
ldc -1
invokevirtual sun.nio.ch.SelectorImpl.lockAndDoSelect:(Ljava/util/function/Consumer;J)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectorImpl;
0 2 1 action Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;)I
MethodParameters:
Name Flags
action
public final int selectNow(java.util.function.Consumer<java.nio.channels.SelectionKey>);
descriptor: (Ljava/util/function/Consumer;)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
lconst_0
invokevirtual sun.nio.ch.SelectorImpl.lockAndDoSelect:(Ljava/util/function/Consumer;J)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectorImpl;
0 2 1 action Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;)I
MethodParameters:
Name Flags
action
protected abstract void implClose();
descriptor: ()V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
public final void implCloseSelector();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SelectorImpl.wakeup:()Ljava/nio/channels/Selector;
pop
1: aload 0
dup
astore 1
monitorenter
2: aload 0
invokevirtual sun.nio.ch.SelectorImpl.implClose:()V
3: aload 0
getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
dup
astore 2
monitorenter
4: aload 0
getfield sun.nio.ch.SelectorImpl.keys:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
start local 3 5: goto 13
6: StackMap locals: sun.nio.ch.SelectorImpl java.util.Set java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.nio.ch.SelectionKeyImpl
astore 4
start local 4 7: aload 0
aload 4
invokevirtual sun.nio.ch.SelectorImpl.deregister:(Ljava/nio/channels/spi/AbstractSelectionKey;)V
8: aload 4
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
astore 5
start local 5 9: aload 5
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifne 11
aload 5
invokevirtual java.nio.channels.SelectableChannel.isRegistered:()Z
ifne 11
10: aload 5
checkcast sun.nio.ch.SelChImpl
invokeinterface sun.nio.ch.SelChImpl.kill:()V
11: StackMap locals: sun.nio.ch.SelectionKeyImpl java.nio.channels.SelectableChannel
StackMap stack:
aload 0
getfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
aload 4
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
12: aload 3
invokeinterface java.util.Iterator.remove:()V
end local 5 end local 4 13: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
14: getstatic sun.nio.ch.SelectorImpl.$assertionsDisabled:Z
ifne 16
aload 0
getfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifeq 15
aload 0
getfield sun.nio.ch.SelectorImpl.keys:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifne 16
StackMap locals:
StackMap stack:
15: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 3 16: StackMap locals:
StackMap stack:
aload 2
monitorexit
17: goto 20
StackMap locals:
StackMap stack: java.lang.Throwable
18: aload 2
monitorexit
19: athrow
20: StackMap locals:
StackMap stack:
aload 1
monitorexit
21: goto 24
StackMap locals:
StackMap stack: java.lang.Throwable
22: aload 1
monitorexit
23: athrow
24: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/nio/ch/SelectorImpl;
5 16 3 i Ljava/util/Iterator<Ljava/nio/channels/SelectionKey;>;
7 13 4 ski Lsun/nio/ch/SelectionKeyImpl;
9 13 5 selch Ljava/nio/channels/SelectableChannel;
Exception table:
from to target type
4 17 18 any
18 19 18 any
2 21 22 any
22 23 22 any
Exceptions:
throws java.io.IOException
protected final java.nio.channels.SelectionKey register(java.nio.channels.spi.AbstractSelectableChannel, int, java.lang.Object);
descriptor: (Ljava/nio/channels/spi/AbstractSelectableChannel;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
instanceof sun.nio.ch.SelChImpl
ifne 2
1: new java.nio.channels.IllegalSelectorException
dup
invokespecial java.nio.channels.IllegalSelectorException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
new sun.nio.ch.SelectionKeyImpl
dup
aload 1
checkcast sun.nio.ch.SelChImpl
aload 0
invokespecial sun.nio.ch.SelectionKeyImpl.<init>:(Lsun/nio/ch/SelChImpl;Lsun/nio/ch/SelectorImpl;)V
astore 4
start local 4 3: aload 3
ifnull 5
4: aload 4
aload 3
invokevirtual sun.nio.ch.SelectionKeyImpl.attach:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: StackMap locals: sun.nio.ch.SelectionKeyImpl
StackMap stack:
aload 0
aload 4
invokevirtual sun.nio.ch.SelectorImpl.implRegister:(Lsun/nio/ch/SelectionKeyImpl;)V
6: aload 0
getfield sun.nio.ch.SelectorImpl.keys:Ljava/util/Set;
aload 4
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
7: aload 4
iload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.interestOps:(I)Ljava/nio/channels/SelectionKey;
pop
8: goto 14
StackMap locals:
StackMap stack: java.nio.channels.ClosedSelectorException
9: astore 5
start local 5 10: getstatic sun.nio.ch.SelectorImpl.$assertionsDisabled:Z
ifne 11
aload 1
aload 0
invokevirtual java.nio.channels.spi.AbstractSelectableChannel.keyFor:(Ljava/nio/channels/Selector;)Ljava/nio/channels/SelectionKey;
ifnull 11
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
11: StackMap locals: java.nio.channels.ClosedSelectorException
StackMap stack:
aload 0
getfield sun.nio.ch.SelectorImpl.keys:Ljava/util/Set;
aload 4
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
12: aload 4
invokevirtual sun.nio.ch.SelectionKeyImpl.cancel:()V
13: aload 5
athrow
end local 5 14: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/nio/ch/SelectorImpl;
0 15 1 ch Ljava/nio/channels/spi/AbstractSelectableChannel;
0 15 2 ops I
0 15 3 attachment Ljava/lang/Object;
3 15 4 k Lsun/nio/ch/SelectionKeyImpl;
10 14 5 e Ljava/nio/channels/ClosedSelectorException;
Exception table:
from to target type
7 8 9 Class java.nio.channels.ClosedSelectorException
MethodParameters:
Name Flags
ch
ops
attachment
protected void implRegister(sun.nio.ch.SelectionKeyImpl);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.SelectorImpl.ensureOpen:()V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectorImpl;
0 2 1 ski Lsun/nio/ch/SelectionKeyImpl;
MethodParameters:
Name Flags
ski
protected abstract void implDereg(sun.nio.ch.SelectionKeyImpl);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ski
public void cancel(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
getfield sun.nio.ch.SelectorImpl.cancelledKeys:Ljava/util/Deque;
dup
astore 2
monitorenter
1: aload 0
getfield sun.nio.ch.SelectorImpl.cancelledKeys:Ljava/util/Deque;
aload 1
invokeinterface java.util.Deque.addLast:(Ljava/lang/Object;)V
2: aload 2
monitorexit
3: goto 6
StackMap locals: sun.nio.ch.SelectorImpl sun.nio.ch.SelectionKeyImpl java.util.Deque
StackMap stack: java.lang.Throwable
4: aload 2
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/SelectorImpl;
0 7 1 ski Lsun/nio/ch/SelectionKeyImpl;
Exception table:
from to target type
1 3 4 any
4 5 4 any
MethodParameters:
Name Flags
ski
protected final void processDeregisterQueue();
descriptor: ()V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=4, args_size=1
start local 0 0: getstatic sun.nio.ch.SelectorImpl.$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.SelectorImpl.$assertionsDisabled:Z
ifne 2
aload 0
getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
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.SelectorImpl.cancelledKeys:Ljava/util/Deque;
dup
astore 1
monitorenter
3: goto 11
start local 2 4: StackMap locals: java.util.Deque sun.nio.ch.SelectionKeyImpl
StackMap stack:
aload 0
aload 2
invokevirtual sun.nio.ch.SelectorImpl.implDereg:(Lsun/nio/ch/SelectionKeyImpl;)V
5: aload 0
getfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
6: aload 0
getfield sun.nio.ch.SelectorImpl.keys:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
7: aload 0
aload 2
invokevirtual sun.nio.ch.SelectorImpl.deregister:(Ljava/nio/channels/spi/AbstractSelectionKey;)V
8: aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
astore 3
start local 3 9: aload 3
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifne 11
aload 3
invokevirtual java.nio.channels.SelectableChannel.isRegistered:()Z
ifne 11
10: aload 3
checkcast sun.nio.ch.SelChImpl
invokeinterface sun.nio.ch.SelChImpl.kill:()V
end local 3 end local 2 11: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SelectorImpl.cancelledKeys:Ljava/util/Deque;
invokeinterface java.util.Deque.pollFirst:()Ljava/lang/Object;
checkcast sun.nio.ch.SelectionKeyImpl
dup
astore 2
start local 2 12: ifnonnull 4
end local 2 13: aload 1
monitorexit
14: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
15: aload 1
monitorexit
16: athrow
17: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/nio/ch/SelectorImpl;
4 11 2 ski Lsun/nio/ch/SelectionKeyImpl;
12 13 2 ski Lsun/nio/ch/SelectionKeyImpl;
9 11 3 ch Ljava/nio/channels/SelectableChannel;
Exception table:
from to target type
3 14 15 any
15 16 15 any
Exceptions:
throws java.io.IOException
protected final int processReadyEvents(int, sun.nio.ch.SelectionKeyImpl, java.util.function.Consumer<java.nio.channels.SelectionKey>);
descriptor: (ILsun/nio/ch/SelectionKeyImpl;Ljava/util/function/Consumer;)I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnull 6
1: aload 2
iload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.translateAndSetReadyOps:(I)Z
pop
2: aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.nioReadyOps:()I
aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.nioInterestOps:()I
iand
ifeq 14
3: aload 3
aload 2
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
4: aload 0
invokevirtual sun.nio.ch.SelectorImpl.ensureOpen:()V
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.SelectorImpl.$assertionsDisabled:Z
ifne 7
aload 0
getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 10
8: aload 2
iload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.translateAndUpdateReadyOps:(I)Z
ifeq 14
9: iconst_1
ireturn
10: StackMap locals:
StackMap stack:
aload 2
iload 1
invokevirtual sun.nio.ch.SelectionKeyImpl.translateAndSetReadyOps:(I)Z
pop
11: aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.nioReadyOps:()I
aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.nioInterestOps:()I
iand
ifeq 14
12: aload 0
getfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
13: iconst_1
ireturn
14: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/nio/ch/SelectorImpl;
0 15 1 rOps I
0 15 2 ski Lsun/nio/ch/SelectionKeyImpl;
0 15 3 action Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
Signature: (ILsun/nio/ch/SelectionKeyImpl;Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;)I
MethodParameters:
Name Flags
rOps
ski
action
protected abstract void setEventOps(sun.nio.ch.SelectionKeyImpl);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
ski
}
SourceFile: "SelectorImpl.java"
InnerClasses:
public KeySetView = java.util.concurrent.ConcurrentHashMap$KeySetView of java.util.concurrent.ConcurrentHashMap