public class org.apache.tomcat.util.threads.TaskThreadFactory implements java.util.concurrent.ThreadFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.threads.TaskThreadFactory
super_class: java.lang.Object
{
private final java.lang.ThreadGroup group;
descriptor: Ljava/lang/ThreadGroup;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger threadNumber;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String namePrefix;
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 threadPriority;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String, boolean, int);
descriptor: (Ljava/lang/String;ZI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 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.tomcat.util.threads.TaskThreadFactory.threadNumber:Ljava/util/concurrent/atomic/AtomicInteger;
2: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 4
start local 4 3: aload 0
aload 4
ifnull 4
aload 4
invokevirtual java.lang.SecurityManager.getThreadGroup:()Ljava/lang/ThreadGroup;
goto 5
StackMap locals: org.apache.tomcat.util.threads.TaskThreadFactory java.lang.String int int java.lang.SecurityManager
StackMap stack: org.apache.tomcat.util.threads.TaskThreadFactory
4: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
StackMap locals: org.apache.tomcat.util.threads.TaskThreadFactory java.lang.String int int java.lang.SecurityManager
StackMap stack: org.apache.tomcat.util.threads.TaskThreadFactory java.lang.ThreadGroup
5: putfield org.apache.tomcat.util.threads.TaskThreadFactory.group:Ljava/lang/ThreadGroup;
6: aload 0
aload 1
putfield org.apache.tomcat.util.threads.TaskThreadFactory.namePrefix:Ljava/lang/String;
7: aload 0
iload 2
putfield org.apache.tomcat.util.threads.TaskThreadFactory.daemon:Z
8: aload 0
iload 3
putfield org.apache.tomcat.util.threads.TaskThreadFactory.threadPriority:I
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/tomcat/util/threads/TaskThreadFactory;
0 10 1 namePrefix Ljava/lang/String;
0 10 2 daemon Z
0 10 3 priority I
3 10 4 s Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
namePrefix
daemon
priority
public java.lang.Thread newThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Thread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: new org.apache.tomcat.util.threads.TaskThread
dup
aload 0
getfield org.apache.tomcat.util.threads.TaskThreadFactory.group:Ljava/lang/ThreadGroup;
aload 1
new java.lang.StringBuilder
dup
aload 0
getfield org.apache.tomcat.util.threads.TaskThreadFactory.namePrefix: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 org.apache.tomcat.util.threads.TaskThreadFactory.threadNumber: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;
invokespecial org.apache.tomcat.util.threads.TaskThread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
aload 0
getfield org.apache.tomcat.util.threads.TaskThreadFactory.daemon:Z
invokevirtual org.apache.tomcat.util.threads.TaskThread.setDaemon:(Z)V
2: aload 2
aload 0
getfield org.apache.tomcat.util.threads.TaskThreadFactory.threadPriority:I
invokevirtual org.apache.tomcat.util.threads.TaskThread.setPriority:(I)V
3: getstatic org.apache.tomcat.util.threads.Constants.IS_SECURITY_ENABLED:Z
ifeq 9
4: new org.apache.tomcat.util.security.PrivilegedSetTccl
dup
5: aload 2
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
6: invokespecial org.apache.tomcat.util.security.PrivilegedSetTccl.<init>:(Ljava/lang/Thread;Ljava/lang/ClassLoader;)V
astore 3
start local 3 7: aload 3
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
end local 3 8: goto 10
9: StackMap locals: org.apache.tomcat.util.threads.TaskThread
StackMap stack:
aload 2
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
invokevirtual org.apache.tomcat.util.threads.TaskThread.setContextClassLoader:(Ljava/lang/ClassLoader;)V
10: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/tomcat/util/threads/TaskThreadFactory;
0 11 1 r Ljava/lang/Runnable;
1 11 2 t Lorg/apache/tomcat/util/threads/TaskThread;
7 8 3 pa Ljava/security/PrivilegedAction<Ljava/lang/Void;>;
MethodParameters:
Name Flags
r
}
SourceFile: "TaskThreadFactory.java"