final class jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory implements java.util.concurrent.ThreadFactory
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory
super_class: java.lang.Object
{
private final java.lang.String namePrefix;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger nextId;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 // jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory this
start local 1 // long clientID
0: .line 114
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 112
aload 0 /* this */
new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putfield jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory.nextId:Ljava/util/concurrent/atomic/AtomicInteger;
2: .line 115
aload 0 /* this */
new java.lang.StringBuilder
dup
ldc "HttpClient-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1 /* clientID */
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "-Worker-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory.namePrefix:Ljava/lang/String;
3: .line 116
return
end local 1 // long clientID
end local 0 // jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/HttpClientImpl$DefaultThreadFactory;
0 4 1 clientID J
MethodParameters:
Name Flags
clientID
public java.lang.Thread newThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Thread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=4, args_size=2
start local 0 // jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory this
start local 1 // java.lang.Runnable r
0: .line 120
new java.lang.StringBuilder
dup
aload 0 /* this */
getfield jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory.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 /* this */
getfield jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory.nextId: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 /* name */
start local 2 // java.lang.String name
1: .line 122
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 4
2: .line 123
new java.lang.Thread
dup
aconst_null
aload 1 /* r */
aload 2 /* name */
lconst_0
iconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;JZ)V
astore 3 /* t */
start local 3 // java.lang.Thread t
3: .line 124
goto 5
end local 3 // java.lang.Thread t
4: .line 125
StackMap locals: java.lang.String
StackMap stack:
aload 2 /* name */
aload 1 /* r */
invokestatic jdk.internal.misc.InnocuousThread.newThread:(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Thread;
astore 3 /* t */
start local 3 // java.lang.Thread t
5: .line 127
StackMap locals: java.lang.Thread
StackMap stack:
aload 3 /* t */
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
6: .line 128
aload 3 /* t */
areturn
end local 3 // java.lang.Thread t
end local 2 // java.lang.String name
end local 1 // java.lang.Runnable r
end local 0 // jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory this
LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/HttpClientImpl$DefaultThreadFactory;
0 7 1 r Ljava/lang/Runnable;
1 7 2 name Ljava/lang/String;
3 4 3 t Ljava/lang/Thread;
5 7 3 t Ljava/lang/Thread;
MethodParameters:
Name Flags
r
}
SourceFile: "HttpClientImpl.java"
NestHost: jdk.internal.net.http.HttpClientImpl
InnerClasses:
private final DefaultThreadFactory = jdk.internal.net.http.HttpClientImpl$DefaultThreadFactory of jdk.internal.net.http.HttpClientImpl