public final class org.eclipse.collections.impl.parallel.CollectionsThreadFactory implements java.util.concurrent.ThreadFactory
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.eclipse.collections.impl.parallel.CollectionsThreadFactory
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 boolean isDaemon;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 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.eclipse.collections.impl.parallel.CollectionsThreadFactory.threadNumber:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
iconst_1
putfield org.eclipse.collections.impl.parallel.CollectionsThreadFactory.isDaemon:Z
3: aload 0
iload 2
putfield org.eclipse.collections.impl.parallel.CollectionsThreadFactory.isDaemon:Z
4: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 5: aload 0
aload 3
ifnonnull 7
6: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
goto 8
7: StackMap locals: org.eclipse.collections.impl.parallel.CollectionsThreadFactory java.lang.String int java.lang.SecurityManager
StackMap stack: org.eclipse.collections.impl.parallel.CollectionsThreadFactory
aload 3
invokevirtual java.lang.SecurityManager.getThreadGroup:()Ljava/lang/ThreadGroup;
8: StackMap locals: org.eclipse.collections.impl.parallel.CollectionsThreadFactory java.lang.String int java.lang.SecurityManager
StackMap stack: org.eclipse.collections.impl.parallel.CollectionsThreadFactory java.lang.ThreadGroup
putfield org.eclipse.collections.impl.parallel.CollectionsThreadFactory.group:Ljava/lang/ThreadGroup;
9: 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
ldc " pool- thread-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.eclipse.collections.impl.parallel.CollectionsThreadFactory.namePrefix:Ljava/lang/String;
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/eclipse/collections/impl/parallel/CollectionsThreadFactory;
0 11 1 poolPrefix Ljava/lang/String;
0 11 2 useDaemonThreads Z
5 11 3 securityManager Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
poolPrefix
useDaemonThreads
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 start local 1 0: new java.lang.Thread
dup
aload 0
getfield org.eclipse.collections.impl.parallel.CollectionsThreadFactory.group:Ljava/lang/ThreadGroup;
aload 1
new java.lang.StringBuilder
dup
aload 0
getfield org.eclipse.collections.impl.parallel.CollectionsThreadFactory.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.eclipse.collections.impl.parallel.CollectionsThreadFactory.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
start local 2 1: aload 2
aload 0
getfield org.eclipse.collections.impl.parallel.CollectionsThreadFactory.isDaemon:Z
invokevirtual java.lang.Thread.setDaemon:(Z)V
2: aload 2
invokevirtual java.lang.Thread.getPriority:()I
iconst_5
if_icmpeq 4
3: aload 2
iconst_5
invokevirtual java.lang.Thread.setPriority:(I)V
4: StackMap locals: java.lang.Thread
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/collections/impl/parallel/CollectionsThreadFactory;
0 5 1 r Ljava/lang/Runnable;
1 5 2 t Ljava/lang/Thread;
MethodParameters:
Name Flags
r
}
SourceFile: "CollectionsThreadFactory.java"