abstract class sun.nio.ch.SelectorImpl extends java.nio.channels.spi.AbstractSelector
minor version: 0
major version: 59
flags: flags: (0x0420) 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
void putEventOps(sun.nio.ch.SelectionKeyImpl, int);
descriptor: (Lsun/nio/ch/SelectionKeyImpl;I)V
flags: (0x0000)
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=3, locals=8, 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.iterator:()Ljava/util/Iterator;
astore 3
start local 3 3: goto 17
4: 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 5: aload 0
aload 4
invokevirtual sun.nio.ch.SelectorImpl.implDereg:(Lsun/nio/ch/SelectionKeyImpl;)V
6: goto 16
StackMap locals: sun.nio.ch.SelectorImpl java.util.Set java.util.Set java.util.Iterator sun.nio.ch.SelectionKeyImpl
StackMap stack: java.net.SocketException
7: astore 5
start local 5 8: new java.io.IOException
dup
9: ldc "Error deregistering key"
10: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
astore 6
start local 6 11: aload 6
aload 5
invokevirtual java.io.IOException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
12: aload 6
athrow
end local 6 end local 5 13: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
14: aload 3
invokeinterface java.util.Iterator.remove:()V
15: aload 7
athrow
16: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.remove:()V
end local 4 17: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
end local 3 18: aload 2
monitorexit
19: goto 22
StackMap locals: sun.nio.ch.SelectorImpl java.util.Set java.util.Set
StackMap stack: java.lang.Throwable
20: aload 2
monitorexit
21: athrow
22: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/nio/ch/SelectorImpl;
1 23 1 cks Ljava/util/Set;
3 18 3 i Ljava/util/Iterator;
5 17 4 ski Lsun/nio/ch/SelectionKeyImpl;
8 13 5 se Ljava/net/SocketException;
11 13 6 ioe Ljava/io/IOException;
Exception table:
from to target type
5 6 7 Class java.net.SocketException
5 13 13 any
2 19 20 any
20 21 20 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"