final class org.apache.cassandra.concurrent.SEPWorker extends java.util.concurrent.atomic.AtomicReference<org.apache.cassandra.concurrent.SEPWorker$Work> implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.concurrent.SEPWorker
super_class: java.util.concurrent.atomic.AtomicReference
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean SET_THREAD_NAME;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
final java.lang.Long workerId;
descriptor: Ljava/lang/Long;
flags: (0x0010) ACC_FINAL
final java.lang.Thread thread;
descriptor: Ljava/lang/Thread;
flags: (0x0010) ACC_FINAL
final org.apache.cassandra.concurrent.SharedExecutorPool pool;
descriptor: Lorg/apache/cassandra/concurrent/SharedExecutorPool;
flags: (0x0010) ACC_FINAL
long prevStopCheck;
descriptor: J
flags: (0x0000)
long soleSpinnerSpinTime;
descriptor: J
flags: (0x0000)
private static final long stopCheckInterval;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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/SEPWorker;
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.SEPWorker.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/concurrent/SEPWorker;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.concurrent.SEPWorker.logger:Lorg/slf4j/Logger;
4: ldc "cassandra.set_sep_thread_name"
ldc "true"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
putstatic org.apache.cassandra.concurrent.SEPWorker.SET_THREAD_NAME:Z
5: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
ldc 10
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
putstatic org.apache.cassandra.concurrent.SEPWorker.stopCheckInterval:J
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.Long, org.apache.cassandra.concurrent.SEPWorker$Work, org.apache.cassandra.concurrent.SharedExecutorPool);
descriptor: (Ljava/lang/Long;Lorg/apache/cassandra/concurrent/SEPWorker$Work;Lorg/apache/cassandra/concurrent/SharedExecutorPool;)V
flags: (0x0000)
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
1: aload 0
lconst_0
putfield org.apache.cassandra.concurrent.SEPWorker.prevStopCheck:J
2: aload 0
lconst_0
putfield org.apache.cassandra.concurrent.SEPWorker.soleSpinnerSpinTime:J
3: aload 0
aload 3
putfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
4: aload 0
aload 1
putfield org.apache.cassandra.concurrent.SEPWorker.workerId:Ljava/lang/Long;
5: aload 0
new io.netty.util.concurrent.FastThreadLocalThread
dup
aload 0
new java.lang.StringBuilder
dup
aload 3
getfield org.apache.cassandra.concurrent.SharedExecutorPool.poolName:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-Worker-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.util.concurrent.FastThreadLocalThread.<init>:(Ljava/lang/Runnable;Ljava/lang/String;)V
putfield org.apache.cassandra.concurrent.SEPWorker.thread:Ljava/lang/Thread;
6: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.thread:Ljava/lang/Thread;
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
7: aload 0
aload 2
invokevirtual org.apache.cassandra.concurrent.SEPWorker.set:(Ljava/lang/Object;)V
8: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
0 10 1 workerId Ljava/lang/Long;
0 10 2 initialState Lorg/apache/cassandra/concurrent/SEPWorker$Work;
0 10 3 pool Lorg/apache/cassandra/concurrent/SharedExecutorPool;
MethodParameters:
Name Flags
workerId
initialState
pool
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: StackMap locals: org.apache.cassandra.concurrent.SEPExecutor java.lang.Runnable
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.shuttingDown:Z
ifeq 10
3: aload 1
ifnull 5
4: aload 1
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.returnWorkPermit:()V
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
getfield org.apache.cassandra.concurrent.SEPWorker$Work.assigned:Lorg/apache/cassandra/concurrent/SEPExecutor;
ifnull 8
6: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
getfield org.apache.cassandra.concurrent.SEPWorker$Work.assigned:Lorg/apache/cassandra/concurrent/SEPExecutor;
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.returnWorkPermit:()V
7: aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.WORKING:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
invokevirtual org.apache.cassandra.concurrent.SEPWorker.set:(Ljava/lang/Object;)V
8: StackMap locals:
StackMap stack:
aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.STOPPED:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
iconst_1
invokevirtual org.apache.cassandra.concurrent.SEPWorker.assign:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;Z)Z
ifeq 5
9: return
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.isSpinning:()Z
ifeq 13
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.selfAssign:()Z
ifne 13
11: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.doWaitSpin:()V
12: goto 2
13: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.stop:()Z
ifeq 17
14: goto 16
15: StackMap locals:
StackMap stack:
invokestatic java.util.concurrent.locks.LockSupport.park:()V
16: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.isStopped:()Z
ifne 15
17: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
getfield org.apache.cassandra.concurrent.SEPWorker$Work.assigned:Lorg/apache/cassandra/concurrent/SEPExecutor;
astore 1
18: aload 1
ifnonnull 20
19: goto 2
20: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.concurrent.SEPWorker.SET_THREAD_NAME:Z
ifeq 22
21: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
new java.lang.StringBuilder
dup
aload 1
getfield org.apache.cassandra.concurrent.SEPExecutor.name:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.workerId:Ljava/lang/Long;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.Thread.setName:(Ljava/lang/String;)V
22: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.concurrent.SEPExecutor.tasks:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.poll:()Ljava/lang/Object;
checkcast java.lang.Runnable
astore 2
23: aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.WORKING:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
invokevirtual org.apache.cassandra.concurrent.SEPWorker.set:(Ljava/lang/Object;)V
24: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.maybeSchedule:()Z
pop
25: aload 2
invokeinterface java.lang.Runnable.run:()V
26: aconst_null
astore 2
27: aload 1
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.takeTaskPermit:()Z
ifne 29
28: goto 31
29: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.concurrent.SEPExecutor.tasks:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.poll:()Ljava/lang/Object;
checkcast java.lang.Runnable
astore 2
30: goto 24
31: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.returnWorkPermit:()V
32: aconst_null
astore 1
33: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.selfAssign:()Z
ifne 2
34: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.startSpinning:()V
35: goto 2
36: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
start local 3 37: aload 3
invokestatic org.apache.cassandra.utils.JVMStabilityInspector.inspectThrowable:(Ljava/lang/Throwable;)V
38: aload 2
ifnull 40
39: getstatic org.apache.cassandra.concurrent.SEPWorker.logger:Lorg/slf4j/Logger;
ldc "Failed to execute task, unexpected exception killed worker: {}"
aload 3
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
goto 41
40: StackMap locals: java.lang.Throwable
StackMap stack:
getstatic org.apache.cassandra.concurrent.SEPWorker.logger:Lorg/slf4j/Logger;
ldc "Unexpected exception killed worker: {}"
aload 3
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 41: StackMap locals:
StackMap stack:
aload 1
ifnull 43
42: aload 1
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.returnWorkPermit:()V
43: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
getfield org.apache.cassandra.concurrent.SEPWorker$Work.assigned:Lorg/apache/cassandra/concurrent/SEPExecutor;
ifnull 46
44: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
getfield org.apache.cassandra.concurrent.SEPWorker$Work.assigned:Lorg/apache/cassandra/concurrent/SEPExecutor;
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.returnWorkPermit:()V
45: aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.WORKING:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
invokevirtual org.apache.cassandra.concurrent.SEPWorker.set:(Ljava/lang/Object;)V
46: StackMap locals:
StackMap stack:
aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.STOPPED:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
iconst_1
invokevirtual org.apache.cassandra.concurrent.SEPWorker.assign:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;Z)Z
ifeq 43
goto 55
47: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
48: aload 1
ifnull 50
49: aload 1
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.returnWorkPermit:()V
50: StackMap locals: org.apache.cassandra.concurrent.SEPWorker org.apache.cassandra.concurrent.SEPExecutor java.lang.Runnable top java.lang.Throwable
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
getfield org.apache.cassandra.concurrent.SEPWorker$Work.assigned:Lorg/apache/cassandra/concurrent/SEPExecutor;
ifnull 53
51: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
getfield org.apache.cassandra.concurrent.SEPWorker$Work.assigned:Lorg/apache/cassandra/concurrent/SEPExecutor;
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.returnWorkPermit:()V
52: aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.WORKING:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
invokevirtual org.apache.cassandra.concurrent.SEPWorker.set:(Ljava/lang/Object;)V
53: StackMap locals:
StackMap stack:
aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.STOPPED:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
iconst_1
invokevirtual org.apache.cassandra.concurrent.SEPWorker.assign:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;Z)Z
ifeq 50
54: aload 4
athrow
55: StackMap locals: org.apache.cassandra.concurrent.SEPWorker org.apache.cassandra.concurrent.SEPExecutor java.lang.Runnable
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 56 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
1 56 1 assigned Lorg/apache/cassandra/concurrent/SEPExecutor;
2 56 2 task Ljava/lang/Runnable;
37 41 3 t Ljava/lang/Throwable;
Exception table:
from to target type
2 3 36 Class java.lang.Throwable
10 36 36 Class java.lang.Throwable
2 3 47 any
10 41 47 any
boolean assign(org.apache.cassandra.concurrent.SEPWorker$Work, boolean);
descriptor: (Lorg/apache/cassandra/concurrent/SEPWorker$Work;Z)Z
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
astore 3
start local 3 1: goto 14
2: StackMap locals: org.apache.cassandra.concurrent.SEPWorker$Work
StackMap stack:
aload 0
aload 3
aload 1
invokevirtual org.apache.cassandra.concurrent.SEPWorker.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifne 5
3: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
astore 3
4: goto 14
5: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.isSpinning:()Z
ifeq 7
6: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.stopSpinning:()V
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.isStop:()Z
ifeq 11
8: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.descheduled:Ljava/util/concurrent/ConcurrentSkipListMap;
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.workerId:Ljava/lang/Long;
aload 0
invokevirtual java.util.concurrent.ConcurrentSkipListMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.shuttingDown:Z
ifeq 11
10: iconst_1
ireturn
11: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.isStopped:()Z
ifeq 13
aload 1
invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.isStop:()Z
ifeq 12
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.stop:()Z
ifne 13
12: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.thread:Ljava/lang/Thread;
invokestatic java.util.concurrent.locks.LockSupport.unpark:(Ljava/lang/Thread;)V
13: StackMap locals:
StackMap stack:
iconst_1
ireturn
14: StackMap locals:
StackMap stack:
aload 3
iload 2
invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.canAssign:(Z)Z
ifne 2
15: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
0 16 1 work Lorg/apache/cassandra/concurrent/SEPWorker$Work;
0 16 2 self Z
1 16 3 state Lorg/apache/cassandra/concurrent/SEPWorker$Work;
MethodParameters:
Name Flags
work
self
private boolean selfAssign();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
iconst_1
invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.canAssign:(Z)Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.executors:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 11
StackMap locals: org.apache.cassandra.concurrent.SEPWorker top java.util.Iterator
StackMap stack:
3: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPExecutor
astore 1
start local 1 4: aload 1
iconst_1
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.takeWorkPermit:(Z)Z
ifeq 11
5: new org.apache.cassandra.concurrent.SEPWorker$Work
dup
aload 1
invokespecial org.apache.cassandra.concurrent.SEPWorker$Work.<init>:(Lorg/apache/cassandra/concurrent/SEPExecutor;)V
astore 3
start local 3 6: aload 0
aload 3
iconst_1
invokevirtual org.apache.cassandra.concurrent.SEPWorker.assign:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;Z)Z
ifeq 8
7: iconst_1
ireturn
8: StackMap locals: org.apache.cassandra.concurrent.SEPWorker org.apache.cassandra.concurrent.SEPExecutor java.util.Iterator org.apache.cassandra.concurrent.SEPWorker$Work
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
aload 3
invokevirtual org.apache.cassandra.concurrent.SharedExecutorPool.schedule:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;)V
9: getstatic org.apache.cassandra.concurrent.SEPWorker.$assertionsDisabled:Z
ifne 10
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
getfield org.apache.cassandra.concurrent.SEPWorker$Work.assigned:Lorg/apache/cassandra/concurrent/SEPExecutor;
ifnonnull 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 3 end local 1 11: StackMap locals: org.apache.cassandra.concurrent.SEPWorker top java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
12: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
4 11 1 exec Lorg/apache/cassandra/concurrent/SEPExecutor;
6 11 3 work Lorg/apache/cassandra/concurrent/SEPWorker$Work;
private void startSpinning();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.concurrent.SEPWorker.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.WORKING:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinningCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
2: aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.SPINNING:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
invokevirtual org.apache.cassandra.concurrent.SEPWorker.set:(Ljava/lang/Object;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
private void stopSpinning();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinningCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
ifne 5
1: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.executors:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: org.apache.cassandra.concurrent.SEPWorker top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPExecutor
astore 1
start local 1 3: aload 1
invokevirtual org.apache.cassandra.concurrent.SEPExecutor.maybeSchedule:()Z
pop
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: StackMap locals: org.apache.cassandra.concurrent.SEPWorker
StackMap stack:
aload 0
aload 0
lconst_0
dup2_x1
putfield org.apache.cassandra.concurrent.SEPWorker.soleSpinnerSpinTime:J
putfield org.apache.cassandra.concurrent.SEPWorker.prevStopCheck:J
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
3 4 1 executor Lorg/apache/cassandra/concurrent/SEPExecutor;
private void doWaitSpin();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=12, args_size=1
start local 0 0: ldc 10000
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinningCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
i2l
lmul
lstore 1
start local 1 1: ldc 1000000
lload 1
invokestatic java.lang.Math.min:(JJ)J
lstore 1
2: lload 1
l2d
invokestatic java.lang.Math.random:()D
dmul
d2l
lstore 1
3: ldc 10000
lload 1
invokestatic java.lang.Math.max:(JJ)J
lstore 1
4: invokestatic java.lang.System.nanoTime:()J
lstore 3
start local 3 5: lload 3
lload 1
ladd
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 5
start local 5 6: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinning:Ljava/util/concurrent/ConcurrentSkipListMap;
aload 5
aload 0
invokevirtual java.util.concurrent.ConcurrentSkipListMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
ifnull 8
7: return
8: StackMap locals: long long java.lang.Long
StackMap stack:
lload 1
invokestatic java.util.concurrent.locks.LockSupport.parkNanos:(J)V
9: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinning:Ljava/util/concurrent/ConcurrentSkipListMap;
aload 5
aload 0
invokevirtual java.util.concurrent.ConcurrentSkipListMap.remove:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
10: invokestatic java.lang.System.nanoTime:()J
lstore 6
start local 6 11: lload 6
lload 3
lsub
lstore 8
start local 8 12: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.stopCheck:Ljava/util/concurrent/atomic/AtomicLong;
lload 8
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
lstore 10
start local 10 13: aload 0
lload 10
lload 6
invokevirtual org.apache.cassandra.concurrent.SEPWorker.maybeStop:(JJ)V
14: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.prevStopCheck:J
lload 8
ladd
lload 10
lcmp
ifne 16
15: aload 0
dup
getfield org.apache.cassandra.concurrent.SEPWorker.soleSpinnerSpinTime:J
lload 8
ladd
putfield org.apache.cassandra.concurrent.SEPWorker.soleSpinnerSpinTime:J
goto 17
16: StackMap locals: long long long
StackMap stack:
aload 0
lconst_0
putfield org.apache.cassandra.concurrent.SEPWorker.soleSpinnerSpinTime:J
17: StackMap locals:
StackMap stack:
aload 0
lload 10
putfield org.apache.cassandra.concurrent.SEPWorker.prevStopCheck:J
18: return
end local 10 end local 8 end local 6 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
1 19 1 sleep J
5 19 3 start J
6 19 5 target Ljava/lang/Long;
11 19 6 end J
12 19 8 spin J
13 19 10 stopCheck J
private void maybeStop(long, long);
descriptor: (JJ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=7, args_size=3
start local 0 start local 1 start local 3 0: lload 3
lload 1
lsub
lstore 5
start local 5 1: lload 5
lconst_0
lcmp
ifgt 6
2: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.stopCheck:Ljava/util/concurrent/atomic/AtomicLong;
lload 1
lload 3
getstatic org.apache.cassandra.concurrent.SEPWorker.stopCheckInterval:J
lsub
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 12
3: aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.STOP_SIGNALLED:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
iconst_1
invokevirtual org.apache.cassandra.concurrent.SEPWorker.assign:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;Z)Z
ifne 12
4: aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.STOP_SIGNALLED:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
invokevirtual org.apache.cassandra.concurrent.SharedExecutorPool.schedule:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;)V
5: goto 12
6: StackMap locals: long
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.soleSpinnerSpinTime:J
getstatic org.apache.cassandra.concurrent.SEPWorker.stopCheckInterval:J
lcmp
ifle 11
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.spinningCount:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
iconst_1
if_icmpne 11
7: aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.STOP_SIGNALLED:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
iconst_1
invokevirtual org.apache.cassandra.concurrent.SEPWorker.assign:(Lorg/apache/cassandra/concurrent/SEPWorker$Work;Z)Z
pop
8: goto 12
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.stopCheck:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 1
10: lload 3
lload 1
lsub
lstore 5
11: StackMap locals:
StackMap stack:
lload 5
getstatic org.apache.cassandra.concurrent.SEPWorker.stopCheckInterval:J
ldc 2
lmul
lcmp
ifle 12
aload 0
getfield org.apache.cassandra.concurrent.SEPWorker.pool:Lorg/apache/cassandra/concurrent/SharedExecutorPool;
getfield org.apache.cassandra.concurrent.SharedExecutorPool.stopCheck:Ljava/util/concurrent/atomic/AtomicLong;
lload 1
lload 3
getstatic org.apache.cassandra.concurrent.SEPWorker.stopCheckInterval:J
lsub
invokevirtual java.util.concurrent.atomic.AtomicLong.compareAndSet:(JJ)Z
ifeq 9
12: StackMap locals:
StackMap stack:
return
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
0 13 1 stopCheck J
0 13 3 now J
1 13 5 delta J
MethodParameters:
Name Flags
stopCheck
now
private boolean isSpinning();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.isSpinning:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
private boolean stop();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.isStop:()Z
ifeq 1
aload 0
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.STOP_SIGNALLED:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
getstatic org.apache.cassandra.concurrent.SEPWorker$Work.STOPPED:Lorg/apache/cassandra/concurrent/SEPWorker$Work;
invokevirtual org.apache.cassandra.concurrent.SEPWorker.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
private boolean isStopped();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.concurrent.SEPWorker.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.concurrent.SEPWorker$Work
invokevirtual org.apache.cassandra.concurrent.SEPWorker$Work.isStopped:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/concurrent/SEPWorker;
}
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lorg/apache/cassandra/concurrent/SEPWorker$Work;>;Ljava/lang/Runnable;
SourceFile: "SEPWorker.java"
NestMembers:
org.apache.cassandra.concurrent.SEPWorker$Work
InnerClasses:
final Work = org.apache.cassandra.concurrent.SEPWorker$Work of org.apache.cassandra.concurrent.SEPWorker