public class org.jruby.internal.runtime.ThreadService extends java.lang.ThreadLocal<java.lang.ref.SoftReference<org.jruby.runtime.ThreadContext>>
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.jruby.internal.runtime.ThreadService
  super_class: java.lang.ThreadLocal
{
  private final org.jruby.Ruby runtime;
    descriptor: Lorg/jruby/Ruby;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private org.jruby.runtime.ThreadContext mainContext;
    descriptor: Lorg/jruby/runtime/ThreadContext;
    flags: (0x0002) ACC_PRIVATE

  private java.lang.ThreadGroup rubyThreadGroup;
    descriptor: Ljava/lang/ThreadGroup;
    flags: (0x0002) ACC_PRIVATE

  private final java.util.Map<java.lang.Object, org.jruby.RubyThread> rubyThreadMap;
    descriptor: Ljava/util/Map;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/Object;Lorg/jruby/RubyThread;>;

  private final java.util.concurrent.locks.ReentrantLock criticalLock;
    descriptor: Ljava/util/concurrent/locks/ReentrantLock;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.concurrent.atomic.AtomicLong threadCount;
    descriptor: Ljava/util/concurrent/atomic/AtomicLong;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 109
            ldc Lorg/jruby/internal/runtime/ThreadService;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic org.jruby.internal.runtime.ThreadService.$assertionsDisabled:Z
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(org.jruby.Ruby);
    descriptor: (Lorg/jruby/Ruby;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=2, args_size=2
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // org.jruby.Ruby runtime
         0: .line 136
            aload 0 /* this */
            invokespecial java.lang.ThreadLocal.<init>:()V
         1: .line 132
            aload 0 /* this */
            new java.util.concurrent.locks.ReentrantLock
            dup
            invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
            putfield org.jruby.internal.runtime.ThreadService.criticalLock:Ljava/util/concurrent/locks/ReentrantLock;
         2: .line 134
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicLong
            dup
            lconst_0
            invokespecial java.util.concurrent.atomic.AtomicLong.<init>:(J)V
            putfield org.jruby.internal.runtime.ThreadService.threadCount:Ljava/util/concurrent/atomic/AtomicLong;
         3: .line 137
            aload 0 /* this */
            aload 1 /* runtime */
            putfield org.jruby.internal.runtime.ThreadService.runtime:Lorg/jruby/Ruby;
         4: .line 140
            aload 0 /* this */
            new java.lang.ThreadGroup
            dup
            new java.lang.StringBuilder
            dup
            ldc "Ruby Threads#"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* runtime */
            invokevirtual java.lang.Object.hashCode:()I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.ThreadGroup.<init>:(Ljava/lang/String;)V
            putfield org.jruby.internal.runtime.ThreadService.rubyThreadGroup:Ljava/lang/ThreadGroup;
         5: .line 141
            goto 8
      StackMap locals: org.jruby.internal.runtime.ThreadService org.jruby.Ruby
      StackMap stack: java.lang.SecurityException
         6: pop
         7: .line 142
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
            putfield org.jruby.internal.runtime.ThreadService.rubyThreadGroup:Ljava/lang/ThreadGroup;
         8: .line 145
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            new java.util.WeakHashMap
            dup
            invokespecial java.util.WeakHashMap.<init>:()V
            invokestatic java.util.Collections.synchronizedMap:(Ljava/util/Map;)Ljava/util/Map;
            putfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
         9: .line 146
            return
        end local 1 // org.jruby.Ruby runtime
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   10     0     this  Lorg/jruby/internal/runtime/ThreadService;
            0   10     1  runtime  Lorg/jruby/Ruby;
      Exception table:
        from    to  target  type
           4     5       6  Class java.lang.SecurityException
    MethodParameters:
         Name  Flags
      runtime  final

  public void teardown();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 150
            aload 0 /* this */
            aconst_null
            putfield org.jruby.internal.runtime.ThreadService.mainContext:Lorg/jruby/runtime/ThreadContext;
         1: .line 153
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
            invokeinterface java.util.Map.clear:()V
         2: .line 154
            return
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/jruby/internal/runtime/ThreadService;

  public void initMainThread();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 157
            aload 0 /* this */
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.runtime:Lorg/jruby/Ruby;
            invokestatic org.jruby.runtime.ThreadContext.newContext:(Lorg/jruby/Ruby;)Lorg/jruby/runtime/ThreadContext;
            putfield org.jruby.internal.runtime.ThreadService.mainContext:Lorg/jruby/runtime/ThreadContext;
         1: .line 160
            aload 0 /* this */
            new java.lang.ref.SoftReference
            dup
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.mainContext:Lorg/jruby/runtime/ThreadContext;
            invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
            invokevirtual org.jruby.internal.runtime.ThreadService.set:(Ljava/lang/Object;)V
         2: .line 161
            return
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/jruby/internal/runtime/ThreadService;

  public final org.jruby.runtime.ThreadContext getCurrentContext();
    descriptor: ()Lorg/jruby/runtime/ThreadContext;
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 187
            aload 0 /* this */
            invokestatic org.jruby.internal.runtime.ThreadService.getCurrentContext:(Lorg/jruby/internal/runtime/ThreadService;)Lorg/jruby/runtime/ThreadContext;
            areturn
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/internal/runtime/ThreadService;

  public static org.jruby.runtime.ThreadContext getCurrentContext(org.jruby.internal.runtime.ThreadService);
    descriptor: (Lorg/jruby/internal/runtime/ThreadService;)Lorg/jruby/runtime/ThreadContext;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=1, locals=2, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService service
         0: .line 194
            aload 0 /* service */
            invokestatic org.jruby.internal.runtime.ThreadService.adoptLoop:(Lorg/jruby/internal/runtime/ThreadService;)Lorg/jruby/runtime/ThreadContext;
            astore 1 /* context */
        start local 1 // org.jruby.runtime.ThreadContext context
         1: .line 196
            aload 1 /* context */
            ifnonnull 2
            aload 0 /* service */
            invokestatic org.jruby.internal.runtime.ThreadService.getCurrentContext:(Lorg/jruby/internal/runtime/ThreadService;)Lorg/jruby/runtime/ThreadContext;
            areturn
         2: .line 198
      StackMap locals: org.jruby.runtime.ThreadContext
      StackMap stack:
            aload 1 /* context */
            areturn
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.internal.runtime.ThreadService service
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    3     0  service  Lorg/jruby/internal/runtime/ThreadService;
            1    3     1  context  Lorg/jruby/runtime/ThreadContext;
    MethodParameters:
         Name  Flags
      service  

  private static org.jruby.runtime.ThreadContext adoptLoop(org.jruby.internal.runtime.ThreadService);
    descriptor: (Lorg/jruby/internal/runtime/ThreadService;)Lorg/jruby/runtime/ThreadContext;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=3, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService service
         0: .line 202
            aload 0 /* service */
            invokevirtual org.jruby.internal.runtime.ThreadService.get:()Ljava/lang/Object;
            checkcast java.lang.ref.SoftReference
            astore 1 /* ref */
        start local 1 // java.lang.ref.SoftReference ref
         1: .line 203
            aload 1 /* ref */
            ifnonnull 3
         2: .line 204
            aload 0 /* service */
            invokestatic org.jruby.internal.runtime.ThreadService.contextFromAdopt:(Lorg/jruby/internal/runtime/ThreadService;)Lorg/jruby/runtime/ThreadContext;
            areturn
         3: .line 207
      StackMap locals: java.lang.ref.SoftReference
      StackMap stack:
            aload 1 /* ref */
            invokevirtual java.lang.ref.SoftReference.get:()Ljava/lang/Object;
            checkcast org.jruby.runtime.ThreadContext
            dup
            astore 2 /* context */
        start local 2 // org.jruby.runtime.ThreadContext context
         4: ifnonnull 6
         5: .line 209
            aload 0 /* service */
            invokevirtual org.jruby.internal.runtime.ThreadService.remove:()V
         6: .line 211
      StackMap locals: org.jruby.runtime.ThreadContext
      StackMap stack:
            aload 2 /* context */
            areturn
        end local 2 // org.jruby.runtime.ThreadContext context
        end local 1 // java.lang.ref.SoftReference ref
        end local 0 // org.jruby.internal.runtime.ThreadService service
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    7     0  service  Lorg/jruby/internal/runtime/ThreadService;
            1    7     1      ref  Ljava/lang/ref/SoftReference<Lorg/jruby/runtime/ThreadContext;>;
            4    7     2  context  Lorg/jruby/runtime/ThreadContext;
    MethodParameters:
         Name  Flags
      service  

  private static org.jruby.runtime.ThreadContext contextFromAdopt(org.jruby.internal.runtime.ThreadService);
    descriptor: (Lorg/jruby/internal/runtime/ThreadService;)Lorg/jruby/runtime/ThreadContext;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService service
         0: .line 216
            aload 0 /* service */
            invokevirtual org.jruby.internal.runtime.ThreadService.adoptCurrentThread:()Lorg/jruby/RubyThread;
            invokevirtual org.jruby.RubyThread.getContext:()Lorg/jruby/runtime/ThreadContext;
            areturn
        end local 0 // org.jruby.internal.runtime.ThreadService service
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    1     0  service  Lorg/jruby/internal/runtime/ThreadService;
    MethodParameters:
         Name  Flags
      service  

  private org.jruby.RubyThread adoptCurrentThread();
    descriptor: ()Lorg/jruby/RubyThread;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 220
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.runtime:Lorg/jruby/Ruby;
            aload 0 /* this */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokestatic org.jruby.RubyThread.adopt:(Lorg/jruby/Ruby;Lorg/jruby/internal/runtime/ThreadService;Ljava/lang/Thread;)Lorg/jruby/RubyThread;
            areturn
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/internal/runtime/ThreadService;

  public org.jruby.runtime.ThreadContext registerNewThread(org.jruby.RubyThread);
    descriptor: (Lorg/jruby/RubyThread;)Lorg/jruby/runtime/ThreadContext;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // org.jruby.RubyThread thread
         0: .line 224
            getstatic org.jruby.internal.runtime.ThreadService.$assertionsDisabled:Z
            ifne 1
            aload 1 /* thread */
            invokevirtual org.jruby.RubyThread.getContext:()Lorg/jruby/runtime/ThreadContext;
            ifnull 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 225
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.runtime:Lorg/jruby/Ruby;
            invokestatic org.jruby.runtime.ThreadContext.newContext:(Lorg/jruby/Ruby;)Lorg/jruby/runtime/ThreadContext;
            astore 2 /* context */
        start local 2 // org.jruby.runtime.ThreadContext context
         2: .line 226
            aload 2 /* context */
            aload 1 /* thread */
            invokevirtual org.jruby.runtime.ThreadContext.setThread:(Lorg/jruby/RubyThread;)V
         3: .line 227
            aload 2 /* context */
            aload 1 /* thread */
            invokestatic org.jruby.ext.fiber.ThreadFiber.initRootFiber:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyThread;)V
         4: .line 228
            aload 0 /* this */
            new java.lang.ref.SoftReference
            dup
            aload 2 /* context */
            invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
            invokevirtual org.jruby.internal.runtime.ThreadService.set:(Ljava/lang/Object;)V
         5: .line 229
            aload 2 /* context */
            areturn
        end local 2 // org.jruby.runtime.ThreadContext context
        end local 1 // org.jruby.RubyThread thread
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    6     0     this  Lorg/jruby/internal/runtime/ThreadService;
            0    6     1   thread  Lorg/jruby/RubyThread;
            2    6     2  context  Lorg/jruby/runtime/ThreadContext;
    MethodParameters:
        Name  Flags
      thread  

  public org.jruby.RubyThread getMainThread();
    descriptor: ()Lorg/jruby/RubyThread;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 233
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.mainContext:Lorg/jruby/runtime/ThreadContext;
            invokevirtual org.jruby.runtime.ThreadContext.getThread:()Lorg/jruby/RubyThread;
            areturn
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/internal/runtime/ThreadService;

  public void setMainThread(java.lang.Thread, org.jruby.RubyThread);
    descriptor: (Ljava/lang/Thread;Lorg/jruby/RubyThread;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // java.lang.Thread thread
        start local 2 // org.jruby.RubyThread rubyThread
         0: .line 237
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.mainContext:Lorg/jruby/runtime/ThreadContext;
            aload 2 /* rubyThread */
            invokevirtual org.jruby.runtime.ThreadContext.setThread:(Lorg/jruby/RubyThread;)V
         1: .line 238
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
            aload 1 /* thread */
            aload 2 /* rubyThread */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         2: .line 239
            return
        end local 2 // org.jruby.RubyThread rubyThread
        end local 1 // java.lang.Thread thread
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    3     0        this  Lorg/jruby/internal/runtime/ThreadService;
            0    3     1      thread  Ljava/lang/Thread;
            0    3     2  rubyThread  Lorg/jruby/RubyThread;
    MethodParameters:
            Name  Flags
      thread      
      rubyThread  

  public org.jruby.RubyThread[] getActiveRubyThreads();
    descriptor: ()[Lorg/jruby/RubyThread;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=7, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 244
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
            dup
            astore 2
            monitorenter
         1: .line 245
            new java.util.ArrayList
            dup
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
            invokeinterface java.util.Map.size:()I
            invokespecial java.util.ArrayList.<init>:(I)V
            astore 1 /* rtList */
        start local 1 // java.util.ArrayList rtList
         2: .line 247
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
            invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
            astore 4
            goto 13
      StackMap locals: org.jruby.internal.runtime.ThreadService java.util.ArrayList java.util.Map top java.util.Iterator
      StackMap stack:
         3: aload 4
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.util.Map$Entry
            astore 3 /* entry */
        start local 3 // java.util.Map$Entry entry
         4: .line 248
            aload 3 /* entry */
            invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
            astore 5 /* key */
        start local 5 // java.lang.Object key
         5: .line 249
            aload 5 /* key */
            ifnonnull 6
            goto 13
         6: .line 251
      StackMap locals: org.jruby.internal.runtime.ThreadService java.util.ArrayList java.util.Map java.util.Map$Entry java.util.Iterator java.lang.Object
      StackMap stack:
            aload 5 /* key */
            instanceof java.lang.Thread
            ifeq 9
         7: .line 252
            aload 5 /* key */
            checkcast java.lang.Thread
            astore 6 /* t */
        start local 6 // java.lang.Thread t
         8: .line 255
            aload 6 /* t */
            invokevirtual java.lang.Thread.isAlive:()Z
            ifne 12
            goto 13
        end local 6 // java.lang.Thread t
         9: .line 256
      StackMap locals:
      StackMap stack:
            aload 5 /* key */
            instanceof java.util.concurrent.Future
            ifeq 12
        10: .line 257
            aload 5 /* key */
            checkcast java.util.concurrent.Future
            astore 6 /* f */
        start local 6 // java.util.concurrent.Future f
        11: .line 260
            aload 6 /* f */
            invokeinterface java.util.concurrent.Future.isDone:()Z
            ifne 13
            aload 6 /* f */
            invokeinterface java.util.concurrent.Future.isCancelled:()Z
            ifeq 12
            goto 13
        end local 6 // java.util.concurrent.Future f
        12: .line 263
      StackMap locals:
      StackMap stack:
            aload 1 /* rtList */
            aload 3 /* entry */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            checkcast org.jruby.RubyThread
            invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
            pop
        end local 5 // java.lang.Object key
        end local 3 // java.util.Map$Entry entry
        13: .line 247
      StackMap locals: org.jruby.internal.runtime.ThreadService java.util.ArrayList java.util.Map top java.util.Iterator
      StackMap stack:
            aload 4
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
        14: .line 244
            aload 2
            monitorexit
        15: goto 18
        end local 1 // java.util.ArrayList rtList
      StackMap locals: org.jruby.internal.runtime.ThreadService top java.util.Map
      StackMap stack: java.lang.Throwable
        16: aload 2
            monitorexit
        17: athrow
        start local 1 // java.util.ArrayList rtList
        18: .line 266
      StackMap locals: org.jruby.internal.runtime.ThreadService java.util.ArrayList
      StackMap stack:
            aload 1 /* rtList */
            aload 1 /* rtList */
            invokevirtual java.util.ArrayList.size:()I
            anewarray org.jruby.RubyThread
            invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
            checkcast org.jruby.RubyThread[]
            areturn
        end local 1 // java.util.ArrayList rtList
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   19     0    this  Lorg/jruby/internal/runtime/ThreadService;
            2   16     1  rtList  Ljava/util/ArrayList<Lorg/jruby/RubyThread;>;
           18   19     1  rtList  Ljava/util/ArrayList<Lorg/jruby/RubyThread;>;
            4   13     3   entry  Ljava/util/Map$Entry<Ljava/lang/Object;Lorg/jruby/RubyThread;>;
            5   13     5     key  Ljava/lang/Object;
            8    9     6       t  Ljava/lang/Thread;
           11   12     6       f  Ljava/util/concurrent/Future;
      Exception table:
        from    to  target  type
           1    15      16  any
          16    17      16  any

  public void associateThread(java.lang.Thread, org.jruby.RubyThread);
    descriptor: (Ljava/lang/Thread;Lorg/jruby/RubyThread;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // java.lang.Thread thread
        start local 2 // org.jruby.RubyThread rubyThread
         0: .line 270
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
            aload 1 /* thread */
            aload 2 /* rubyThread */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 271
            return
        end local 2 // org.jruby.RubyThread rubyThread
        end local 1 // java.lang.Thread thread
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    2     0        this  Lorg/jruby/internal/runtime/ThreadService;
            0    2     1      thread  Ljava/lang/Thread;
            0    2     2  rubyThread  Lorg/jruby/RubyThread;
    MethodParameters:
            Name  Flags
      thread      
      rubyThread  

  public void unregisterThread(org.jruby.RubyThread);
    descriptor: (Lorg/jruby/RubyThread;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // org.jruby.RubyThread thread
         0: .line 275
            aload 0 /* this */
            aload 1 /* thread */
            invokevirtual org.jruby.RubyThread.getContext:()Lorg/jruby/runtime/ThreadContext;
            aload 1 /* thread */
            invokevirtual org.jruby.RubyThread.getNativeThread:()Ljava/lang/Thread;
            invokevirtual org.jruby.internal.runtime.ThreadService.unregisterThreadImpl:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/Thread;)V
         1: .line 276
            return
        end local 1 // org.jruby.RubyThread thread
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lorg/jruby/internal/runtime/ThreadService;
            0    2     1  thread  Lorg/jruby/RubyThread;
    MethodParameters:
        Name  Flags
      thread  

  public void unregisterCurrentThread(org.jruby.runtime.ThreadContext);
    descriptor: (Lorg/jruby/runtime/ThreadContext;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // org.jruby.runtime.ThreadContext context
         0: .line 279
            aload 0 /* this */
            aload 1 /* context */
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual org.jruby.internal.runtime.ThreadService.unregisterThreadImpl:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/Thread;)V
         1: .line 280
            return
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    2     0     this  Lorg/jruby/internal/runtime/ThreadService;
            0    2     1  context  Lorg/jruby/runtime/ThreadContext;
    MethodParameters:
         Name  Flags
      context  

  private void unregisterThreadImpl(org.jruby.runtime.ThreadContext, java.lang.Thread);
    descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/Thread;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=4, args_size=3
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // org.jruby.runtime.ThreadContext context
        start local 2 // java.lang.Thread nativeThread
         0: .line 283
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
            aload 2 /* nativeThread */
            invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 285
            aload 1 /* context */
            ifnull 5
         2: .line 286
            aload 1 /* context */
            invokevirtual org.jruby.runtime.ThreadContext.getThread:()Lorg/jruby/RubyThread;
            astore 3 /* thread */
        start local 3 // org.jruby.RubyThread thread
         3: .line 287
            aload 1 /* context */
            aconst_null
            invokevirtual org.jruby.runtime.ThreadContext.setThread:(Lorg/jruby/RubyThread;)V
         4: .line 288
            aload 3 /* thread */
            ifnull 5
            aload 3 /* thread */
            invokevirtual org.jruby.RubyThread.clearContext:()V
        end local 3 // org.jruby.RubyThread thread
         5: .line 291
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual org.jruby.internal.runtime.ThreadService.get:()Ljava/lang/Object;
            checkcast java.lang.ref.SoftReference
            astore 3 /* ref */
        start local 3 // java.lang.ref.SoftReference ref
         6: .line 292
            aload 3 /* ref */
            ifnull 7
            aload 3 /* ref */
            invokevirtual java.lang.ref.SoftReference.clear:()V
         7: .line 293
      StackMap locals: java.lang.ref.SoftReference
      StackMap stack:
            aload 0 /* this */
            invokevirtual org.jruby.internal.runtime.ThreadService.remove:()V
         8: .line 294
            return
        end local 3 // java.lang.ref.SoftReference ref
        end local 2 // java.lang.Thread nativeThread
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    9     0          this  Lorg/jruby/internal/runtime/ThreadService;
            0    9     1       context  Lorg/jruby/runtime/ThreadContext;
            0    9     2  nativeThread  Ljava/lang/Thread;
            3    5     3        thread  Lorg/jruby/RubyThread;
            6    9     3           ref  Ljava/lang/ref/SoftReference<Lorg/jruby/runtime/ThreadContext;>;
    MethodParameters:
              Name  Flags
      context       
      nativeThread  

  public void disposeCurrentThread();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 298
            aload 0 /* this */
            aload 0 /* this */
            invokevirtual org.jruby.internal.runtime.ThreadService.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
            invokevirtual org.jruby.internal.runtime.ThreadService.unregisterCurrentThread:(Lorg/jruby/runtime/ThreadContext;)V
         1: .line 299
            return
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/jruby/internal/runtime/ThreadService;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()

  public long incrementAndGetThreadCount();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 302
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.threadCount:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.incrementAndGet:()J
            lreturn
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/internal/runtime/ThreadService;

  public java.util.Map<java.lang.Object, org.jruby.RubyThread> getRubyThreadMap();
    descriptor: ()Ljava/util/Map;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 307
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
            areturn
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/internal/runtime/ThreadService;
    Signature: ()Ljava/util/Map<Ljava/lang/Object;Lorg/jruby/RubyThread;>;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()

  public void deliverEvent(org.jruby.RubyThread, org.jruby.RubyThread, org.jruby.internal.runtime.ThreadService$Event);
    descriptor: (Lorg/jruby/RubyThread;Lorg/jruby/RubyThread;Lorg/jruby/internal/runtime/ThreadService$Event;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=0, locals=4, args_size=4
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // org.jruby.RubyThread sender
        start local 2 // org.jruby.RubyThread target
        start local 3 // org.jruby.internal.runtime.ThreadService$Event event
         0: .line 312
            return
        end local 3 // org.jruby.internal.runtime.ThreadService$Event event
        end local 2 // org.jruby.RubyThread target
        end local 1 // org.jruby.RubyThread sender
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    1     0    this  Lorg/jruby/internal/runtime/ThreadService;
            0    1     1  sender  Lorg/jruby/RubyThread;
            0    1     2  target  Lorg/jruby/RubyThread;
            0    1     3   event  Lorg/jruby/internal/runtime/ThreadService$Event;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()
    MethodParameters:
        Name  Flags
      sender  
      target  
      event   

  public java.lang.ThreadGroup getRubyThreadGroup();
    descriptor: ()Ljava/lang/ThreadGroup;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 316
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadGroup:Ljava/lang/ThreadGroup;
            areturn
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/internal/runtime/ThreadService;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()

  public org.jruby.runtime.ThreadContext getThreadContextForThread(org.jruby.RubyThread);
    descriptor: (Lorg/jruby/RubyThread;)Lorg/jruby/runtime/ThreadContext;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=2, args_size=2
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // org.jruby.RubyThread thread
         0: .line 321
            aload 1 /* thread */
            invokevirtual org.jruby.RubyThread.getContext:()Lorg/jruby/runtime/ThreadContext;
            areturn
        end local 1 // org.jruby.RubyThread thread
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    1     0    this  Lorg/jruby/internal/runtime/ThreadService;
            0    1     1  thread  Lorg/jruby/RubyThread;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()
    MethodParameters:
        Name  Flags
      thread  

  public synchronized void dissociateThread(java.lang.Object);
    descriptor: (Ljava/lang/Object;)V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // java.lang.Object threadOrFuture
         0: .line 326
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
            aload 1 /* threadOrFuture */
            invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 327
            return
        end local 1 // java.lang.Object threadOrFuture
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    2     0            this  Lorg/jruby/internal/runtime/ThreadService;
            0    2     1  threadOrFuture  Ljava/lang/Object;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()
    MethodParameters:
                Name  Flags
      threadOrFuture  

  public final void setCurrentContext(org.jruby.runtime.ThreadContext);
    descriptor: (Lorg/jruby/runtime/ThreadContext;)V
    flags: (0x0011) ACC_PUBLIC, ACC_FINAL
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // org.jruby.runtime.ThreadContext context
         0: .line 331
            aload 0 /* this */
            new java.lang.ref.SoftReference
            dup
            aload 1 /* context */
            invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
            invokevirtual org.jruby.internal.runtime.ThreadService.set:(Ljava/lang/Object;)V
         1: .line 332
            return
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    2     0     this  Lorg/jruby/internal/runtime/ThreadService;
            0    2     1  context  Lorg/jruby/runtime/ThreadContext;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()
    MethodParameters:
         Name  Flags
      context  

  public boolean getPolling();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 336
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.rubyThreadMap:Ljava/util/Map;
            invokeinterface java.util.Map.size:()I
            iconst_1
            if_icmple 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/jruby/internal/runtime/ThreadService;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()

  public void setCritical(boolean);
    descriptor: (Z)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=2, args_size=2
        start local 0 // org.jruby.internal.runtime.ThreadService this
        start local 1 // boolean critical
         0: .line 383
            iload 1 /* critical */
            ifeq 3
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.criticalLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread:()Z
            ifne 3
         1: .line 384
            aload 0 /* this */
            invokevirtual org.jruby.internal.runtime.ThreadService.acquireCritical:()V
         2: .line 385
            goto 5
      StackMap locals:
      StackMap stack:
         3: iload 1 /* critical */
            ifne 5
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.criticalLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread:()Z
            ifeq 5
         4: .line 386
            aload 0 /* this */
            invokevirtual org.jruby.internal.runtime.ThreadService.releaseCritical:()V
         5: .line 388
      StackMap locals:
      StackMap stack:
            return
        end local 1 // boolean critical
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    6     0      this  Lorg/jruby/internal/runtime/ThreadService;
            0    6     1  critical  Z
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()
    MethodParameters:
          Name  Flags
      critical  

  private void acquireCritical();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 392
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.criticalLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
         1: .line 393
            return
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/jruby/internal/runtime/ThreadService;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()

  private void releaseCritical();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 397
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.criticalLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
         1: .line 398
            return
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/jruby/internal/runtime/ThreadService;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()

  public boolean getCritical();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.internal.runtime.ThreadService this
         0: .line 402
            aload 0 /* this */
            getfield org.jruby.internal.runtime.ThreadService.criticalLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread:()Z
            ireturn
        end local 0 // org.jruby.internal.runtime.ThreadService this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/jruby/internal/runtime/ThreadService;
    RuntimeVisibleAnnotations: 
      java.lang.Deprecated()
}
Signature: Ljava/lang/ThreadLocal<Ljava/lang/ref/SoftReference<Lorg/jruby/runtime/ThreadContext;>;>;
SourceFile: "ThreadService.java"
NestMembers:
  org.jruby.internal.runtime.ThreadService$Event  org.jruby.internal.runtime.ThreadService$Event$Type
InnerClasses:
  public abstract Entry = java.util.Map$Entry of java.util.Map
  public Event = org.jruby.internal.runtime.ThreadService$Event of org.jruby.internal.runtime.ThreadService