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: 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: 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 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
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: aload 0
new java.util.concurrent.CopyOnWriteArrayList
dup
invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:()V
putfield org.apache.cassandra.concurrent.SharedExecutorPool.executors:Ljava/util/List;
3: aload 0
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: aload 0
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: aload 0
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: aload 0
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: aload 0
iconst_0
putfield org.apache.cassandra.concurrent.SharedExecutorPool.shuttingDown:Z
8: aload 0
aload 1
putfield org.apache.cassandra.concurrent.SharedExecutorPool.poolName:Ljava/lang/String;
9: return
end local 1 end local 0 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 start local 1 0: goto 3
start local 2 1: StackMap locals: java.util.Map$Entry
StackMap stack:
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker
aload 1
iconst_0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.assign:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;Z)Z
ifeq 3
2: return
end local 2 3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinning:Ljava/util/concurrent/ConcurrentSkipListMap;
invokevirtual java.util.concurrent.ConcurrentSkipListMap.pollFirstEntry:()Ljava/util/Map$Entry;
dup
astore 2
start local 2 4: ifnonnull 1
aload 0
getfield org.apache.cassandra.concurrent.SharedExecutorPool.descheduled:Ljava/util/concurrent/ConcurrentSkipListMap;
invokevirtual java.util.concurrent.ConcurrentSkipListMap.pollFirstEntry:()Ljava/util/Map$Entry;
dup
astore 2
ifnonnull 1
5: aload 1
invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.isStop:()Z
ifne 7
6: new org.apache.cassandra.concurrent.SEPWorker
aload 0
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
aload 0
invokespecial org.apache.cassandra.concurrent.SEPWorker.<init>:(Ljava/lang/Long;Lorg/apache/cassandra/concurrent/SEPWorker$Work;Lorg/apache/cassandra/concurrent/SharedExecutorPool;)V
7: StackMap locals: java.util.Map$Entry
StackMap stack:
return
end local 2 end local 1 end local 0 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 0: aload 0
getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinningCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 1
start local 1 1: iload 1
ifne 3
aload 0
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: aload 0
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: StackMap locals: int
StackMap stack:
return
end local 1 end local 0 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 start local 1 start local 2 start local 3 start local 4 0: new org.apache.cassandra.concurrent.SEPExecutor
dup
aload 0
iload 1
iload 2
aload 3
aload 4
invokespecial org.apache.cassandra.concurrent.SEPExecutor.<init>:(Lorg/apache/cassandra/concurrent/SharedExecutorPool;IILjava/lang/String;Ljava/lang/String;)V
astore 5
start local 5 1: aload 0
getfield org.apache.cassandra.concurrent.SharedExecutorPool.executors:Ljava/util/List;
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 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 start local 1 start local 3 0: aload 0
iconst_1
putfield org.apache.cassandra.concurrent.SharedExecutorPool.shuttingDown:Z
1: new java.util.ArrayList
dup
aload 0
getfield org.apache.cassandra.concurrent.SharedExecutorPool.executors:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 4
start local 4 2: aload 4
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
start local 5 4: aload 5
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.shutdownNow:()Ljava/util/List;
pop
end local 5 5: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 0
invokevirtual org.apache.cassandra.concurrent.SharedExecutorPool.terminateWorkers:()V
7: invokestatic java.lang.System.nanoTime:()J
aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
ladd
lstore 5
start local 5 8: aload 4
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
start local 7 10: aload 7
getfield org.apache.cassandra.concurrent.SEPExecutor.shutdown:Lorg/apache/cassandra/utils/concurrent/SimpleCondition;
lload 5
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 11: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
12: return
end local 5 end local 4 end local 3 end local 1 end local 0 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 0: getstatic org.apache.cassandra.concurrent.SharedExecutorPool.$assertionsDisabled:Z
ifne 2
aload 0
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 1: StackMap locals: java.util.Map$Entry
StackMap stack:
aload 1
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 2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.SharedExecutorPool.descheduled:Ljava/util/concurrent/ConcurrentSkipListMap;
invokevirtual java.util.concurrent.ConcurrentSkipListMap.pollFirstEntry:()Ljava/util/Map$Entry;
dup
astore 1
start local 1 3: ifnonnull 1
4: goto 6
5: StackMap locals: java.util.Map$Entry
StackMap stack:
aload 1
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: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinning:Ljava/util/concurrent/ConcurrentSkipListMap;
invokevirtual java.util.concurrent.ConcurrentSkipListMap.pollFirstEntry:()Ljava/util/Map$Entry;
dup
astore 1
ifnonnull 5
7: return
end local 1 end local 0 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