public class org.apache.cassandra.concurrent.InfiniteLoopExecutor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.concurrent.InfiniteLoopExecutor
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.Thread thread;
descriptor: Ljava/lang/Thread;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.concurrent.InfiniteLoopExecutor$InterruptibleRunnable runnable;
descriptor: Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor$InterruptibleRunnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean isShutdown;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.concurrent.InfiniteLoopExecutor.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, org.apache.cassandra.concurrent.InfiniteLoopExecutor$InterruptibleRunnable);
descriptor: (Ljava/lang/String;Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor$InterruptibleRunnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.isShutdown:Z
2: aload 0
aload 2
putfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.runnable:Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor$InterruptibleRunnable;
3: aload 0
new java.lang.Thread
dup
aload 0
invokedynamic run(Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/apache/cassandra/concurrent/InfiniteLoopExecutor.loop()V (7)
()V
aload 1
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;Ljava/lang/String;)V
putfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.thread:Ljava/lang/Thread;
4: aload 0
getfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.thread:Ljava/lang/Thread;
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
0 6 1 name Ljava/lang/String;
0 6 2 runnable Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor$InterruptibleRunnable;
MethodParameters:
Name Flags
name
runnable
private void loop();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: goto 10
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.runnable:Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor$InterruptibleRunnable;
invokeinterface org.apache.cassandra.concurrent.InfiniteLoopExecutor$InterruptibleRunnable.run:()V
2: goto 10
3: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 1
start local 1 4: aload 0
getfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.isShutdown:Z
ifeq 6
5: return
6: StackMap locals: java.lang.InterruptedException
StackMap stack:
getstatic org.apache.cassandra.concurrent.InfiniteLoopExecutor.logger:Lorg/slf4j/Logger;
ldc "Interrupted while executing {}, but not shutdown; continuing with loop"
aload 0
getfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.runnable:Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor$InterruptibleRunnable;
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 1 7: goto 10
8: StackMap locals: org.apache.cassandra.concurrent.InfiniteLoopExecutor
StackMap stack: java.lang.Throwable
astore 1
start local 1 9: getstatic org.apache.cassandra.concurrent.InfiniteLoopExecutor.logger:Lorg/slf4j/Logger;
ldc "Exception thrown by runnable, continuing with loop"
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 10: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.isShutdown:Z
ifeq 1
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
4 7 1 ie Ljava/lang/InterruptedException;
9 10 1 t Ljava/lang/Throwable;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
1 2 8 Class java.lang.Throwable
public org.apache.cassandra.concurrent.InfiniteLoopExecutor start();
descriptor: ()Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
1: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
public void shutdownNow();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.isShutdown:Z
1: aload 0
getfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
public boolean awaitTermination(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.thread:Ljava/lang/Thread;
aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
invokevirtual java.lang.Thread.join:(J)V
1: aload 0
getfield org.apache.cassandra.concurrent.InfiniteLoopExecutor.thread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.isAlive:()Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/concurrent/InfiniteLoopExecutor;
0 4 1 time J
0 4 3 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
time
unit
}
SourceFile: "InfiniteLoopExecutor.java"
NestMembers:
org.apache.cassandra.concurrent.InfiniteLoopExecutor$InterruptibleRunnable
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract InterruptibleRunnable = org.apache.cassandra.concurrent.InfiniteLoopExecutor$InterruptibleRunnable of org.apache.cassandra.concurrent.InfiniteLoopExecutor