public class org.apache.cassandra.concurrent.NamedThreadFactory implements java.util.concurrent.ThreadFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.concurrent.NamedThreadFactory
super_class: java.lang.Object
{
private static volatile java.lang.String globalPrefix;
descriptor: Ljava/lang/String;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
public final java.lang.String id;
descriptor: Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private final int priority;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ClassLoader contextClassLoader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.ThreadGroup threadGroup;
descriptor: Ljava/lang/ThreadGroup;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected final java.util.concurrent.atomic.AtomicInteger n;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private static final java.util.concurrent.atomic.AtomicInteger threadCounter;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putstatic org.apache.cassandra.concurrent.NamedThreadFactory.threadCounter:Ljava/util/concurrent/atomic/AtomicInteger;
return
LocalVariableTable:
Start End Slot Name Signature
public static void setGlobalPrefix(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
putstatic org.apache.cassandra.concurrent.NamedThreadFactory.globalPrefix:Ljava/lang/String;
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 prefix Ljava/lang/String;
MethodParameters:
Name Flags
prefix
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
aload 1
iconst_5
invokespecial org.apache.cassandra.concurrent.NamedThreadFactory.<init>:(Ljava/lang/String;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/concurrent/NamedThreadFactory;
0 2 1 id Ljava/lang/String;
MethodParameters:
Name Flags
id
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)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
aload 1
iload 2
aconst_null
aconst_null
invokespecial org.apache.cassandra.concurrent.NamedThreadFactory.<init>:(Ljava/lang/String;ILjava/lang/ClassLoader;Ljava/lang/ThreadGroup;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/concurrent/NamedThreadFactory;
0 2 1 id Ljava/lang/String;
0 2 2 priority I
MethodParameters:
Name Flags
id
priority
public void <init>(java.lang.String, int, java.lang.ClassLoader, java.lang.ThreadGroup);
descriptor: (Ljava/lang/String;ILjava/lang/ClassLoader;Ljava/lang/ThreadGroup;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_1
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.apache.cassandra.concurrent.NamedThreadFactory.n:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
aload 1
putfield org.apache.cassandra.concurrent.NamedThreadFactory.id:Ljava/lang/String;
3: aload 0
iload 2
putfield org.apache.cassandra.concurrent.NamedThreadFactory.priority:I
4: aload 0
aload 3
putfield org.apache.cassandra.concurrent.NamedThreadFactory.contextClassLoader:Ljava/lang/ClassLoader;
5: aload 0
aload 4
putfield org.apache.cassandra.concurrent.NamedThreadFactory.threadGroup:Ljava/lang/ThreadGroup;
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/concurrent/NamedThreadFactory;
0 7 1 id Ljava/lang/String;
0 7 2 priority I
0 7 3 contextClassLoader Ljava/lang/ClassLoader;
0 7 4 threadGroup Ljava/lang/ThreadGroup;
MethodParameters:
Name Flags
id
priority
contextClassLoader
threadGroup
public java.lang.Thread newThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Thread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 0
getfield org.apache.cassandra.concurrent.NamedThreadFactory.id:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.cassandra.concurrent.NamedThreadFactory.n:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield org.apache.cassandra.concurrent.NamedThreadFactory.threadGroup:Ljava/lang/ThreadGroup;
aload 1
aload 2
iconst_1
invokestatic org.apache.cassandra.concurrent.NamedThreadFactory.createThread:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;Z)Ljava/lang/Thread;
astore 3
start local 3 2: aload 3
aload 0
getfield org.apache.cassandra.concurrent.NamedThreadFactory.priority:I
invokevirtual java.lang.Thread.setPriority:(I)V
3: aload 0
getfield org.apache.cassandra.concurrent.NamedThreadFactory.contextClassLoader:Ljava/lang/ClassLoader;
ifnull 5
4: aload 3
aload 0
getfield org.apache.cassandra.concurrent.NamedThreadFactory.contextClassLoader:Ljava/lang/ClassLoader;
invokevirtual java.lang.Thread.setContextClassLoader:(Ljava/lang/ClassLoader;)V
5: StackMap locals: java.lang.String java.lang.Thread
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/concurrent/NamedThreadFactory;
0 6 1 runnable Ljava/lang/Runnable;
1 6 2 name Ljava/lang/String;
2 6 3 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
runnable
public static java.lang.Runnable threadLocalDeallocator(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Runnable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic run(Ljava/lang/Runnable;)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/NamedThreadFactory.lambda$0(Ljava/lang/Runnable;)V (6)
()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 r Ljava/lang/Runnable;
MethodParameters:
Name Flags
r
public static java.lang.Thread createThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Thread;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aconst_null
aload 0
new java.lang.StringBuilder
dup
ldc "anonymous-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic org.apache.cassandra.concurrent.NamedThreadFactory.threadCounter:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.apache.cassandra.concurrent.NamedThreadFactory.createThread:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)Ljava/lang/Thread;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runnable Ljava/lang/Runnable;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
runnable
public static java.lang.Thread createThread(java.lang.Runnable, java.lang.String);
descriptor: (Ljava/lang/Runnable;Ljava/lang/String;)Ljava/lang/Thread;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aconst_null
aload 0
aload 1
invokestatic org.apache.cassandra.concurrent.NamedThreadFactory.createThread:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)Ljava/lang/Thread;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runnable Ljava/lang/Runnable;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
runnable
name
public static java.lang.Thread createThread(java.lang.Runnable, java.lang.String, boolean);
descriptor: (Ljava/lang/Runnable;Ljava/lang/String;Z)Ljava/lang/Thread;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
aload 0
aload 1
iload 2
invokestatic org.apache.cassandra.concurrent.NamedThreadFactory.createThread:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;Z)Ljava/lang/Thread;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runnable Ljava/lang/Runnable;
0 1 1 name Ljava/lang/String;
0 1 2 daemon Z
MethodParameters:
Name Flags
runnable
name
daemon
public static java.lang.Thread createThread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String);
descriptor: (Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)Ljava/lang/Thread;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
invokestatic org.apache.cassandra.concurrent.NamedThreadFactory.createThread:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;Z)Ljava/lang/Thread;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 threadGroup Ljava/lang/ThreadGroup;
0 1 1 runnable Ljava/lang/Runnable;
0 1 2 name Ljava/lang/String;
MethodParameters:
Name Flags
threadGroup
runnable
name
public static java.lang.Thread createThread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String, boolean);
descriptor: (Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;Z)Ljava/lang/Thread;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.apache.cassandra.concurrent.NamedThreadFactory.globalPrefix:Ljava/lang/String;
astore 4
start local 4 1: new io.netty.util.concurrent.FastThreadLocalThread
dup
aload 0
aload 1
invokestatic org.apache.cassandra.concurrent.NamedThreadFactory.threadLocalDeallocator:(Ljava/lang/Runnable;)Ljava/lang/Runnable;
aload 4
ifnull 2
new java.lang.StringBuilder
dup
aload 4
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
goto 3
StackMap locals: java.lang.ThreadGroup java.lang.Runnable java.lang.String int java.lang.String
StackMap stack: new 1 new 1 java.lang.ThreadGroup java.lang.Runnable
2: aload 2
StackMap locals: java.lang.ThreadGroup java.lang.Runnable java.lang.String int java.lang.String
StackMap stack: new 1 new 1 java.lang.ThreadGroup java.lang.Runnable java.lang.String
3: invokespecial io.netty.util.concurrent.FastThreadLocalThread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V
astore 5
start local 5 4: aload 5
iload 3
invokevirtual java.lang.Thread.setDaemon:(Z)V
5: 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 6 0 threadGroup Ljava/lang/ThreadGroup;
0 6 1 runnable Ljava/lang/Runnable;
0 6 2 name Ljava/lang/String;
0 6 3 daemon Z
1 6 4 prefix Ljava/lang/String;
4 6 5 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
threadGroup
runnable
name
daemon
private static void lambda$0(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=2, args_size=1
0: aload 0
invokeinterface java.lang.Runnable.run:()V
1: goto 5
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
3: invokestatic io.netty.util.concurrent.FastThreadLocal.removeAll:()V
4: aload 1
athrow
5: StackMap locals:
StackMap stack:
invokestatic io.netty.util.concurrent.FastThreadLocal.removeAll:()V
6: return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
0 2 2 any
}
SourceFile: "NamedThreadFactory.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles