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 // sun.nio.ch.SelectorImpl this
        start local 1 // java.nio.channels.spi.SelectorProvider sp
         0: .line 54
            aload 0 /* this */
            aload 1 /* sp */
            invokespecial java.nio.channels.spi.AbstractSelector.<init>:(Ljava/nio/channels/spi/SelectorProvider;)V
         1: .line 55
            aload 0 /* this */
            new java.util.HashSet
            dup
            invokespecial java.util.HashSet.<init>:()V
            putfield sun.nio.ch.SelectorImpl.keys:Ljava/util/HashSet;
         2: .line 56
            aload 0 /* this */
            new java.util.HashSet
            dup
            invokespecial java.util.HashSet.<init>:()V
            putfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
         3: .line 57
            ldc "1.4"
            invokestatic sun.nio.ch.Util.atBugLevel:(Ljava/lang/String;)Z
            ifeq 7
         4: .line 58
            aload 0 /* this */
            aload 0 /* this */
            getfield sun.nio.ch.SelectorImpl.keys:Ljava/util/HashSet;
            putfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
         5: .line 59
            aload 0 /* this */
            aload 0 /* this */
            getfield sun.nio.ch.SelectorImpl.selectedKeys:Ljava/util/Set;
            putfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
         6: .line 60
            goto 9
         7: .line 61
      StackMap locals: sun.nio.ch.SelectorImpl java.nio.channels.spi.SelectorProvider
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            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: .line 62
            aload 0 /* this */
            aload 0 /* this */
            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: .line 64
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.nio.channels.spi.SelectorProvider sp
        end local 0 // sun.nio.ch.SelectorImpl this
      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 // sun.nio.ch.SelectorImpl this
         0: .line 67
            aload 0 /* this */
            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: .line 68
            new java.nio.channels.ClosedSelectorException
            dup
            invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
            athrow
         2: .line 69
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
            areturn
        end local 0 // sun.nio.ch.SelectorImpl this
      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 // sun.nio.ch.SelectorImpl this
         0: .line 73
            aload 0 /* this */
            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: .line 74
            new java.nio.channels.ClosedSelectorException
            dup
            invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
            athrow
         2: .line 75
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
            areturn
        end local 0 // sun.nio.ch.SelectorImpl this
      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 // sun.nio.ch.SelectorImpl this
        start local 1 // long timeout
         0: .line 81
            aload 0 /* this */
            dup
            astore 3
            monitorenter
         1: .line 82
            aload 0 /* this */
            invokevirtual sun.nio.ch.SelectorImpl.isOpen:()Z
            ifne 3
         2: .line 83
            new java.nio.channels.ClosedSelectorException
            dup
            invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
            athrow
         3: .line 84
      StackMap locals: sun.nio.ch.SelectorImpl
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
            dup
            astore 4
            monitorenter
         4: .line 85
            aload 0 /* this */
            getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
            dup
            astore 5
            monitorenter
         5: .line 86
            aload 0 /* this */
            lload 1 /* timeout */
            invokevirtual sun.nio.ch.SelectorImpl.doSelect:(J)I
            aload 5
            monitorexit
         6: aload 4
            monitorexit
         7: aload 3
            monitorexit
         8: ireturn
         9: .line 85
      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: .line 84
      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: .line 81
      StackMap locals: sun.nio.ch.SelectorImpl long sun.nio.ch.SelectorImpl
      StackMap stack: java.lang.Throwable
            aload 3
            monitorexit
        14: athrow
        end local 1 // long timeout
        end local 0 // sun.nio.ch.SelectorImpl this
      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 // sun.nio.ch.SelectorImpl this
        start local 1 // long timeout
         0: .line 95
            lload 1 /* timeout */
            lconst_0
            lcmp
            ifge 2
         1: .line 96
            new java.lang.IllegalArgumentException
            dup
            ldc "Negative timeout"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 97
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            lload 1 /* timeout */
            lconst_0
            lcmp
            ifne 3
            ldc -1
            goto 4
      StackMap locals:
      StackMap stack: sun.nio.ch.SelectorImpl
         3: lload 1 /* timeout */
      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 // long timeout
        end local 0 // sun.nio.ch.SelectorImpl this
      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 // sun.nio.ch.SelectorImpl this
         0: .line 101
            aload 0 /* this */
            lconst_0
            invokevirtual sun.nio.ch.SelectorImpl.select:(J)I
            ireturn
        end local 0 // sun.nio.ch.SelectorImpl this
      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 // sun.nio.ch.SelectorImpl this
         0: .line 105
            aload 0 /* this */
            lconst_0
            invokevirtual sun.nio.ch.SelectorImpl.lockAndDoSelect:(J)I
            ireturn
        end local 0 // sun.nio.ch.SelectorImpl this
      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 // sun.nio.ch.SelectorImpl this
         0: .line 109
            aload 0 /* this */
            invokevirtual sun.nio.ch.SelectorImpl.wakeup:()Ljava/nio/channels/Selector;
            pop
         1: .line 110
            aload 0 /* this */
            dup
            astore 1
            monitorenter
         2: .line 111
            aload 0 /* this */
            getfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
            dup
            astore 2
            monitorenter
         3: .line 112
            aload 0 /* this */
            getfield sun.nio.ch.SelectorImpl.publicSelectedKeys:Ljava/util/Set;
            dup
            astore 3
            monitorenter
         4: .line 113
            aload 0 /* this */
            invokevirtual sun.nio.ch.SelectorImpl.implClose:()V
         5: .line 112
            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: .line 111
      StackMap locals:
      StackMap stack:
            aload 2
            monitorexit
        10: goto 13
      StackMap locals:
      StackMap stack: java.lang.Throwable
        11: aload 2
            monitorexit
        12: athrow
        13: .line 110
      StackMap locals:
      StackMap stack:
            aload 1
            monitorexit
        14: goto 17
      StackMap locals:
      StackMap stack: java.lang.Throwable
        15: aload 1
            monitorexit
        16: athrow
        17: .line 117
      StackMap locals:
      StackMap stack:
            return
        end local 0 // sun.nio.ch.SelectorImpl this
      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 // sun.nio.ch.SelectorImpl this
        start local 1 // sun.nio.ch.SelectionKeyImpl sk
        start local 2 // int ops
         0: .line 121
            return
        end local 2 // int ops
        end local 1 // sun.nio.ch.SelectionKeyImpl sk
        end local 0 // sun.nio.ch.SelectorImpl this
      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 // sun.nio.ch.SelectorImpl this
        start local 1 // java.nio.channels.spi.AbstractSelectableChannel ch
        start local 2 // int ops
        start local 3 // java.lang.Object attachment
         0: .line 127
            aload 1 /* ch */
            instanceof sun.nio.ch.SelChImpl
            ifne 2
         1: .line 128
            new java.nio.channels.IllegalSelectorException
            dup
            invokespecial java.nio.channels.IllegalSelectorException.<init>:()V
            athrow
         2: .line 129
      StackMap locals:
      StackMap stack:
            new sun.nio.ch.SelectionKeyImpl
            dup
            aload 1 /* ch */
            checkcast sun.nio.ch.SelChImpl
            aload 0 /* this */
            invokespecial sun.nio.ch.SelectionKeyImpl.<init>:(Lsun/nio/ch/SelChImpl;Lsun/nio/ch/SelectorImpl;)V
            astore 4 /* k */
        start local 4 // sun.nio.ch.SelectionKeyImpl k
         3: .line 130
            aload 4 /* k */
            aload 3 /* attachment */
            invokevirtual sun.nio.ch.SelectionKeyImpl.attach:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         4: .line 131
            aload 0 /* this */
            getfield sun.nio.ch.SelectorImpl.publicKeys:Ljava/util/Set;
            dup
            astore 5
            monitorenter
         5: .line 132
            aload 0 /* this */
            aload 4 /* k */
            invokevirtual sun.nio.ch.SelectorImpl.implRegister:(Lsun/nio/ch/SelectionKeyImpl;)V
         6: .line 131
            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: .line 134
      StackMap locals:
      StackMap stack:
            aload 4 /* k */
            iload 2 /* ops */
            invokevirtual sun.nio.ch.SelectionKeyImpl.interestOps:(I)Ljava/nio/channels/SelectionKey;
            pop
        11: .line 135
            aload 4 /* k */
            areturn
        end local 4 // sun.nio.ch.SelectionKeyImpl k
        end local 3 // java.lang.Object attachment
        end local 2 // int ops
        end local 1 // java.nio.channels.spi.AbstractSelectableChannel ch
        end local 0 // sun.nio.ch.SelectorImpl this
      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 // sun.nio.ch.SelectorImpl this
         0: .line 142
            aload 0 /* this */
            invokevirtual sun.nio.ch.SelectorImpl.cancelledKeys:()Ljava/util/Set;
            astore 1 /* cks */
        start local 1 // java.util.Set cks
         1: .line 143
            aload 1 /* cks */
            dup
            astore 2
            monitorenter
         2: .line 144
            aload 1 /* cks */
            invokeinterface java.util.Set.isEmpty:()Z
            ifne 15
         3: .line 145
            aload 1 /* cks */
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
            astore 3 /* i */
        start local 3 // java.util.Iterator i
         4: .line 146
            goto 14
         5: .line 147
      StackMap locals: java.util.Set java.util.Set java.util.Iterator
      StackMap stack:
            aload 3 /* i */
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast sun.nio.ch.SelectionKeyImpl
            astore 4 /* ski */
        start local 4 // sun.nio.ch.SelectionKeyImpl ski
         6: .line 149
            aload 0 /* this */
            aload 4 /* ski */
            invokevirtual sun.nio.ch.SelectorImpl.implDereg:(Lsun/nio/ch/SelectionKeyImpl;)V
         7: .line 150
            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 /* se */
        start local 5 // java.net.SocketException se
         9: .line 151
            new java.io.IOException
            dup
            ldc "Error deregistering key"
            aload 5 /* se */
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 5 // java.net.SocketException se
        10: .line 152
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 6
        11: .line 153
            aload 3 /* i */
            invokeinterface java.util.Iterator.remove:()V
        12: .line 154
            aload 6
            athrow
        13: .line 153
      StackMap locals:
      StackMap stack:
            aload 3 /* i */
            invokeinterface java.util.Iterator.remove:()V
        end local 4 // sun.nio.ch.SelectionKeyImpl ski
        14: .line 146
      StackMap locals:
      StackMap stack:
            aload 3 /* i */
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 5
        end local 3 // java.util.Iterator i
        15: .line 143
      StackMap locals:
      StackMap stack:
            aload 2
            monitorexit
        16: goto 19
      StackMap locals:
      StackMap stack: java.lang.Throwable
        17: aload 2
            monitorexit
        18: athrow
        19: .line 158
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.util.Set cks
        end local 0 // sun.nio.ch.SelectorImpl this
      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"