public class org.jruby.RubyThreadGroup extends org.jruby.RubyObject
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.RubyThreadGroup
super_class: org.jruby.RubyObject
{
private final java.util.Set<org.jruby.RubyThread> rubyThreadList;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Lorg/jruby/RubyThread;>;
private boolean enclosed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static final org.jruby.runtime.ObjectAllocator THREADGROUP_ALLOCATOR;
descriptor: Lorg/jruby/runtime/ObjectAllocator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.jruby.RubyThreadGroup$1
dup
invokespecial org.jruby.RubyThreadGroup$1.<init>:()V
putstatic org.jruby.RubyThreadGroup.THREADGROUP_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
1: return
LocalVariableTable:
Start End Slot Name Signature
public static org.jruby.RubyClass createThreadGroupClass(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
ldc "ThreadGroup"
aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
getstatic org.jruby.RubyThreadGroup.THREADGROUP_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
invokevirtual org.jruby.Ruby.defineClass:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 1
start local 1 1: aload 1
getstatic org.jruby.runtime.ClassIndex.THREADGROUP:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.RubyClass.setClassIndex:(Lorg/jruby/runtime/ClassIndex;)V
2: aload 1
ldc Lorg/jruby/RubyThreadGroup;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
3: new org.jruby.RubyThreadGroup
dup
aload 0
aload 1
invokespecial org.jruby.RubyThreadGroup.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
astore 2
start local 2 4: aload 0
aload 2
invokevirtual org.jruby.Ruby.setDefaultThreadGroup:(Lorg/jruby/RubyThreadGroup;)V
5: aload 1
ldc "Default"
aload 2
invokevirtual org.jruby.RubyClass.defineConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)V
6: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
1 7 1 threadGroupClass Lorg/jruby/RubyClass;
4 7 2 defaultThreadGroup Lorg/jruby/RubyThreadGroup;
MethodParameters:
Name Flags
runtime
public org.jruby.runtime.builtin.IRubyObject add(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof org.jruby.RubyThread
ifne 1
aload 0
invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
aload 1
aload 0
invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getThread:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.RubyThreadGroup.isFrozen:()Z
ifeq 3
2: aload 0
invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
ldc "can't add to the frozen thread group"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyThreadGroup.enclosed:Z
ifeq 5
4: aload 0
invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
ldc "can't move to the enclosed thread group"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
5: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.RubyThread
astore 3
start local 3 6: aload 3
invokevirtual org.jruby.RubyThread.getThreadGroup:()Lorg/jruby/RubyThreadGroup;
astore 4
start local 4 7: aload 4
ifnull 12
8: aload 4
invokevirtual org.jruby.RubyThreadGroup.isFrozen:()Z
ifeq 10
9: aload 0
invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
ldc "can't move from the frozen thread group"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
10: StackMap locals: org.jruby.RubyThread org.jruby.RubyThreadGroup
StackMap stack:
aload 4
aload 2
invokevirtual org.jruby.RubyThreadGroup.enclosed_p:(Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
ifeq 12
11: aload 0
invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
ldc "can't move from the enclosed thread group"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
12: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.jruby.RubyThread.alive_p:()Lorg/jruby/RubyBoolean;
invokevirtual org.jruby.RubyBoolean.isTrue:()Z
ifeq 14
13: aload 0
aload 3
invokevirtual org.jruby.RubyThreadGroup.addDirectly:(Lorg/jruby/RubyThread;)V
14: StackMap locals:
StackMap stack:
aload 0
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/jruby/RubyThreadGroup;
0 15 1 rubyThread Lorg/jruby/runtime/builtin/IRubyObject;
0 15 2 block Lorg/jruby/runtime/Block;
6 15 3 thread Lorg/jruby/RubyThread;
7 15 4 threadGroup Lorg/jruby/RubyThreadGroup;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"add"}, required = 1)
MethodParameters:
Name Flags
rubyThread
block
void addDirectly(org.jruby.RubyThread);
descriptor: (Lorg/jruby/RubyThread;)V
flags: (0x0000)
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 2
monitorenter
1: aload 1
invokevirtual org.jruby.RubyThread.group:()Lorg/jruby/runtime/builtin/IRubyObject;
astore 3
start local 3 2: aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 5
3: aload 3
checkcast org.jruby.RubyThreadGroup
astore 4
start local 4 4: aload 4
getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
end local 4 5: StackMap locals: org.jruby.RubyThread org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 1
aload 0
invokevirtual org.jruby.RubyThread.setThreadGroup:(Lorg/jruby/RubyThreadGroup;)V
6: aload 0
getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 3 7: aload 2
monitorexit
8: goto 11
StackMap locals: org.jruby.RubyThreadGroup org.jruby.RubyThread org.jruby.RubyThread
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/RubyThreadGroup;
0 12 1 rubyThread Lorg/jruby/RubyThread;
2 7 3 oldGroup Lorg/jruby/runtime/builtin/IRubyObject;
4 5 4 threadGroup Lorg/jruby/RubyThreadGroup;
Exception table:
from to target type
1 8 9 any
9 10 9 any
MethodParameters:
Name Flags
rubyThread
public void remove(org.jruby.RubyThread);
descriptor: (Lorg/jruby/RubyThread;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 2
monitorenter
1: aload 1
aconst_null
invokevirtual org.jruby.RubyThread.setThreadGroup:(Lorg/jruby/RubyThreadGroup;)V
2: aload 0
getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
3: aload 2
monitorexit
4: goto 7
StackMap locals: org.jruby.RubyThreadGroup org.jruby.RubyThread org.jruby.RubyThread
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/RubyThreadGroup;
0 8 1 rubyThread Lorg/jruby/RubyThread;
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
rubyThread
public org.jruby.runtime.builtin.IRubyObject enclose(org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
putfield org.jruby.RubyThreadGroup.enclosed:Z
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyThreadGroup;
0 2 1 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
block
public org.jruby.runtime.builtin.IRubyObject enclosed_p(org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyThreadGroup.enclosed:Z
invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyThreadGroup;
0 1 1 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"enclosed?"})
MethodParameters:
Name Flags
block
public org.jruby.runtime.builtin.IRubyObject list(org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
invokestatic org.jruby.RubyArray.newArray:(Lorg/jruby/Ruby;)Lorg/jruby/RubyArray;
astore 2
start local 2 1: aload 0
getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
dup
astore 3
monitorenter
2: aload 0
getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: org.jruby.RubyThreadGroup org.jruby.runtime.Block org.jruby.RubyArray java.util.Set top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.jruby.RubyThread
astore 4
start local 4 4: aload 4
ifnull 6
5: aload 2
aload 4
invokevirtual org.jruby.RubyArray.append:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
pop
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: aload 3
monitorexit
8: goto 11
StackMap locals: org.jruby.RubyThreadGroup org.jruby.runtime.Block org.jruby.RubyArray java.util.Set
StackMap stack: java.lang.Throwable
9: aload 3
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/RubyThreadGroup;
0 12 1 block Lorg/jruby/runtime/Block;
1 12 2 ary Lorg/jruby/RubyArray;
4 6 4 thread Lorg/jruby/RubyThread;
Exception table:
from to target type
2 8 9 any
9 10 9 any
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
block
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
invokeinterface java.util.Set.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyThreadGroup;
private void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jruby.RubyObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: aload 0
new org.jruby.util.collections.WeakHashSet
dup
invokespecial org.jruby.util.collections.WeakHashSet.<init>:()V
invokestatic java.util.Collections.synchronizedSet:(Ljava/util/Set;)Ljava/util/Set;
putfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
2: aload 0
iconst_0
putfield org.jruby.RubyThreadGroup.enclosed:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyThreadGroup;
0 4 1 runtime Lorg/jruby/Ruby;
0 4 2 type Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
type
}
SourceFile: "RubyThreadGroup.java"
NestMembers:
org.jruby.RubyThreadGroup$1
InnerClasses:
org.jruby.RubyThreadGroup$1
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"ThreadGroup"})