class com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory implements java.util.concurrent.ThreadFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory
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
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 // com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory this
start local 1 // java.lang.String namePrefix
0: .line 273
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 270
aload 0 /* this */
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_1
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory.threadNumber:Ljava/util/concurrent/atomic/AtomicInteger;
2: .line 274
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2 /* s */
start local 2 // java.lang.SecurityManager s
3: .line 275
aload 0 /* this */
aload 2 /* s */
ifnull 4
aload 2 /* s */
invokevirtual java.lang.SecurityManager.getThreadGroup:()Ljava/lang/ThreadGroup;
goto 5
StackMap locals: com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory java.lang.String java.lang.SecurityManager
StackMap stack: com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory
4: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
StackMap locals: com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory java.lang.String java.lang.SecurityManager
StackMap stack: com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory java.lang.ThreadGroup
5: putfield com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory.group:Ljava/lang/ThreadGroup;
6: .line 276
aload 0 /* this */
aload 1 /* namePrefix */
putfield com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory.namePrefix:Ljava/lang/String;
7: .line 277
return
end local 2 // java.lang.SecurityManager s
end local 1 // java.lang.String namePrefix
end local 0 // com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory this
LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/codahale/metrics/health/HealthCheckRegistry$NamedThreadFactory;
0 8 1 namePrefix Ljava/lang/String;
3 8 2 s Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
namePrefix
public java.lang.Thread newThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Thread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 // com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory this
start local 1 // java.lang.Runnable r
0: .line 281
new java.lang.Thread
dup
aload 0 /* this */
getfield com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory.group:Ljava/lang/ThreadGroup;
aload 1 /* r */
new java.lang.StringBuilder
dup
aload 0 /* this */
getfield com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory.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 com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory.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;
lconst_0
invokespecial java.lang.Thread.<init>:(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;Ljava/lang/String;J)V
astore 2 /* t */
start local 2 // java.lang.Thread t
1: .line 282
aload 2 /* t */
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
2: .line 283
aload 2 /* t */
invokevirtual java.lang.Thread.getPriority:()I
iconst_5
if_icmpeq 4
3: .line 284
aload 2 /* t */
iconst_5
invokevirtual java.lang.Thread.setPriority:(I)V
4: .line 285
StackMap locals: java.lang.Thread
StackMap stack:
aload 2 /* t */
areturn
end local 2 // java.lang.Thread t
end local 1 // java.lang.Runnable r
end local 0 // com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory this
LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/codahale/metrics/health/HealthCheckRegistry$NamedThreadFactory;
0 5 1 r Ljava/lang/Runnable;
1 5 2 t Ljava/lang/Thread;
MethodParameters:
Name Flags
r
}
SourceFile: "HealthCheckRegistry.java"
NestHost: com.codahale.metrics.health.HealthCheckRegistry
InnerClasses:
private NamedThreadFactory = com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory of com.codahale.metrics.health.HealthCheckRegistry