public class org.jruby.ext.fiber.FiberQueue
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.jruby.ext.fiber.FiberQueue
  super_class: java.lang.Object
{
  protected java.util.concurrent.BlockingQueue<org.jruby.runtime.builtin.IRubyObject> queue;
    descriptor: Ljava/util/concurrent/BlockingQueue;
    flags: (0x0004) ACC_PROTECTED
    Signature: Ljava/util/concurrent/BlockingQueue<Lorg/jruby/runtime/builtin/IRubyObject;>;

  protected final org.jruby.Ruby runtime;
    descriptor: Lorg/jruby/Ruby;
    flags: (0x0014) ACC_PROTECTED, ACC_FINAL

  final org.jruby.RubyThread$Task<org.jruby.ext.fiber.FiberQueue, org.jruby.runtime.builtin.IRubyObject> takeTask;
    descriptor: Lorg/jruby/RubyThread$Task;
    flags: (0x0010) ACC_FINAL
    Signature: Lorg/jruby/RubyThread$Task<Lorg/jruby/ext/fiber/FiberQueue;Lorg/jruby/runtime/builtin/IRubyObject;>;

  final org.jruby.RubyThread$Task<org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.builtin.IRubyObject> putTask;
    descriptor: Lorg/jruby/RubyThread$Task;
    flags: (0x0010) ACC_FINAL
    Signature: Lorg/jruby/RubyThread$Task<[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;>;

  public void <init>(org.jruby.Ruby);
    descriptor: (Lorg/jruby/Ruby;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // org.jruby.ext.fiber.FiberQueue this
        start local 1 // org.jruby.Ruby runtime
         0: .line 47
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 52
            aload 0 /* this */
            new org.jruby.ext.fiber.FiberQueue$1
            dup
            aload 0 /* this */
            invokespecial org.jruby.ext.fiber.FiberQueue$1.<init>:(Lorg/jruby/ext/fiber/FiberQueue;)V
            putfield org.jruby.ext.fiber.FiberQueue.takeTask:Lorg/jruby/RubyThread$Task;
         2: .line 64
            aload 0 /* this */
            new org.jruby.ext.fiber.FiberQueue$2
            dup
            aload 0 /* this */
            invokespecial org.jruby.ext.fiber.FiberQueue$2.<init>:(Lorg/jruby/ext/fiber/FiberQueue;)V
            putfield org.jruby.ext.fiber.FiberQueue.putTask:Lorg/jruby/RubyThread$Task;
         3: .line 48
            aload 0 /* this */
            aload 1 /* runtime */
            putfield org.jruby.ext.fiber.FiberQueue.runtime:Lorg/jruby/Ruby;
         4: .line 49
            aload 0 /* this */
            new java.util.concurrent.ArrayBlockingQueue
            dup
            iconst_1
            iconst_0
            invokespecial java.util.concurrent.ArrayBlockingQueue.<init>:(IZ)V
            putfield org.jruby.ext.fiber.FiberQueue.queue:Ljava/util/concurrent/BlockingQueue;
         5: .line 50
            return
        end local 1 // org.jruby.Ruby runtime
        end local 0 // org.jruby.ext.fiber.FiberQueue this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    6     0     this  Lorg/jruby/ext/fiber/FiberQueue;
            0    6     1  runtime  Lorg/jruby/Ruby;
    MethodParameters:
         Name  Flags
      runtime  

  public org.jruby.runtime.builtin.IRubyObject shutdown(org.jruby.runtime.ThreadContext);
    descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.jruby.ext.fiber.FiberQueue this
        start local 1 // org.jruby.runtime.ThreadContext context
         0: .line 82
            aload 0 /* this */
            aconst_null
            putfield org.jruby.ext.fiber.FiberQueue.queue:Ljava/util/concurrent/BlockingQueue;
         1: .line 83
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
            areturn
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.ext.fiber.FiberQueue this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    2     0     this  Lorg/jruby/ext/fiber/FiberQueue;
            0    2     1  context  Lorg/jruby/runtime/ThreadContext;
    MethodParameters:
         Name  Flags
      context  

  public synchronized void shutdown();
    descriptor: ()V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.jruby.ext.fiber.FiberQueue this
         0: .line 87
            aload 0 /* this */
            aconst_null
            putfield org.jruby.ext.fiber.FiberQueue.queue:Ljava/util/concurrent/BlockingQueue;
         1: .line 88
            return
        end local 0 // org.jruby.ext.fiber.FiberQueue this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/jruby/ext/fiber/FiberQueue;

  public boolean isShutdown();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.jruby.ext.fiber.FiberQueue this
         0: .line 91
            aload 0 /* this */
            getfield org.jruby.ext.fiber.FiberQueue.queue:Ljava/util/concurrent/BlockingQueue;
            ifnonnull 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // org.jruby.ext.fiber.FiberQueue this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/jruby/ext/fiber/FiberQueue;

  public java.util.concurrent.BlockingQueue<org.jruby.runtime.builtin.IRubyObject> getQueueSafe();
    descriptor: ()Ljava/util/concurrent/BlockingQueue;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=2, args_size=1
        start local 0 // org.jruby.ext.fiber.FiberQueue this
         0: .line 95
            aload 0 /* this */
            getfield org.jruby.ext.fiber.FiberQueue.queue:Ljava/util/concurrent/BlockingQueue;
            astore 1 /* queue */
        start local 1 // java.util.concurrent.BlockingQueue queue
         1: .line 96
            aload 0 /* this */
            invokevirtual org.jruby.ext.fiber.FiberQueue.checkShutdown:()V
         2: .line 97
            aload 1 /* queue */
            areturn
        end local 1 // java.util.concurrent.BlockingQueue queue
        end local 0 // org.jruby.ext.fiber.FiberQueue this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    3     0   this  Lorg/jruby/ext/fiber/FiberQueue;
            1    3     1  queue  Ljava/util/concurrent/BlockingQueue<Lorg/jruby/runtime/builtin/IRubyObject;>;
    Signature: ()Ljava/util/concurrent/BlockingQueue<Lorg/jruby/runtime/builtin/IRubyObject;>;

  public synchronized void checkShutdown();
    descriptor: ()V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.jruby.ext.fiber.FiberQueue this
         0: .line 101
            aload 0 /* this */
            getfield org.jruby.ext.fiber.FiberQueue.queue:Ljava/util/concurrent/BlockingQueue;
            ifnonnull 2
         1: .line 102
            aload 0 /* this */
            getfield org.jruby.ext.fiber.FiberQueue.runtime:Lorg/jruby/Ruby;
            aload 0 /* this */
            getfield org.jruby.ext.fiber.FiberQueue.runtime:Lorg/jruby/Ruby;
            invokevirtual org.jruby.Ruby.getThreadError:()Lorg/jruby/RubyClass;
            ldc "queue shut down"
            invokestatic org.jruby.exceptions.RaiseException.from:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
         2: .line 104
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.jruby.ext.fiber.FiberQueue this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/jruby/ext/fiber/FiberQueue;

  public org.jruby.runtime.builtin.IRubyObject pop(org.jruby.runtime.ThreadContext);
    descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.jruby.ext.fiber.FiberQueue this
        start local 1 // org.jruby.runtime.ThreadContext context
         0: .line 107
            aload 0 /* this */
            aload 1 /* context */
            iconst_1
            invokevirtual org.jruby.ext.fiber.FiberQueue.pop:(Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
            areturn
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.ext.fiber.FiberQueue this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    1     0     this  Lorg/jruby/ext/fiber/FiberQueue;
            0    1     1  context  Lorg/jruby/runtime/ThreadContext;
    MethodParameters:
         Name  Flags
      context  

  public org.jruby.runtime.builtin.IRubyObject pop(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
    descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // org.jruby.ext.fiber.FiberQueue this
        start local 1 // org.jruby.runtime.ThreadContext context
        start local 2 // org.jruby.runtime.builtin.IRubyObject arg0
         0: .line 111
            aload 0 /* this */
            aload 1 /* context */
            aload 2 /* arg0 */
            invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
            ifeq 1
            iconst_0
            goto 2
      StackMap locals: org.jruby.ext.fiber.FiberQueue org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
      StackMap stack: org.jruby.ext.fiber.FiberQueue org.jruby.runtime.ThreadContext
         1: iconst_1
      StackMap locals: org.jruby.ext.fiber.FiberQueue org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject
      StackMap stack: org.jruby.ext.fiber.FiberQueue org.jruby.runtime.ThreadContext int
         2: invokevirtual org.jruby.ext.fiber.FiberQueue.pop:(Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
            areturn
        end local 2 // org.jruby.runtime.builtin.IRubyObject arg0
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.ext.fiber.FiberQueue this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    3     0     this  Lorg/jruby/ext/fiber/FiberQueue;
            0    3     1  context  Lorg/jruby/runtime/ThreadContext;
            0    3     2     arg0  Lorg/jruby/runtime/builtin/IRubyObject;
    MethodParameters:
         Name  Flags
      context  
      arg0     

  public void push(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[]);
    descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // org.jruby.ext.fiber.FiberQueue this
        start local 1 // org.jruby.runtime.ThreadContext context
        start local 2 // org.jruby.runtime.builtin.IRubyObject[] args
         0: .line 115
            aload 0 /* this */
            invokevirtual org.jruby.ext.fiber.FiberQueue.checkShutdown:()V
         1: .line 117
            aload 1 /* context */
            invokevirtual org.jruby.runtime.ThreadContext.getThread:()Lorg/jruby/RubyThread;
            aload 1 /* context */
            aload 2 /* args */
            aload 0 /* this */
            getfield org.jruby.ext.fiber.FiberQueue.putTask:Lorg/jruby/RubyThread$Task;
            invokevirtual org.jruby.RubyThread.executeTask:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/Object;Lorg/jruby/RubyThread$Task;)Ljava/lang/Object;
            pop
         2: .line 118
            goto 5
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
         3: pop
         4: .line 119
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            ldc "interrupted in FiberQueue.push"
            invokevirtual org.jruby.Ruby.newThreadError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
         5: .line 121
      StackMap locals:
      StackMap stack:
            return
        end local 2 // org.jruby.runtime.builtin.IRubyObject[] args
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.ext.fiber.FiberQueue this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    6     0     this  Lorg/jruby/ext/fiber/FiberQueue;
            0    6     1  context  Lorg/jruby/runtime/ThreadContext;
            0    6     2     args  [Lorg/jruby/runtime/builtin/IRubyObject;
      Exception table:
        from    to  target  type
           1     2       3  Class java.lang.InterruptedException
    MethodParameters:
         Name  Flags
      context  
      args     final

  private org.jruby.runtime.builtin.IRubyObject pop(org.jruby.runtime.ThreadContext, boolean);
    descriptor: (Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/runtime/builtin/IRubyObject;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=4, args_size=3
        start local 0 // org.jruby.ext.fiber.FiberQueue this
        start local 1 // org.jruby.runtime.ThreadContext context
        start local 2 // boolean should_block
         0: .line 124
            aload 0 /* this */
            invokevirtual org.jruby.ext.fiber.FiberQueue.getQueueSafe:()Ljava/util/concurrent/BlockingQueue;
            astore 3 /* queue */
        start local 3 // java.util.concurrent.BlockingQueue queue
         1: .line 125
            iload 2 /* should_block */
            ifne 3
            aload 3 /* queue */
            invokeinterface java.util.concurrent.BlockingQueue.size:()I
            ifne 3
         2: .line 126
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            invokevirtual org.jruby.Ruby.getThreadError:()Lorg/jruby/RubyClass;
            ldc "queue empty"
            invokestatic org.jruby.exceptions.RaiseException.from:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
         3: .line 129
      StackMap locals: java.util.concurrent.BlockingQueue
      StackMap stack:
            aload 1 /* context */
            invokevirtual org.jruby.runtime.ThreadContext.getThread:()Lorg/jruby/RubyThread;
            aload 1 /* context */
            aload 0 /* this */
            aload 0 /* this */
            getfield org.jruby.ext.fiber.FiberQueue.takeTask:Lorg/jruby/RubyThread$Task;
            invokevirtual org.jruby.RubyThread.executeTask:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/Object;Lorg/jruby/RubyThread$Task;)Ljava/lang/Object;
            checkcast org.jruby.runtime.builtin.IRubyObject
         4: areturn
         5: .line 130
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
            pop
         6: .line 131
            aload 1 /* context */
            getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
            ldc "interrupted in FiberQueue.pop"
            invokevirtual org.jruby.Ruby.newThreadError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
        end local 3 // java.util.concurrent.BlockingQueue queue
        end local 2 // boolean should_block
        end local 1 // org.jruby.runtime.ThreadContext context
        end local 0 // org.jruby.ext.fiber.FiberQueue this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    7     0          this  Lorg/jruby/ext/fiber/FiberQueue;
            0    7     1       context  Lorg/jruby/runtime/ThreadContext;
            0    7     2  should_block  Z
            1    7     3         queue  Ljava/util/concurrent/BlockingQueue<Lorg/jruby/runtime/builtin/IRubyObject;>;
      Exception table:
        from    to  target  type
           3     4       5  Class java.lang.InterruptedException
    MethodParameters:
              Name  Flags
      context       
      should_block  
}
SourceFile: "FiberQueue.java"
NestMembers:
  org.jruby.ext.fiber.FiberQueue$1  org.jruby.ext.fiber.FiberQueue$2
InnerClasses:
  public abstract Task = org.jruby.RubyThread$Task of org.jruby.RubyThread
  org.jruby.ext.fiber.FiberQueue$1
  org.jruby.ext.fiber.FiberQueue$2