public class org.apache.cassandra.concurrent.SharedExecutorPool
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.cassandra.concurrent.SharedExecutorPool
  super_class: java.lang.Object
{
  public static final org.apache.cassandra.concurrent.SharedExecutorPool SHARED;
    descriptor: Lorg/apache/cassandra/concurrent/SharedExecutorPool;
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL

  final java.lang.String poolName;
    descriptor: Ljava/lang/String;
    flags: (0x0010) ACC_FINAL

  final java.util.concurrent.atomic.AtomicLong workerId;
    descriptor: Ljava/util/concurrent/atomic/AtomicLong;
    flags: (0x0010) ACC_FINAL

  public final java.util.List<org.apache.cassandra.concurrent.SEPExecutor> executors;
    descriptor: Ljava/util/List;
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Signature: Ljava/util/List<Lorg/apache/cassandra/concurrent/SEPExecutor;>;

  final java.util.concurrent.atomic.AtomicInteger spinningCount;
    descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
    flags: (0x0010) ACC_FINAL

  final java.util.concurrent.atomic.AtomicLong stopCheck;
    descriptor: Ljava/util/concurrent/atomic/AtomicLong;
    flags: (0x0010) ACC_FINAL

  final java.util.concurrent.ConcurrentSkipListMap<java.lang.Long, org.apache.cassandra.concurrent.SEPWorker> spinning;
    descriptor: Ljava/util/concurrent/ConcurrentSkipListMap;
    flags: (0x0010) ACC_FINAL
    Signature: Ljava/util/concurrent/ConcurrentSkipListMap<Ljava/lang/Long;Lorg/apache/cassandra/concurrent/SEPWorker;>;

  final java.util.concurrent.ConcurrentSkipListMap<java.lang.Long, org.apache.cassandra.concurrent.SEPWorker> descheduled;
    descriptor: Ljava/util/concurrent/ConcurrentSkipListMap;
    flags: (0x0010) ACC_FINAL
    Signature: Ljava/util/concurrent/ConcurrentSkipListMap<Ljava/lang/Long;Lorg/apache/cassandra/concurrent/SEPWorker;>;

  volatile boolean shuttingDown;
    descriptor: Z
    flags: (0x0040) ACC_VOLATILE

  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=3, locals=0, args_size=0
         0: .line 57
            ldc Lorg/apache/cassandra/concurrent/SharedExecutorPool;
            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 org.apache.cassandra.concurrent.SharedExecutorPool.$assertionsDisabled:Z
         3: .line 60
            new org.apache.cassandra.concurrent.SharedExecutorPool
            dup
            ldc "SharedPool"
            invokespecial org.apache.cassandra.concurrent.SharedExecutorPool.<init>:(Ljava/lang/String;)V
            putstatic org.apache.cassandra.concurrent.SharedExecutorPool.SHARED:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
        start local 1 // java.lang.String poolName
         0: .line 82
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 64
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicLong
            dup
            invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
            putfield org.apache.cassandra.concurrent.SharedExecutorPool.workerId:Ljava/util/concurrent/atomic/AtomicLong;
         2: .line 67
            aload 0 /* this */
            new java.util.concurrent.CopyOnWriteArrayList
            dup
            invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:()V
            putfield org.apache.cassandra.concurrent.SharedExecutorPool.executors:Ljava/util/List;
         3: .line 70
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicInteger
            dup
            invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
            putfield org.apache.cassandra.concurrent.SharedExecutorPool.spinningCount:Ljava/util/concurrent/atomic/AtomicInteger;
         4: .line 72
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicLong
            dup
            invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
            putfield org.apache.cassandra.concurrent.SharedExecutorPool.stopCheck:Ljava/util/concurrent/atomic/AtomicLong;
         5: .line 76
            aload 0 /* this */
            new java.util.concurrent.ConcurrentSkipListMap
            dup
            invokespecial java.util.concurrent.ConcurrentSkipListMap.<init>:()V
            putfield org.apache.cassandra.concurrent.SharedExecutorPool.spinning:Ljava/util/concurrent/ConcurrentSkipListMap;
         6: .line 78
            aload 0 /* this */
            new java.util.concurrent.ConcurrentSkipListMap
            dup
            invokespecial java.util.concurrent.ConcurrentSkipListMap.<init>:()V
            putfield org.apache.cassandra.concurrent.SharedExecutorPool.descheduled:Ljava/util/concurrent/ConcurrentSkipListMap;
         7: .line 80
            aload 0 /* this */
            iconst_0
            putfield org.apache.cassandra.concurrent.SharedExecutorPool.shuttingDown:Z
         8: .line 84
            aload 0 /* this */
            aload 1 /* poolName */
            putfield org.apache.cassandra.concurrent.SharedExecutorPool.poolName:Ljava/lang/String;
         9: .line 85
            return
        end local 1 // java.lang.String poolName
        end local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   10     0      this  Lorg/apache/cassandra/concurrent/SharedExecutorPool;
            0   10     1  poolName  Ljava/lang/String;
    MethodParameters:
          Name  Flags
      poolName  

  void schedule(org.apache.cassandra.concurrent.SEPWorker$Work);
    descriptor: (Lorg/apache/cassandra/concurrent/SEPWorker$Work;)V
    flags: (0x0000) 
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
        start local 1 // org.apache.cassandra.concurrent.SEPWorker$Work work
         0: .line 94
            goto 3
        start local 2 // java.util.Map$Entry e
         1: .line 95
      StackMap locals: java.util.Map$Entry
      StackMap stack:
            aload 2 /* e */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            checkcast org.apache.cassandra.concurrent.SEPWorker
            aload 1 /* work */
            iconst_0
            invokevirtual org.apache.cassandra.concurrent.SEPWorker.assign:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;Z)Z
            ifeq 3
         2: .line 96
            return
        end local 2 // java.util.Map$Entry e
         3: .line 94
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinning:Ljava/util/concurrent/ConcurrentSkipListMap;
            invokevirtual java.util.concurrent.ConcurrentSkipListMap.pollFirstEntry:()Ljava/util/Map$Entry;
            dup
            astore 2 /* e */
        start local 2 // java.util.Map$Entry e
         4: ifnonnull 1
            aload 0 /* this */
            getfield org.apache.cassandra.concurrent.SharedExecutorPool.descheduled:Ljava/util/concurrent/ConcurrentSkipListMap;
            invokevirtual java.util.concurrent.ConcurrentSkipListMap.pollFirstEntry:()Ljava/util/Map$Entry;
            dup
            astore 2 /* e */
            ifnonnull 1
         5: .line 98
            aload 1 /* work */
            invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.isStop:()Z
            ifne 7
         6: .line 99
            new org.apache.cassandra.concurrent.SEPWorker
            aload 0 /* this */
            getfield org.apache.cassandra.concurrent.SharedExecutorPool.workerId:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            aload 1 /* work */
            aload 0 /* this */
            invokespecial org.apache.cassandra.concurrent.SEPWorker.<init>:(Ljava/lang/Long;Lorg/apache/cassandra/concurrent/SEPWorker$Work;Lorg/apache/cassandra/concurrent/SharedExecutorPool;)V
         7: .line 100
      StackMap locals: java.util.Map$Entry
      StackMap stack:
            return
        end local 2 // java.util.Map$Entry e
        end local 1 // org.apache.cassandra.concurrent.SEPWorker$Work work
        end local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lorg/apache/cassandra/concurrent/SharedExecutorPool;
            0    8     1  work  Lorg/apache/cassandra/concurrent/SEPWorker$Work;
            1    3     2     e  Ljava/util/Map$Entry<Ljava/lang/Long;Lorg/apache/cassandra/concurrent/SEPWorker;>;
            4    8     2     e  Ljava/util/Map$Entry<Ljava/lang/Long;Lorg/apache/cassandra/concurrent/SEPWorker;>;
    MethodParameters:
      Name  Flags
      work  

  void maybeStartSpinningWorker();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
         0: .line 106
            aload 0 /* this */
            getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinningCount:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
            istore 1 /* current */
        start local 1 // int current
         1: .line 107
            iload 1 /* current */
            ifne 3
            aload 0 /* this */
            getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinningCount:Ljava/util/concurrent/atomic/AtomicInteger;
            iconst_0
            iconst_1
            invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
            ifeq 3
         2: .line 108
            aload 0 /* this */
            getstatic org.apache.cassandra.concurrent.SEPWorker$Work.SPINNING:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
            invokevirtual org.apache.cassandra.concurrent.SharedExecutorPool.schedule:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;)V
         3: .line 109
      StackMap locals: int
      StackMap stack:
            return
        end local 1 // int current
        end local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    4     0     this  Lorg/apache/cassandra/concurrent/SharedExecutorPool;
            1    4     1  current  I

  public synchronized org.apache.cassandra.concurrent.LocalAwareExecutorService newExecutor(int, int, java.lang.String, java.lang.String);
    descriptor: (IILjava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/concurrent/LocalAwareExecutorService;
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=7, locals=6, args_size=5
        start local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
        start local 1 // int maxConcurrency
        start local 2 // int maxQueuedTasks
        start local 3 // java.lang.String jmxPath
        start local 4 // java.lang.String name
         0: .line 113
            new org.apache.cassandra.concurrent.SEPExecutor
            dup
            aload 0 /* this */
            iload 1 /* maxConcurrency */
            iload 2 /* maxQueuedTasks */
            aload 3 /* jmxPath */
            aload 4 /* name */
            invokespecial org.apache.cassandra.concurrent.SEPExecutor.<init>:(Lorg/apache/cassandra/concurrent/SharedExecutorPool;IILjava/lang/String;Ljava/lang/String;)V
            astore 5 /* executor */
        start local 5 // org.apache.cassandra.concurrent.SEPExecutor executor
         1: .line 114
            aload 0 /* this */
            getfield org.apache.cassandra.concurrent.SharedExecutorPool.executors:Ljava/util/List;
            aload 5 /* executor */
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
         2: .line 115
            aload 5 /* executor */
            areturn
        end local 5 // org.apache.cassandra.concurrent.SEPExecutor executor
        end local 4 // java.lang.String name
        end local 3 // java.lang.String jmxPath
        end local 2 // int maxQueuedTasks
        end local 1 // int maxConcurrency
        end local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    3     0            this  Lorg/apache/cassandra/concurrent/SharedExecutorPool;
            0    3     1  maxConcurrency  I
            0    3     2  maxQueuedTasks  I
            0    3     3         jmxPath  Ljava/lang/String;
            0    3     4            name  Ljava/lang/String;
            1    3     5        executor  Lorg/apache/cassandra/concurrent/SEPExecutor;
    MethodParameters:
                Name  Flags
      maxConcurrency  
      maxQueuedTasks  
      jmxPath         
      name            

  public synchronized void shutdownAndWait(long, java.util.concurrent.TimeUnit);
    descriptor: (JLjava/util/concurrent/TimeUnit;)V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=5, locals=9, args_size=3
        start local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
        start local 1 // long timeout
        start local 3 // java.util.concurrent.TimeUnit unit
         0: .line 120
            aload 0 /* this */
            iconst_1
            putfield org.apache.cassandra.concurrent.SharedExecutorPool.shuttingDown:Z
         1: .line 121
            new java.util.ArrayList
            dup
            aload 0 /* this */
            getfield org.apache.cassandra.concurrent.SharedExecutorPool.executors:Ljava/util/List;
            invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
            astore 4 /* executors */
        start local 4 // java.util.List executors
         2: .line 122
            aload 4 /* executors */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 6
            goto 5
      StackMap locals: org.apache.cassandra.concurrent.SharedExecutorPool long java.util.concurrent.TimeUnit java.util.List top java.util.Iterator
      StackMap stack:
         3: aload 6
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast org.apache.cassandra.concurrent.SEPExecutor
            astore 5 /* executor */
        start local 5 // org.apache.cassandra.concurrent.SEPExecutor executor
         4: .line 123
            aload 5 /* executor */
            invokevirtual org.apache.cassandra.concurrent.SEPExecutor.shutdownNow:()Ljava/util/List;
            pop
        end local 5 // org.apache.cassandra.concurrent.SEPExecutor executor
         5: .line 122
      StackMap locals:
      StackMap stack:
            aload 6
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
         6: .line 125
            aload 0 /* this */
            invokevirtual org.apache.cassandra.concurrent.SharedExecutorPool.terminateWorkers:()V
         7: .line 127
            invokestatic java.lang.System.nanoTime:()J
            aload 3 /* unit */
            lload 1 /* timeout */
            invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
            ladd
            lstore 5 /* until */
        start local 5 // long until
         8: .line 128
            aload 4 /* executors */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 8
            goto 11
      StackMap locals: org.apache.cassandra.concurrent.SharedExecutorPool long java.util.concurrent.TimeUnit java.util.List long top java.util.Iterator
      StackMap stack:
         9: aload 8
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast org.apache.cassandra.concurrent.SEPExecutor
            astore 7 /* executor */
        start local 7 // org.apache.cassandra.concurrent.SEPExecutor executor
        10: .line 129
            aload 7 /* executor */
            getfield org.apache.cassandra.concurrent.SEPExecutor.shutdown:Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
            lload 5 /* until */
            invokestatic java.lang.System.nanoTime:()J
            lsub
            getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
            invokevirtual org.apache.cassandra.utils.concurrent.SimpleCondition.await:(JLjava/util/concurrent/TimeUnit;)Z
            pop
        end local 7 // org.apache.cassandra.concurrent.SEPExecutor executor
        11: .line 128
      StackMap locals:
      StackMap stack:
            aload 8
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 9
        12: .line 130
            return
        end local 5 // long until
        end local 4 // java.util.List executors
        end local 3 // java.util.concurrent.TimeUnit unit
        end local 1 // long timeout
        end local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   13     0       this  Lorg/apache/cassandra/concurrent/SharedExecutorPool;
            0   13     1    timeout  J
            0   13     3       unit  Ljava/util/concurrent/TimeUnit;
            2   13     4  executors  Ljava/util/List<Lorg/apache/cassandra/concurrent/SEPExecutor;>;
            4    5     5   executor  Lorg/apache/cassandra/concurrent/SEPExecutor;
            8   13     5      until  J
           10   11     7   executor  Lorg/apache/cassandra/concurrent/SEPExecutor;
    Exceptions:
      throws java.lang.InterruptedException
    MethodParameters:
         Name  Flags
      timeout  
      unit     

  private void terminateWorkers();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
         0: .line 134
            getstatic org.apache.cassandra.concurrent.SharedExecutorPool.$assertionsDisabled:Z
            ifne 2
            aload 0 /* this */
            getfield org.apache.cassandra.concurrent.SharedExecutorPool.shuttingDown:Z
            ifne 2
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        start local 1 // java.util.Map$Entry e
         1: .line 141
      StackMap locals: java.util.Map$Entry
      StackMap stack:
            aload 1 /* e */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            checkcast org.apache.cassandra.concurrent.SEPWorker
            getstatic org.apache.cassandra.concurrent.SEPWorker$Work.SPINNING:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
            iconst_0
            invokevirtual org.apache.cassandra.concurrent.SEPWorker.assign:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;Z)Z
            pop
        end local 1 // java.util.Map$Entry e
         2: .line 140
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.concurrent.SharedExecutorPool.descheduled:Ljava/util/concurrent/ConcurrentSkipListMap;
            invokevirtual java.util.concurrent.ConcurrentSkipListMap.pollFirstEntry:()Ljava/util/Map$Entry;
            dup
            astore 1 /* e */
        start local 1 // java.util.Map$Entry e
         3: ifnonnull 1
         4: .line 143
            goto 6
         5: .line 144
      StackMap locals: java.util.Map$Entry
      StackMap stack:
            aload 1 /* e */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            checkcast org.apache.cassandra.concurrent.SEPWorker
            getfield org.apache.cassandra.concurrent.SEPWorker.thread:Ljava/lang/Thread;
            invokestatic java.util.concurrent.locks.LockSupport.unpark:(Ljava/lang/Thread;)V
         6: .line 143
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinning:Ljava/util/concurrent/ConcurrentSkipListMap;
            invokevirtual java.util.concurrent.ConcurrentSkipListMap.pollFirstEntry:()Ljava/util/Map$Entry;
            dup
            astore 1 /* e */
            ifnonnull 5
         7: .line 145
            return
        end local 1 // java.util.Map$Entry e
        end local 0 // org.apache.cassandra.concurrent.SharedExecutorPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lorg/apache/cassandra/concurrent/SharedExecutorPool;
            1    2     1     e  Ljava/util/Map$Entry<Ljava/lang/Long;Lorg/apache/cassandra/concurrent/SEPWorker;>;
            3    8     1     e  Ljava/util/Map$Entry<Ljava/lang/Long;Lorg/apache/cassandra/concurrent/SEPWorker;>;
}
SourceFile: "SharedExecutorPool.java"
InnerClasses:
  public abstract Entry = java.util.Map$Entry of java.util.Map
  final Work = org.apache.cassandra.concurrent.SEPWorker$Work of org.apache.cassandra.concurrent.SEPWorker