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: .line 71
            new org.jruby.RubyThreadGroup$1
            dup
            invokespecial org.jruby.RubyThreadGroup$1.<init>:()V
            putstatic org.jruby.RubyThreadGroup.THREADGROUP_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
         1: .line 75
            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 // org.jruby.Ruby runtime
         0: .line 57
            aload 0 /* runtime */
            ldc "ThreadGroup"
            aload 0 /* runtime */
            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 /* threadGroupClass */
        start local 1 // org.jruby.RubyClass threadGroupClass
         1: .line 59
            aload 1 /* threadGroupClass */
            getstatic org.jruby.runtime.ClassIndex.THREADGROUP:Lorg/jruby/runtime/ClassIndex;
            invokevirtual org.jruby.RubyClass.setClassIndex:(Lorg/jruby/runtime/ClassIndex;)V
         2: .line 61
            aload 1 /* threadGroupClass */
            ldc Lorg/jruby/RubyThreadGroup;
            invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
         3: .line 64
            new org.jruby.RubyThreadGroup
            dup
            aload 0 /* runtime */
            aload 1 /* threadGroupClass */
            invokespecial org.jruby.RubyThreadGroup.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
            astore 2 /* defaultThreadGroup */
        start local 2 // org.jruby.RubyThreadGroup defaultThreadGroup
         4: .line 65
            aload 0 /* runtime */
            aload 2 /* defaultThreadGroup */
            invokevirtual org.jruby.Ruby.setDefaultThreadGroup:(Lorg/jruby/RubyThreadGroup;)V
         5: .line 66
            aload 1 /* threadGroupClass */
            ldc "Default"
            aload 2 /* defaultThreadGroup */
            invokevirtual org.jruby.RubyClass.defineConstant:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)V
         6: .line 68
            aload 1 /* threadGroupClass */
            areturn
        end local 2 // org.jruby.RubyThreadGroup defaultThreadGroup
        end local 1 // org.jruby.RubyClass threadGroupClass
        end local 0 // org.jruby.Ruby runtime
      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 // org.jruby.RubyThreadGroup this
        start local 1 // org.jruby.runtime.builtin.IRubyObject rubyThread
        start local 2 // org.jruby.runtime.Block block
         0: .line 79
            aload 1 /* rubyThread */
            instanceof org.jruby.RubyThread
            ifne 1
            aload 0 /* this */
            invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
            aload 1 /* rubyThread */
            aload 0 /* this */
            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: .line 82
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual org.jruby.RubyThreadGroup.isFrozen:()Z
            ifeq 3
         2: .line 83
            aload 0 /* this */
            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: .line 86
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.jruby.RubyThreadGroup.enclosed:Z
            ifeq 5
         4: .line 87
            aload 0 /* this */
            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: .line 90
      StackMap locals:
      StackMap stack:
            aload 1 /* rubyThread */
            checkcast org.jruby.RubyThread
            astore 3 /* thread */
        start local 3 // org.jruby.RubyThread thread
         6: .line 92
            aload 3 /* thread */
            invokevirtual org.jruby.RubyThread.getThreadGroup:()Lorg/jruby/RubyThreadGroup;
            astore 4 /* threadGroup */
        start local 4 // org.jruby.RubyThreadGroup threadGroup
         7: .line 95
            aload 4 /* threadGroup */
            ifnull 12
         8: .line 96
            aload 4 /* threadGroup */
            invokevirtual org.jruby.RubyThreadGroup.isFrozen:()Z
            ifeq 10
         9: .line 97
            aload 0 /* this */
            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: .line 100
      StackMap locals: org.jruby.RubyThread org.jruby.RubyThreadGroup
      StackMap stack:
            aload 4 /* threadGroup */
            aload 2 /* block */
            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: .line 101
            aload 0 /* this */
            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: .line 106
      StackMap locals:
      StackMap stack:
            aload 3 /* thread */
            invokevirtual org.jruby.RubyThread.alive_p:()Lorg/jruby/RubyBoolean;
            invokevirtual org.jruby.RubyBoolean.isTrue:()Z
            ifeq 14
        13: .line 107
            aload 0 /* this */
            aload 3 /* thread */
            invokevirtual org.jruby.RubyThreadGroup.addDirectly:(Lorg/jruby/RubyThread;)V
        14: .line 110
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            areturn
        end local 4 // org.jruby.RubyThreadGroup threadGroup
        end local 3 // org.jruby.RubyThread thread
        end local 2 // org.jruby.runtime.Block block
        end local 1 // org.jruby.runtime.builtin.IRubyObject rubyThread
        end local 0 // org.jruby.RubyThreadGroup this
      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 // org.jruby.RubyThreadGroup this
        start local 1 // org.jruby.RubyThread rubyThread
         0: .line 114
            aload 1 /* rubyThread */
            dup
            astore 2
            monitorenter
         1: .line 115
            aload 1 /* rubyThread */
            invokevirtual org.jruby.RubyThread.group:()Lorg/jruby/runtime/builtin/IRubyObject;
            astore 3 /* oldGroup */
        start local 3 // org.jruby.runtime.builtin.IRubyObject oldGroup
         2: .line 116
            aload 3 /* oldGroup */
            invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
            ifne 5
         3: .line 117
            aload 3 /* oldGroup */
            checkcast org.jruby.RubyThreadGroup
            astore 4 /* threadGroup */
        start local 4 // org.jruby.RubyThreadGroup threadGroup
         4: .line 118
            aload 4 /* threadGroup */
            getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
            aload 1 /* rubyThread */
            invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
            pop
        end local 4 // org.jruby.RubyThreadGroup threadGroup
         5: .line 121
      StackMap locals: org.jruby.RubyThread org.jruby.runtime.builtin.IRubyObject
      StackMap stack:
            aload 1 /* rubyThread */
            aload 0 /* this */
            invokevirtual org.jruby.RubyThread.setThreadGroup:(Lorg/jruby/RubyThreadGroup;)V
         6: .line 122
            aload 0 /* this */
            getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
            aload 1 /* rubyThread */
            invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
            pop
        end local 3 // org.jruby.runtime.builtin.IRubyObject oldGroup
         7: .line 114
            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: .line 124
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.jruby.RubyThread rubyThread
        end local 0 // org.jruby.RubyThreadGroup this
      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 // org.jruby.RubyThreadGroup this
        start local 1 // org.jruby.RubyThread rubyThread
         0: .line 127
            aload 1 /* rubyThread */
            dup
            astore 2
            monitorenter
         1: .line 128
            aload 1 /* rubyThread */
            aconst_null
            invokevirtual org.jruby.RubyThread.setThreadGroup:(Lorg/jruby/RubyThreadGroup;)V
         2: .line 129
            aload 0 /* this */
            getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
            aload 1 /* rubyThread */
            invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
            pop
         3: .line 127
            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: .line 131
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.jruby.RubyThread rubyThread
        end local 0 // org.jruby.RubyThreadGroup this
      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 // org.jruby.RubyThreadGroup this
        start local 1 // org.jruby.runtime.Block block
         0: .line 135
            aload 0 /* this */
            iconst_1
            putfield org.jruby.RubyThreadGroup.enclosed:Z
         1: .line 137
            aload 0 /* this */
            areturn
        end local 1 // org.jruby.runtime.Block block
        end local 0 // org.jruby.RubyThreadGroup this
      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 // org.jruby.RubyThreadGroup this
        start local 1 // org.jruby.runtime.Block block
         0: .line 142
            aload 0 /* this */
            invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
            aload 0 /* this */
            getfield org.jruby.RubyThreadGroup.enclosed:Z
            invokevirtual org.jruby.Ruby.newBoolean:(Z)Lorg/jruby/RubyBoolean;
            areturn
        end local 1 // org.jruby.runtime.Block block
        end local 0 // org.jruby.RubyThreadGroup this
      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 // org.jruby.RubyThreadGroup this
        start local 1 // org.jruby.runtime.Block block
         0: .line 147
            aload 0 /* this */
            invokevirtual org.jruby.RubyThreadGroup.getRuntime:()Lorg/jruby/Ruby;
            invokestatic org.jruby.RubyArray.newArray:(Lorg/jruby/Ruby;)Lorg/jruby/RubyArray;
            astore 2 /* ary */
        start local 2 // org.jruby.RubyArray ary
         1: .line 148
            aload 0 /* this */
            getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
            dup
            astore 3
            monitorenter
         2: .line 149
            aload 0 /* this */
            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 /* thread */
        start local 4 // org.jruby.RubyThread thread
         4: .line 150
            aload 4 /* thread */
            ifnull 6
         5: .line 151
            aload 2 /* ary */
            aload 4 /* thread */
            invokevirtual org.jruby.RubyArray.append:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
            pop
        end local 4 // org.jruby.RubyThread thread
         6: .line 149
      StackMap locals:
      StackMap stack:
            aload 5
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
         7: .line 148
            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: .line 155
      StackMap locals:
      StackMap stack:
            aload 2 /* ary */
            areturn
        end local 2 // org.jruby.RubyArray ary
        end local 1 // org.jruby.runtime.Block block
        end local 0 // org.jruby.RubyThreadGroup this
      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 // org.jruby.RubyThreadGroup this
         0: .line 165
            aload 0 /* this */
            getfield org.jruby.RubyThreadGroup.rubyThreadList:Ljava/util/Set;
            invokeinterface java.util.Set.size:()I
            ireturn
        end local 0 // org.jruby.RubyThreadGroup this
      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 // org.jruby.RubyThreadGroup this
        start local 1 // org.jruby.Ruby runtime
        start local 2 // org.jruby.RubyClass type
         0: .line 169
            aload 0 /* this */
            aload 1 /* runtime */
            aload 2 /* type */
            invokespecial org.jruby.RubyObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
         1: .line 53
            aload 0 /* this */
            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: .line 54
            aload 0 /* this */
            iconst_0
            putfield org.jruby.RubyThreadGroup.enclosed:Z
         3: .line 170
            return
        end local 2 // org.jruby.RubyClass type
        end local 1 // org.jruby.Ruby runtime
        end local 0 // org.jruby.RubyThreadGroup this
      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"})