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
{
protected java.util.Set<java.nio.channels.SelectionKey> selectedKeys;
descriptor: Ljava/util/Set;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
protected java.util.HashSet<java.nio.channels.SelectionKey> keys;
descriptor: Ljava/util/HashSet;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/HashSet<Ljava/nio/channels/SelectionKey;>;
private java.util.Set<java.nio.channels.SelectionKey> publicKeys;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
private java.util.Set<java.nio.channels.SelectionKey> publicSelectedKeys;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
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.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield sun.nio.ch.SelectorImpl.keys:Ljava/util/HashSet;
2: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
3: ldc "1.4"
invokestatic sun.nio.ch.Util.atBugLevel:(Ljava/lang/String;)Z
ifeq 7
4: aload 0
aload 0
getfield sun.nio.ch.SelectorImpl.keys:Ljava/util/HashSet;
putfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
5: aload 0
aload 0
getfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
putfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
6: goto 9
7: StackMap locals: sun.nio.ch.SelectorImpl java.nio.channels.spi.SelectorProvider
StackMap stack:
aload 0
aload 0
getfield sun.nio.ch.SelectorImpl.keys:Ljava/util/HashSet;
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
putfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
8: 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;
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/SelectorImpl;
0 10 1 sp Ljava/nio/channels/spi/SelectorProvider;
MethodParameters:
Name Flags
sp
public java.util.Set<java.nio.channels.SelectionKey> keys();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SelectorImpl.isOpen:()Z
ifne 2
ldc "1.4"
invokestatic sun.nio.ch.Util.atBugLevel:(Ljava/lang/String;)Z
ifne 2
1: new java.nio.channels.ClosedSelectorException
dup
invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SelectorImpl;
Signature: ()Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
public java.util.Set<java.nio.channels.SelectionKey> selectedKeys();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SelectorImpl.isOpen:()Z
ifne 2
ldc "1.4"
invokestatic sun.nio.ch.Util.atBugLevel:(Ljava/lang/String;)Z
ifne 2
1: new java.nio.channels.ClosedSelectorException
dup
invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SelectorImpl;
Signature: ()Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
protected abstract int doSelect(long);
descriptor: (J)I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
private int lockAndDoSelect(long);
descriptor: (J)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 3
monitorenter
1: aload 0
invokevirtual sun.nio.ch.SelectorImpl.isOpen:()Z
ifne 3
2: new java.nio.channels.ClosedSelectorException
dup
invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
athrow
3: StackMap locals: sun.nio.ch.SelectorImpl
StackMap stack:
aload 0
getfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
dup
astore 4
monitorenter
4: aload 0
getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
dup
astore 5
monitorenter
5: aload 0
lload 1
invokevirtual sun.nio.ch.SelectorImpl.doSelect:(J)I
aload 5
monitorexit
6: aload 4
monitorexit
7: aload 3
monitorexit
8: ireturn
9: StackMap locals: sun.nio.ch.SelectorImpl long sun.nio.ch.SelectorImpl java.util.Set java.util.Set
StackMap stack: java.lang.Throwable
aload 5
monitorexit
10: athrow
11: StackMap locals: sun.nio.ch.SelectorImpl long sun.nio.ch.SelectorImpl java.util.Set
StackMap stack: java.lang.Throwable
aload 4
monitorexit
12: athrow
13: StackMap locals: sun.nio.ch.SelectorImpl long sun.nio.ch.SelectorImpl
StackMap stack: java.lang.Throwable
aload 3
monitorexit
14: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/nio/ch/SelectorImpl;
0 15 1 timeout J
Exception table:
from to target type
5 6 9 any
9 10 9 any
4 7 11 any
9 12 11 any
1 8 13 any
9 14 13 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
public int select(long);
descriptor: (J)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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
lload 1
lconst_0
lcmp
ifne 3
ldc -1
goto 4
StackMap locals:
StackMap stack: sun.nio.ch.SelectorImpl
3: lload 1
StackMap locals: sun.nio.ch.SelectorImpl long
StackMap stack: sun.nio.ch.SelectorImpl long
4: invokevirtual sun.nio.ch.SelectorImpl.lockAndDoSelect:(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 int select();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
invokevirtual sun.nio.ch.SelectorImpl.select:(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 int selectNow();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
invokevirtual sun.nio.ch.SelectorImpl.lockAndDoSelect:(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 void implCloseSelector();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, 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
getfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
dup
astore 2
monitorenter
3: aload 0
getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
dup
astore 3
monitorenter
4: aload 0
invokevirtual sun.nio.ch.SelectorImpl.implClose:()V
5: aload 3
monitorexit
6: goto 9
StackMap locals: sun.nio.ch.SelectorImpl sun.nio.ch.SelectorImpl java.util.Set java.util.Set
StackMap stack: java.lang.Throwable
7: aload 3
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
aload 2
monitorexit
10: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
11: aload 2
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
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;
Exception table:
from to target type
4 6 7 any
7 8 7 any
3 10 11 any
11 12 11 any
2 14 15 any
15 16 15 any
Exceptions:
throws java.io.IOException
protected abstract void implClose();
descriptor: ()V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
public void putEventOps(sun.nio.ch.SelectionKeyImpl, int);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectorImpl;
0 1 1 sk Lsun/nio/ch/SelectionKeyImpl;
0 1 2 ops I
MethodParameters:
Name Flags
sk
ops
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 4
aload 3
invokevirtual sun.nio.ch.SelectionKeyImpl.attach:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 0
getfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
dup
astore 5
monitorenter
5: aload 0
aload 4
invokevirtual sun.nio.ch.SelectorImpl.implRegister:(Lsun/nio/ch/SelectionKeyImpl;)V
6: aload 5
monitorexit
7: goto 10
StackMap locals: sun.nio.ch.SelectorImpl java.nio.channels.spi.AbstractSelectableChannel int java.lang.Object sun.nio.ch.SelectionKeyImpl java.util.Set
StackMap stack: java.lang.Throwable
8: aload 5
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
aload 4
iload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.interestOps:(I)Ljava/nio/channels/SelectionKey;
pop
11: 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 12 0 this Lsun/nio/ch/SelectorImpl;
0 12 1 ch Ljava/nio/channels/spi/AbstractSelectableChannel;
0 12 2 ops I
0 12 3 attachment Ljava/lang/Object;
3 12 4 k Lsun/nio/ch/SelectionKeyImpl;
Exception table:
from to target type
5 7 8 any
8 9 8 any
MethodParameters:
Name Flags
ch
ops
attachment
protected abstract void implRegister(sun.nio.ch.SelectionKeyImpl);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
ski
void processDeregisterQueue();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SelectorImpl.cancelledKeys:()Ljava/util/Set;
astore 1
start local 1 1: aload 1
dup
astore 2
monitorenter
2: aload 1
invokeinterface java.util.Set.isEmpty:()Z
ifne 15
3: aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
start local 3 4: goto 14
5: StackMap locals: java.util.Set 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 6: aload 0
aload 4
invokevirtual sun.nio.ch.SelectorImpl.implDereg:(Lsun/nio/ch/SelectionKeyImpl;)V
7: goto 13
StackMap locals: sun.nio.ch.SelectorImpl java.util.Set java.util.Set java.util.Iterator sun.nio.ch.SelectionKeyImpl
StackMap stack: java.net.SocketException
8: astore 5
start local 5 9: new java.io.IOException
dup
ldc "Error deregistering key"
aload 5
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 10: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
11: aload 3
invokeinterface java.util.Iterator.remove:()V
12: aload 6
athrow
13: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.remove:()V
end local 4 14: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 3 15: StackMap locals:
StackMap stack:
aload 2
monitorexit
16: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
17: aload 2
monitorexit
18: athrow
19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/nio/ch/SelectorImpl;
1 20 1 cks Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
4 15 3 i Ljava/util/Iterator<Ljava/nio/channels/SelectionKey;>;
6 14 4 ski Lsun/nio/ch/SelectionKeyImpl;
9 10 5 se Ljava/net/SocketException;
Exception table:
from to target type
6 7 8 Class java.net.SocketException
6 10 10 any
2 16 17 any
17 18 17 any
Exceptions:
throws java.io.IOException
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 abstract java.nio.channels.Selector wakeup();
descriptor: ()Ljava/nio/channels/Selector;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
}
SourceFile: "SelectorImpl.java"