public class org.jruby.threading.DaemonThreadFactory implements java.util.concurrent.ThreadFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.threading.DaemonThreadFactory
super_class: java.lang.Object
{
private final java.util.concurrent.atomic.AtomicInteger count;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int priority;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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
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.jruby.threading.DaemonThreadFactory.count:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
aload 1
putfield org.jruby.threading.DaemonThreadFactory.name:Ljava/lang/String;
3: aload 0
iconst_5
putfield org.jruby.threading.DaemonThreadFactory.priority:I
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/threading/DaemonThreadFactory;
0 5 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
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
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.jruby.threading.DaemonThreadFactory.count:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
aload 1
putfield org.jruby.threading.DaemonThreadFactory.name:Ljava/lang/String;
3: aload 0
iload 2
putfield org.jruby.threading.DaemonThreadFactory.priority:I
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/threading/DaemonThreadFactory;
0 5 1 name Ljava/lang/String;
0 5 2 priority I
MethodParameters:
Name Flags
name
priority
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 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.jruby.threading.DaemonThreadFactory.count:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
ldc "JRubyWorker"
putfield org.jruby.threading.DaemonThreadFactory.name:Ljava/lang/String;
3: aload 0
iconst_5
putfield org.jruby.threading.DaemonThreadFactory.priority:I
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/threading/DaemonThreadFactory;
public java.lang.Thread newThread(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljava/lang/Thread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.Thread
dup
aload 1
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 2
start local 2 1: aload 2
new java.lang.StringBuilder
dup
aload 0
getfield org.jruby.threading.DaemonThreadFactory.name:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.jruby.threading.DaemonThreadFactory.count: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;
invokevirtual java.lang.Thread.setName:(Ljava/lang/String;)V
2: aload 2
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
3: aload 2
aload 0
getfield org.jruby.threading.DaemonThreadFactory.priority:I
invokevirtual java.lang.Thread.setPriority:(I)V
4: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/threading/DaemonThreadFactory;
0 5 1 runnable Ljava/lang/Runnable;
1 5 2 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
runnable
}
SourceFile: "DaemonThreadFactory.java"