class org.jruby.RubyIO$9 implements org.jruby.internal.runtime.ThreadedRunnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.RubyIO$9
super_class: java.lang.Object
{
volatile java.lang.Thread javaThread;
descriptor: Ljava/lang/Thread;
flags: (0x0040) ACC_VOLATILE
private final org.jruby.RubyThread[] val$waitThread;
descriptor: [Lorg/jruby/RubyThread;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.jruby.Ruby val$runtime;
descriptor: Lorg/jruby/Ruby;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final long val$pid;
descriptor: J
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.jruby.RubyIO$POpenTuple val$tuple;
descriptor: Lorg/jruby/RubyIO$POpenTuple;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(org.jruby.RubyThread[], org.jruby.Ruby, long, org.jruby.RubyIO$POpenTuple);
descriptor: ([Lorg/jruby/RubyThread;Lorg/jruby/Ruby;JLorg/jruby/RubyIO$POpenTuple;)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=5
start local 0 0: aload 0
aload 1
putfield org.jruby.RubyIO$9.val$waitThread:[Lorg/jruby/RubyThread;
aload 0
aload 2
putfield org.jruby.RubyIO$9.val$runtime:Lorg/jruby/Ruby;
aload 0
lload 3
putfield org.jruby.RubyIO$9.val$pid:J
aload 0
aload 5
putfield org.jruby.RubyIO$9.val$tuple:Lorg/jruby/RubyIO$POpenTuple;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyIO$9;
MethodParameters:
Name Flags
val$waitThread final
val$runtime final
val$pid final
val$tuple final
public java.lang.Thread getJavaThread();
descriptor: ()Ljava/lang/Thread;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyIO$9.javaThread:Ljava/lang/Thread;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyIO$9;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
putfield org.jruby.RubyIO$9.javaThread:Ljava/lang/Thread;
1: goto 3
start local 1 2: StackMap locals: org.jruby.RubyThread
StackMap stack:
invokestatic java.lang.Thread.yield:()V
end local 1 3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyIO$9.val$waitThread:[Lorg/jruby/RubyThread;
iconst_0
aaload
dup
astore 1
start local 1 4: ifnull 2
5: aload 0
getfield org.jruby.RubyIO$9.val$runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getThreadService:()Lorg/jruby/internal/runtime/ThreadService;
aload 1
invokevirtual org.jruby.internal.runtime.ThreadService.registerNewThread:(Lorg/jruby/RubyThread;)Lorg/jruby/runtime/ThreadContext;
pop
6: aload 1
aload 0
getfield org.jruby.RubyIO$9.val$runtime:Lorg/jruby/Ruby;
ldc "pid"
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
aload 0
getfield org.jruby.RubyIO$9.val$runtime:Lorg/jruby/Ruby;
aload 0
getfield org.jruby.RubyIO$9.val$pid:J
invokevirtual org.jruby.Ruby.newFixnum:(J)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.RubyThread.op_aset:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
7: aload 0
getfield org.jruby.RubyIO$9.val$tuple:Lorg/jruby/RubyIO$POpenTuple;
getfield org.jruby.RubyIO$POpenTuple.process:Ljava/lang/Process;
invokevirtual java.lang.Process.waitFor:()I
istore 2
start local 2 8: aload 0
getfield org.jruby.RubyIO$9.val$runtime:Lorg/jruby/Ruby;
9: iload 2
bipush 8
ishl
i2l
10: aload 0
getfield org.jruby.RubyIO$9.val$pid:J
11: invokestatic org.jruby.RubyProcess$RubyStatus.newProcessStatus:(Lorg/jruby/Ruby;JJ)Lorg/jruby/RubyProcess$RubyStatus;
astore 3
start local 3 12: aload 1
aload 3
invokevirtual org.jruby.RubyThread.cleanTerminate:(Lorg/jruby/runtime/builtin/IRubyObject;)V
end local 3 end local 2 13: goto 20
StackMap locals: org.jruby.RubyIO$9 org.jruby.RubyThread
StackMap stack: java.lang.Throwable
14: astore 2
start local 2 15: aload 1
aload 2
invokevirtual org.jruby.RubyThread.exceptionRaised:(Ljava/lang/Throwable;)V
end local 2 16: aload 1
invokevirtual org.jruby.RubyThread.dispose:()V
goto 21
17: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
18: aload 1
invokevirtual org.jruby.RubyThread.dispose:()V
19: aload 4
athrow
20: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.RubyThread.dispose:()V
21: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/jruby/RubyIO$9;
2 3 1 rubyThread Lorg/jruby/RubyThread;
4 22 1 rubyThread Lorg/jruby/RubyThread;
8 13 2 exitValue I
12 13 3 status Lorg/jruby/RubyProcess$RubyStatus;
15 16 2 t Ljava/lang/Throwable;
Exception table:
from to target type
7 13 14 Class java.lang.Throwable
7 16 17 any
}
SourceFile: "RubyIO.java"
EnclosingMethod: org.jruby.RubyIO.popen3:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
NestHost: org.jruby.RubyIO
InnerClasses:
org.jruby.RubyIO$9
private POpenTuple = org.jruby.RubyIO$POpenTuple of org.jruby.RubyIO
public RubyStatus = org.jruby.RubyProcess$RubyStatus of org.jruby.RubyProcess