public class io.netty.util.concurrent.DefaultThreadFactory implements java.util.concurrent.ThreadFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.util.concurrent.DefaultThreadFactory
super_class: java.lang.Object
{
private static final java.util.concurrent.atomic.AtomicInteger poolId;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger nextId;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String prefix;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean daemon;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int priority;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected final java.lang.ThreadGroup threadGroup;
descriptor: Ljava/lang/ThreadGroup;
flags: (0x0014) ACC_PROTECTED, 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 io.netty.util.concurrent.DefaultThreadFactory.poolId:Ljava/util/concurrent/atomic/AtomicInteger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
iconst_5
invokespecial io.netty.util.concurrent.DefaultThreadFactory.<init>:(Ljava/lang/Class;ZI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 2 1 poolType Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
poolType
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
iconst_5
invokespecial io.netty.util.concurrent.DefaultThreadFactory.<init>:(Ljava/lang/String;ZI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 2 1 poolName Ljava/lang/String;
MethodParameters:
Name Flags
poolName
public void <init>(java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
iconst_5
invokespecial io.netty.util.concurrent.DefaultThreadFactory.<init>:(Ljava/lang/Class;ZI)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 2 1 poolType Ljava/lang/Class<*>;
0 2 2 daemon Z
Signature: (Ljava/lang/Class<*>;Z)V
MethodParameters:
Name Flags
poolType
daemon
public void <init>(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
iconst_5
invokespecial io.netty.util.concurrent.DefaultThreadFactory.<init>:(Ljava/lang/String;ZI)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 2 1 poolName Ljava/lang/String;
0 2 2 daemon Z
MethodParameters:
Name Flags
poolName
daemon
public void <init>(java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iconst_0
iload 2
invokespecial io.netty.util.concurrent.DefaultThreadFactory.<init>:(Ljava/lang/Class;ZI)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 2 1 poolType Ljava/lang/Class<*>;
0 2 2 priority I
Signature: (Ljava/lang/Class<*>;I)V
MethodParameters:
Name Flags
poolType
priority
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iconst_0
iload 2
invokespecial io.netty.util.concurrent.DefaultThreadFactory.<init>:(Ljava/lang/String;ZI)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 2 1 poolName Ljava/lang/String;
0 2 2 priority I
MethodParameters:
Name Flags
poolName
priority
public void <init>(java.lang.Class<?>, boolean, );
descriptor: (Ljava/lang/Class;ZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokestatic io.netty.util.concurrent.DefaultThreadFactory.toPoolName:(Ljava/lang/Class;)Ljava/lang/String;
iload 2
iload 3
invokespecial io.netty.util.concurrent.DefaultThreadFactory.<init>:(Ljava/lang/String;ZI)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 2 1 poolType Ljava/lang/Class<*>;
0 2 2 daemon Z
0 2 3 priority I
Signature: (Ljava/lang/Class<*>;ZI)V
MethodParameters:
Name Flags
poolType
daemon
priority
public static java.lang.String toPoolName(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "poolType"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Class;)Ljava/lang/String;
astore 1
start local 1 3: aload 1
invokevirtual java.lang.String.length:()I
tableswitch { // 0 - 1
0: 4
1: 5
default: 6
}
4: StackMap locals: java.lang.String
StackMap stack:
ldc "unknown"
areturn
5: StackMap locals:
StackMap stack:
aload 1
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
areturn
6: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isUpperCase:(C)Z
ifeq 8
aload 1
iconst_1
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isLowerCase:(C)Z
ifeq 8
7: new java.lang.StringBuilder
dup
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toLowerCase:(C)C
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 poolType Ljava/lang/Class<*>;
3 9 1 poolName Ljava/lang/String;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/String;
MethodParameters:
Name Flags
poolType
public void <init>(java.lang.String, boolean, int, java.lang.ThreadGroup);
descriptor: (Ljava/lang/String;ZILjava/lang/ThreadGroup;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putfield io.netty.util.concurrent.DefaultThreadFactory.nextId:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 1
ifnonnull 4
3: new java.lang.NullPointerException
dup
ldc "poolName"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: io.netty.util.concurrent.DefaultThreadFactory java.lang.String int int java.lang.ThreadGroup
StackMap stack:
iload 3
iconst_1
if_icmplt 5
iload 3
bipush 10
if_icmple 8
5: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
6: new java.lang.StringBuilder
dup
ldc "priority: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: Thread.MIN_PRIORITY <= priority <= Thread.MAX_PRIORITY)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 45
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
getstatic io.netty.util.concurrent.DefaultThreadFactory.poolId:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
bipush 45
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield io.netty.util.concurrent.DefaultThreadFactory.prefix:Ljava/lang/String;
9: aload 0
iload 2
putfield io.netty.util.concurrent.DefaultThreadFactory.daemon:Z
10: aload 0
iload 3
putfield io.netty.util.concurrent.DefaultThreadFactory.priority:I
11: aload 0
aload 4
putfield io.netty.util.concurrent.DefaultThreadFactory.threadGroup:Ljava/lang/ThreadGroup;
12: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 13 1 poolName Ljava/lang/String;
0 13 2 daemon Z
0 13 3 priority I
0 13 4 threadGroup Ljava/lang/ThreadGroup;
MethodParameters:
Name Flags
poolName
daemon
priority
threadGroup
public void <init>(java.lang.String, boolean, int);
descriptor: (Ljava/lang/String;ZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 2
1: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
goto 3
StackMap locals: uninitialized-this java.lang.String int int
StackMap stack: uninitialized-this java.lang.String int int
2: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
invokevirtual java.lang.SecurityManager.getThreadGroup:()Ljava/lang/ThreadGroup;
StackMap locals: uninitialized-this java.lang.String int int
StackMap stack: uninitialized-this java.lang.String int int java.lang.ThreadGroup
3: invokespecial io.netty.util.concurrent.DefaultThreadFactory.<init>:(Ljava/lang/String;ZILjava/lang/ThreadGroup;)V
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 5 1 poolName Ljava/lang/String;
0 5 2 daemon Z
0 5 3 priority I
MethodParameters:
Name Flags
poolName
daemon
priority
public java.lang.Thread newThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Thread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic io.netty.util.concurrent.FastThreadLocalRunnable.wrap:(Ljava/lang/Runnable;)Ljava/lang/Runnable;
new java.lang.StringBuilder
dup
aload 0
getfield io.netty.util.concurrent.DefaultThreadFactory.prefix:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.netty.util.concurrent.DefaultThreadFactory.nextId: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;
invokevirtual io.netty.util.concurrent.DefaultThreadFactory.newThread:(Ljava/lang/Runnable;Ljava/lang/String;)Ljava/lang/Thread;
astore 2
start local 2 1: aload 2
invokevirtual java.lang.Thread.isDaemon:()Z
aload 0
getfield io.netty.util.concurrent.DefaultThreadFactory.daemon:Z
if_icmpeq 3
2: aload 2
aload 0
getfield io.netty.util.concurrent.DefaultThreadFactory.daemon:Z
invokevirtual java.lang.Thread.setDaemon:(Z)V
3: StackMap locals: java.lang.Thread
StackMap stack:
aload 2
invokevirtual java.lang.Thread.getPriority:()I
aload 0
getfield io.netty.util.concurrent.DefaultThreadFactory.priority:I
if_icmpeq 7
4: aload 2
aload 0
getfield io.netty.util.concurrent.DefaultThreadFactory.priority:I
invokevirtual java.lang.Thread.setPriority:(I)V
5: goto 7
StackMap locals:
StackMap stack: java.lang.Exception
6: pop
7: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 8 1 r Ljava/lang/Runnable;
1 8 2 t Ljava/lang/Thread;
Exception table:
from to target type
1 5 6 Class java.lang.Exception
MethodParameters:
Name Flags
r
protected java.lang.Thread newThread(java.lang.Runnable, java.lang.String);
descriptor: (Ljava/lang/Runnable;Ljava/lang/String;)Ljava/lang/Thread;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new io.netty.util.concurrent.FastThreadLocalThread
dup
aload 0
getfield io.netty.util.concurrent.DefaultThreadFactory.threadGroup:Ljava/lang/ThreadGroup;
aload 1
aload 2
invokespecial io.netty.util.concurrent.FastThreadLocalThread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/DefaultThreadFactory;
0 1 1 r Ljava/lang/Runnable;
0 1 2 name Ljava/lang/String;
MethodParameters:
Name Flags
r
name
}
SourceFile: "DefaultThreadFactory.java"