class sun.nio.ch.EventPortSelectorImpl extends sun.nio.ch.SelectorImpl
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: sun.nio.ch.EventPortSelectorImpl
  super_class: sun.nio.ch.SelectorImpl
{
  static final int MAX_EVENTS;
    descriptor: I
    flags: (0x0018) ACC_STATIC, ACC_FINAL

  private final int pfd;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final long pollArrayAddress;
    descriptor: J
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final sun.nio.ch.AllocatedNativeObject pollArray;
    descriptor: Lsun/nio/ch/AllocatedNativeObject;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.Map<java.lang.Integer, sun.nio.ch.SelectionKeyImpl> fdToKey;
    descriptor: Ljava/util/Map;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/Integer;Lsun/nio/ch/SelectionKeyImpl;>;

  private int lastUpdate;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  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

  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=2, locals=0, args_size=0
         0: .line 57
            ldc Lsun/nio/ch/EventPortSelectorImpl;
            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.EventPortSelectorImpl.$assertionsDisabled:Z
         3: .line 61
            invokestatic sun.nio.ch.IOUtil.fdLimit:()I
            iconst_1
            isub
            sipush 1024
            invokestatic java.lang.Math.min:(II)I
            putstatic sun.nio.ch.EventPortSelectorImpl.MAX_EVENTS:I
            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=3, args_size=2
        start local 0 // sun.nio.ch.EventPortSelectorImpl this
        start local 1 // java.nio.channels.spi.SelectorProvider sp
         0: .line 86
            aload 0 /* this */
            aload 1 /* sp */
            invokespecial sun.nio.ch.SelectorImpl.<init>:(Ljava/nio/channels/spi/SelectorProvider;)V
         1: .line 71
            aload 0 /* this */
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putfield sun.nio.ch.EventPortSelectorImpl.fdToKey:Ljava/util/Map;
         2: .line 78
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield sun.nio.ch.EventPortSelectorImpl.updateLock:Ljava/lang/Object;
         3: .line 79
            aload 0 /* this */
            new java.util.ArrayDeque
            dup
            invokespecial java.util.ArrayDeque.<init>:()V
            putfield sun.nio.ch.EventPortSelectorImpl.updateKeys:Ljava/util/Deque;
         4: .line 82
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield sun.nio.ch.EventPortSelectorImpl.interruptLock:Ljava/lang/Object;
         5: .line 88
            aload 0 /* this */
            invokestatic sun.nio.ch.SolarisEventPort.port_create:()I
            putfield sun.nio.ch.EventPortSelectorImpl.pfd:I
         6: .line 90
            getstatic sun.nio.ch.EventPortSelectorImpl.MAX_EVENTS:I
            getstatic sun.nio.ch.SolarisEventPort.SIZEOF_PORT_EVENT:I
            imul
            istore 2 /* allocationSize */
        start local 2 // int allocationSize
         7: .line 91
            aload 0 /* this */
            new sun.nio.ch.AllocatedNativeObject
            dup
            iload 2 /* allocationSize */
            iconst_0
            invokespecial sun.nio.ch.AllocatedNativeObject.<init>:(IZ)V
            putfield sun.nio.ch.EventPortSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
         8: .line 92
            aload 0 /* this */
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
            invokevirtual sun.nio.ch.AllocatedNativeObject.address:()J
            putfield sun.nio.ch.EventPortSelectorImpl.pollArrayAddress:J
         9: .line 93
            return
        end local 2 // int allocationSize
        end local 1 // java.nio.channels.spi.SelectorProvider sp
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   10     0            this  Lsun/nio/ch/EventPortSelectorImpl;
            0   10     1              sp  Ljava/nio/channels/spi/SelectorProvider;
            7   10     2  allocationSize  I
    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 // sun.nio.ch.EventPortSelectorImpl this
         0: .line 96
            aload 0 /* this */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.isOpen:()Z
            ifne 2
         1: .line 97
            new java.nio.channels.ClosedSelectorException
            dup
            invokespecial java.nio.channels.ClosedSelectorException.<init>:()V
            athrow
         2: .line 98
      StackMap locals:
      StackMap stack:
            return
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lsun/nio/ch/EventPortSelectorImpl;

  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=14, args_size=3
        start local 0 // sun.nio.ch.EventPortSelectorImpl this
        start local 1 // java.util.function.Consumer action
        start local 2 // long timeout
         0: .line 104
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 106
      StackMap locals:
      StackMap stack:
            lload 2 /* timeout */
            lstore 4 /* to */
        start local 4 // long to
         2: .line 107
            lload 4 /* to */
            lconst_0
            lcmp
            ifeq 3
            iconst_1
            goto 4
      StackMap locals: long
      StackMap stack:
         3: iconst_0
      StackMap locals:
      StackMap stack: int
         4: istore 6 /* blocking */
        start local 6 // boolean blocking
         5: .line 108
            lload 4 /* to */
            lconst_0
            lcmp
            ifle 6
            iconst_1
            goto 7
      StackMap locals: int
      StackMap stack:
         6: iconst_0
      StackMap locals:
      StackMap stack: int
         7: istore 7 /* timedPoll */
        start local 7 // boolean timedPoll
         8: .line 111
            aload 0 /* this */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.processUpdateQueue:()V
         9: .line 112
            aload 0 /* this */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.processDeregisterQueue:()V
        10: .line 114
            aload 0 /* this */
            iload 6 /* blocking */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.begin:(Z)V
        11: .line 117
      StackMap locals: int
      StackMap stack:
            iload 7 /* timedPoll */
            ifeq 12
            invokestatic java.lang.System.nanoTime:()J
            goto 13
      StackMap locals:
      StackMap stack:
        12: lconst_0
      StackMap locals:
      StackMap stack: long
        13: lstore 9 /* startTime */
        start local 9 // long startTime
        14: .line 118
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pfd:I
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pollArrayAddress:J
            getstatic sun.nio.ch.EventPortSelectorImpl.MAX_EVENTS:I
            lload 4 /* to */
            invokestatic sun.nio.ch.SolarisEventPort.port_getn:(IJIJ)I
            istore 8 /* numEvents */
        start local 8 // int numEvents
        15: .line 119
            iload 8 /* numEvents */
            bipush -3
            if_icmpne 20
            iload 7 /* timedPoll */
            ifeq 20
        16: .line 121
            invokestatic java.lang.System.nanoTime:()J
            lload 9 /* startTime */
            lsub
            lstore 11 /* adjust */
        start local 11 // long adjust
        17: .line 122
            lload 4 /* to */
            getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
            lload 11 /* adjust */
            getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
            invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
            lsub
            lstore 4 /* to */
        18: .line 123
            lload 4 /* to */
            lconst_0
            lcmp
            ifgt 20
        19: .line 125
            iconst_0
            istore 8 /* numEvents */
        end local 11 // long adjust
        end local 9 // long startTime
        20: .line 128
      StackMap locals: int
      StackMap stack:
            iload 8 /* numEvents */
            bipush -3
            if_icmpeq 11
        21: .line 129
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 25
            iload 8 /* numEvents */
            invokestatic sun.nio.ch.IOStatus.check:(I)Z
            ifne 25
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        end local 8 // int numEvents
        22: .line 131
      StackMap locals: sun.nio.ch.EventPortSelectorImpl java.util.function.Consumer long long int int
      StackMap stack: java.lang.Throwable
            astore 13
        23: .line 132
            aload 0 /* this */
            iload 6 /* blocking */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.end:(Z)V
        24: .line 133
            aload 13
            athrow
        start local 8 // int numEvents
        25: .line 132
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            iload 6 /* blocking */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.end:(Z)V
        26: .line 134
            aload 0 /* this */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.processDeregisterQueue:()V
        27: .line 135
            aload 0 /* this */
            iload 8 /* numEvents */
            aload 1 /* action */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.processPortEvents:(ILjava/util/function/Consumer;)I
            ireturn
        end local 8 // int numEvents
        end local 7 // boolean timedPoll
        end local 6 // boolean blocking
        end local 4 // long to
        end local 2 // long timeout
        end local 1 // java.util.function.Consumer action
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   28     0       this  Lsun/nio/ch/EventPortSelectorImpl;
            0   28     1     action  Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
            0   28     2    timeout  J
            2   28     4         to  J
            5   28     6   blocking  Z
            8   28     7  timedPoll  Z
           15   22     8  numEvents  I
           25   28     8  numEvents  I
           14   20     9  startTime  J
           17   20    11     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=5, locals=6, args_size=1
        start local 0 // sun.nio.ch.EventPortSelectorImpl this
         0: .line 142
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 146
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            getfield sun.nio.ch.EventPortSelectorImpl.lastUpdate:I
            iconst_1
            iadd
            putfield sun.nio.ch.EventPortSelectorImpl.lastUpdate:I
         2: .line 148
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.updateLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         3: .line 150
            goto 15
        start local 2 // sun.nio.ch.SelectionKeyImpl ski
         4: .line 151
      StackMap locals: java.lang.Object sun.nio.ch.SelectionKeyImpl
      StackMap stack:
            aload 2 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.isValid:()Z
            ifeq 15
         5: .line 152
            aload 2 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.getFDVal:()I
            istore 3 /* fd */
        start local 3 // int fd
         6: .line 154
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.fdToKey:Ljava/util/Map;
            iload 3 /* fd */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aload 2 /* ski */
            invokeinterface java.util.Map.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            checkcast sun.nio.ch.SelectionKeyImpl
            astore 4 /* previous */
        start local 4 // sun.nio.ch.SelectionKeyImpl previous
         7: .line 155
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 8
            aload 4 /* previous */
            ifnull 8
            aload 4 /* previous */
            aload 2 /* ski */
            if_acmpeq 8
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         8: .line 157
      StackMap locals: int sun.nio.ch.SelectionKeyImpl
      StackMap stack:
            aload 2 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.translateInterestOps:()I
            istore 5 /* newEvents */
        start local 5 // int newEvents
         9: .line 158
            iload 5 /* newEvents */
            aload 2 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.registeredEvents:()I
            if_icmpeq 15
        10: .line 159
            iload 5 /* newEvents */
            ifne 13
        11: .line 160
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pfd:I
            iconst_4
            iload 3 /* fd */
            i2l
            invokestatic sun.nio.ch.SolarisEventPort.port_dissociate:(IIJ)Z
            pop
        12: .line 161
            goto 14
        13: .line 162
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pfd:I
            iconst_4
            iload 3 /* fd */
            i2l
            iload 5 /* newEvents */
            invokestatic sun.nio.ch.SolarisEventPort.port_associate:(IIJI)Z
            pop
        14: .line 164
      StackMap locals:
      StackMap stack:
            aload 2 /* ski */
            iload 5 /* newEvents */
            invokevirtual sun.nio.ch.SelectionKeyImpl.registeredEvents:(I)V
        end local 5 // int newEvents
        end local 4 // sun.nio.ch.SelectionKeyImpl previous
        end local 3 // int fd
        end local 2 // sun.nio.ch.SelectionKeyImpl ski
        15: .line 150
      StackMap locals: sun.nio.ch.EventPortSelectorImpl java.lang.Object
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.updateKeys:Ljava/util/Deque;
            invokeinterface java.util.Deque.pollFirst:()Ljava/lang/Object;
            checkcast sun.nio.ch.SelectionKeyImpl
            dup
            astore 2 /* ski */
        start local 2 // sun.nio.ch.SelectionKeyImpl ski
        16: ifnonnull 4
        end local 2 // sun.nio.ch.SelectionKeyImpl ski
        17: .line 148
            aload 1
            monitorexit
        18: goto 21
      StackMap locals:
      StackMap stack: java.lang.Throwable
        19: aload 1
            monitorexit
        20: athrow
        21: .line 169
      StackMap locals:
      StackMap stack:
            return
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   22     0       this  Lsun/nio/ch/EventPortSelectorImpl;
            4   15     2        ski  Lsun/nio/ch/SelectionKeyImpl;
           16   17     2        ski  Lsun/nio/ch/SelectionKeyImpl;
            6   15     3         fd  I
            7   15     4   previous  Lsun/nio/ch/SelectionKeyImpl;
            9   15     5  newEvents  I
      Exception table:
        from    to  target  type
           3    18      19  any
          19    20      19  any
    Exceptions:
      throws java.io.IOException

  private int processPortEvents(int, java.util.function.Consumer<java.nio.channels.SelectionKey>);
    descriptor: (ILjava/util/function/Consumer;)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=11, args_size=3
        start local 0 // sun.nio.ch.EventPortSelectorImpl this
        start local 1 // int numEvents
        start local 2 // java.util.function.Consumer action
         0: .line 178
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 180
      StackMap locals:
      StackMap stack:
            iconst_0
            istore 3 /* numKeysUpdated */
        start local 3 // int numKeysUpdated
         2: .line 181
            iconst_0
            istore 4 /* interrupted */
        start local 4 // boolean interrupted
         3: .line 187
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.updateLock:Ljava/lang/Object;
            dup
            astore 5
            monitorenter
         4: .line 188
            iconst_0
            istore 6 /* i */
        start local 6 // int i
         5: goto 22
         6: .line 189
      StackMap locals: sun.nio.ch.EventPortSelectorImpl int java.util.function.Consumer int int java.lang.Object int
      StackMap stack:
            aload 0 /* this */
            iload 6 /* i */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.getSource:(I)S
            istore 7 /* source */
        start local 7 // short source
         7: .line 190
            iload 7 /* source */
            iconst_4
            if_icmpne 17
         8: .line 191
            aload 0 /* this */
            iload 6 /* i */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.getDescriptor:(I)I
            istore 8 /* fd */
        start local 8 // int fd
         9: .line 192
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.fdToKey:Ljava/util/Map;
            iload 8 /* fd */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast sun.nio.ch.SelectionKeyImpl
            astore 9 /* ski */
        start local 9 // sun.nio.ch.SelectionKeyImpl ski
        10: .line 193
            aload 9 /* ski */
            ifnull 21
        11: .line 194
            aload 9 /* ski */
            iconst_0
            invokevirtual sun.nio.ch.SelectionKeyImpl.registeredEvents:(I)V
        12: .line 195
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.updateKeys:Ljava/util/Deque;
            aload 9 /* ski */
            invokeinterface java.util.Deque.addLast:(Ljava/lang/Object;)V
        13: .line 198
            aload 2 /* action */
            ifnonnull 21
        14: .line 199
            aload 0 /* this */
            iload 6 /* i */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.getEventOps:(I)I
            istore 10 /* rOps */
        start local 10 // int rOps
        15: .line 200
            iload 3 /* numKeysUpdated */
            aload 0 /* this */
            iload 10 /* rOps */
            aload 9 /* ski */
            aconst_null
            invokevirtual sun.nio.ch.EventPortSelectorImpl.processReadyEvents:(ILsun/nio/ch/SelectionKeyImpl;Ljava/util/function/Consumer;)I
            iadd
            istore 3 /* numKeysUpdated */
        end local 10 // int rOps
        end local 9 // sun.nio.ch.SelectionKeyImpl ski
        end local 8 // int fd
        16: .line 204
            goto 21
      StackMap locals: int
      StackMap stack:
        17: iload 7 /* source */
            iconst_3
            if_icmpne 20
        18: .line 205
            iconst_1
            istore 4 /* interrupted */
        19: .line 206
            goto 21
        20: .line 207
      StackMap locals:
      StackMap stack:
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 21
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        end local 7 // short source
        21: .line 188
      StackMap locals:
      StackMap stack:
            iinc 6 /* i */ 1
      StackMap locals:
      StackMap stack:
        22: iload 6 /* i */
            iload 1 /* numEvents */
            if_icmplt 6
        end local 6 // int i
        23: .line 187
            aload 5
            monitorexit
        24: goto 27
      StackMap locals: sun.nio.ch.EventPortSelectorImpl int java.util.function.Consumer int int java.lang.Object
      StackMap stack: java.lang.Throwable
        25: aload 5
            monitorexit
        26: athrow
        27: .line 214
      StackMap locals:
      StackMap stack:
            aload 2 /* action */
            ifnull 39
        28: .line 215
            iconst_0
            istore 5 /* i */
        start local 5 // int i
        29: goto 38
        30: .line 216
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            iload 5 /* i */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.getSource:(I)S
            istore 6 /* source */
        start local 6 // short source
        31: .line 217
            iload 6 /* source */
            iconst_4
            if_icmpne 37
        32: .line 218
            aload 0 /* this */
            iload 5 /* i */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.getDescriptor:(I)I
            istore 7 /* fd */
        start local 7 // int fd
        33: .line 219
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.fdToKey:Ljava/util/Map;
            iload 7 /* fd */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast sun.nio.ch.SelectionKeyImpl
            astore 8 /* ski */
        start local 8 // sun.nio.ch.SelectionKeyImpl ski
        34: .line 220
            aload 8 /* ski */
            ifnull 37
        35: .line 221
            aload 0 /* this */
            iload 5 /* i */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.getEventOps:(I)I
            istore 9 /* rOps */
        start local 9 // int rOps
        36: .line 222
            iload 3 /* numKeysUpdated */
            aload 0 /* this */
            iload 9 /* rOps */
            aload 8 /* ski */
            aload 2 /* action */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.processReadyEvents:(ILsun/nio/ch/SelectionKeyImpl;Ljava/util/function/Consumer;)I
            iadd
            istore 3 /* numKeysUpdated */
        end local 9 // int rOps
        end local 8 // sun.nio.ch.SelectionKeyImpl ski
        end local 7 // int fd
        end local 6 // short source
        37: .line 215
      StackMap locals:
      StackMap stack:
            iinc 5 /* i */ 1
      StackMap locals:
      StackMap stack:
        38: iload 5 /* i */
            iload 1 /* numEvents */
            if_icmplt 30
        end local 5 // int i
        39: .line 228
      StackMap locals:
      StackMap stack:
            iload 4 /* interrupted */
            ifeq 41
        40: .line 229
            aload 0 /* this */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.clearInterrupt:()V
        41: .line 231
      StackMap locals:
      StackMap stack:
            iload 3 /* numKeysUpdated */
            ireturn
        end local 4 // boolean interrupted
        end local 3 // int numKeysUpdated
        end local 2 // java.util.function.Consumer action
        end local 1 // int numEvents
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   42     0            this  Lsun/nio/ch/EventPortSelectorImpl;
            0   42     1       numEvents  I
            0   42     2          action  Ljava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;
            2   42     3  numKeysUpdated  I
            3   42     4     interrupted  Z
            5   23     6               i  I
            7   21     7          source  S
            9   16     8              fd  I
           10   16     9             ski  Lsun/nio/ch/SelectionKeyImpl;
           15   16    10            rOps  I
           29   39     5               i  I
           31   37     6          source  S
           33   37     7              fd  I
           34   37     8             ski  Lsun/nio/ch/SelectionKeyImpl;
           36   37     9            rOps  I
      Exception table:
        from    to  target  type
           4    24      25  any
          25    26      25  any
    Exceptions:
      throws java.io.IOException
    Signature: (ILjava/util/function/Consumer<Ljava/nio/channels/SelectionKey;>;)I
    MethodParameters:
           Name  Flags
      numEvents  
      action     

  protected void implClose();
    descriptor: ()V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // sun.nio.ch.EventPortSelectorImpl this
         0: .line 236
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 1
            aload 0 /* this */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.isOpen:()Z
            ifeq 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 237
      StackMap locals:
      StackMap stack:
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 2
            aload 0 /* this */
            invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
            ifne 2
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         2: .line 240
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.interruptLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         3: .line 241
            aload 0 /* this */
            iconst_1
            putfield sun.nio.ch.EventPortSelectorImpl.interruptTriggered:Z
         4: .line 240
            aload 1
            monitorexit
         5: goto 8
      StackMap locals: sun.nio.ch.EventPortSelectorImpl java.lang.Object
      StackMap stack: java.lang.Throwable
         6: aload 1
            monitorexit
         7: athrow
         8: .line 244
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pfd:I
            invokestatic sun.nio.ch.SolarisEventPort.port_close:(I)V
         9: .line 245
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
            invokevirtual sun.nio.ch.AllocatedNativeObject.free:()V
        10: .line 246
            return
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   11     0  this  Lsun/nio/ch/EventPortSelectorImpl;
      Exception table:
        from    to  target  type
           3     5       6  any
           6     7       6  any
    Exceptions:
      throws java.io.IOException

  protected void implDereg(sun.nio.ch.SelectionKeyImpl);
    descriptor: (Lsun/nio/ch/SelectionKeyImpl;)V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // sun.nio.ch.EventPortSelectorImpl this
        start local 1 // sun.nio.ch.SelectionKeyImpl ski
         0: .line 250
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 1
            aload 1 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.isValid:()Z
            ifeq 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 251
      StackMap locals:
      StackMap stack:
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 2
            aload 0 /* this */
            invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
            ifne 2
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         2: .line 253
      StackMap locals:
      StackMap stack:
            aload 1 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.getFDVal:()I
            istore 2 /* fd */
        start local 2 // int fd
         3: .line 254
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.fdToKey:Ljava/util/Map;
            iload 2 /* fd */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
            ifnull 8
         4: .line 255
            aload 1 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.registeredEvents:()I
            ifeq 9
         5: .line 256
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pfd:I
            iconst_4
            iload 2 /* fd */
            i2l
            invokestatic sun.nio.ch.SolarisEventPort.port_dissociate:(IIJ)Z
            pop
         6: .line 257
            aload 1 /* ski */
            iconst_0
            invokevirtual sun.nio.ch.SelectionKeyImpl.registeredEvents:(I)V
         7: .line 259
            goto 9
         8: .line 260
      StackMap locals: int
      StackMap stack:
            getstatic sun.nio.ch.EventPortSelectorImpl.$assertionsDisabled:Z
            ifne 9
            aload 1 /* ski */
            invokevirtual sun.nio.ch.SelectionKeyImpl.registeredEvents:()I
            ifeq 9
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         9: .line 262
      StackMap locals:
      StackMap stack:
            return
        end local 2 // int fd
        end local 1 // sun.nio.ch.SelectionKeyImpl ski
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   10     0  this  Lsun/nio/ch/EventPortSelectorImpl;
            0   10     1   ski  Lsun/nio/ch/SelectionKeyImpl;
            3   10     2    fd  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 // sun.nio.ch.EventPortSelectorImpl this
        start local 1 // sun.nio.ch.SelectionKeyImpl ski
         0: .line 266
            aload 0 /* this */
            invokevirtual sun.nio.ch.EventPortSelectorImpl.ensureOpen:()V
         1: .line 267
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.updateLock:Ljava/lang/Object;
            dup
            astore 2
            monitorenter
         2: .line 268
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.updateKeys:Ljava/util/Deque;
            aload 1 /* ski */
            invokeinterface java.util.Deque.addLast:(Ljava/lang/Object;)V
         3: .line 267
            aload 2
            monitorexit
         4: goto 7
      StackMap locals: sun.nio.ch.EventPortSelectorImpl sun.nio.ch.SelectionKeyImpl java.lang.Object
      StackMap stack: java.lang.Throwable
         5: aload 2
            monitorexit
         6: athrow
         7: .line 270
      StackMap locals:
      StackMap stack:
            return
        end local 1 // sun.nio.ch.SelectionKeyImpl ski
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lsun/nio/ch/EventPortSelectorImpl;
            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 // sun.nio.ch.EventPortSelectorImpl this
         0: .line 274
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.interruptLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         1: .line 275
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.interruptTriggered:Z
            ifne 7
         2: .line 277
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pfd:I
            iconst_0
            invokestatic sun.nio.ch.SolarisEventPort.port_send:(II)V
         3: .line 278
            goto 6
      StackMap locals: sun.nio.ch.EventPortSelectorImpl java.lang.Object
      StackMap stack: java.io.IOException
         4: astore 2 /* ioe */
        start local 2 // java.io.IOException ioe
         5: .line 279
            new java.lang.InternalError
            dup
            aload 2 /* ioe */
            invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 2 // java.io.IOException ioe
         6: .line 281
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield sun.nio.ch.EventPortSelectorImpl.interruptTriggered:Z
         7: .line 274
      StackMap locals:
      StackMap stack:
            aload 1
            monitorexit
         8: goto 11
      StackMap locals:
      StackMap stack: java.lang.Throwable
         9: aload 1
            monitorexit
        10: athrow
        11: .line 284
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            areturn
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   12     0  this  Lsun/nio/ch/EventPortSelectorImpl;
            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 // sun.nio.ch.EventPortSelectorImpl this
         0: .line 288
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.interruptLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         1: .line 289
            aload 0 /* this */
            iconst_0
            putfield sun.nio.ch.EventPortSelectorImpl.interruptTriggered:Z
         2: .line 288
            aload 1
            monitorexit
         3: goto 6
      StackMap locals: sun.nio.ch.EventPortSelectorImpl java.lang.Object
      StackMap stack: java.lang.Throwable
         4: aload 1
            monitorexit
         5: athrow
         6: .line 291
      StackMap locals:
      StackMap stack:
            return
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lsun/nio/ch/EventPortSelectorImpl;
      Exception table:
        from    to  target  type
           1     3       4  any
           4     5       4  any
    Exceptions:
      throws java.io.IOException

  private short getSource(int);
    descriptor: (I)S
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // sun.nio.ch.EventPortSelectorImpl this
        start local 1 // int i
         0: .line 294
            getstatic sun.nio.ch.SolarisEventPort.SIZEOF_PORT_EVENT:I
            iload 1 /* i */
            imul
            iconst_4
            iadd
            istore 2 /* offset */
        start local 2 // int offset
         1: .line 295
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
            iload 2 /* offset */
            invokevirtual sun.nio.ch.AllocatedNativeObject.getShort:(I)S
            ireturn
        end local 2 // int offset
        end local 1 // int i
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lsun/nio/ch/EventPortSelectorImpl;
            0    2     1       i  I
            1    2     2  offset  I
    MethodParameters:
      Name  Flags
      i     

  private int getEventOps(int);
    descriptor: (I)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // sun.nio.ch.EventPortSelectorImpl this
        start local 1 // int i
         0: .line 299
            getstatic sun.nio.ch.SolarisEventPort.SIZEOF_PORT_EVENT:I
            iload 1 /* i */
            imul
            iconst_0
            iadd
            istore 2 /* offset */
        start local 2 // int offset
         1: .line 300
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
            iload 2 /* offset */
            invokevirtual sun.nio.ch.AllocatedNativeObject.getInt:(I)I
            ireturn
        end local 2 // int offset
        end local 1 // int i
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lsun/nio/ch/EventPortSelectorImpl;
            0    2     1       i  I
            1    2     2  offset  I
    MethodParameters:
      Name  Flags
      i     

  private int getDescriptor(int);
    descriptor: (I)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // sun.nio.ch.EventPortSelectorImpl this
        start local 1 // int i
         0: .line 305
            getstatic sun.nio.ch.SolarisEventPort.SIZEOF_PORT_EVENT:I
            iload 1 /* i */
            imul
            bipush 8
            iadd
            istore 2 /* offset */
        start local 2 // int offset
         1: .line 306
            aload 0 /* this */
            getfield sun.nio.ch.EventPortSelectorImpl.pollArray:Lsun/nio/ch/AllocatedNativeObject;
            iload 2 /* offset */
            invokevirtual sun.nio.ch.AllocatedNativeObject.getLong:(I)J
            l2i
            ireturn
        end local 2 // int offset
        end local 1 // int i
        end local 0 // sun.nio.ch.EventPortSelectorImpl this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lsun/nio/ch/EventPortSelectorImpl;
            0    2     1       i  I
            1    2     2  offset  I
    MethodParameters:
      Name  Flags
      i     
}
SourceFile: "EventPortSelectorImpl.java"