class org.jruby.RubyIO$7 implements org.jruby.RubyThread$Task<org.jruby.util.io.ChannelFD, org.jruby.runtime.builtin.IRubyObject>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.RubyIO$7
super_class: java.lang.Object
{
final org.jruby.RubyIO this$0;
descriptor: Lorg/jruby/RubyIO;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private final org.jruby.util.ByteList val$strByteList;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final int val$count;
descriptor: I
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.jruby.util.io.ChannelFD val$fd;
descriptor: Lorg/jruby/util/io/ChannelFD;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final long val$off;
descriptor: J
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final org.jruby.RubyString val$string;
descriptor: Lorg/jruby/RubyString;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(org.jruby.RubyIO, org.jruby.util.ByteList, int, org.jruby.util.io.ChannelFD, long, org.jruby.RubyString);
descriptor: (Lorg/jruby/RubyIO;Lorg/jruby/util/ByteList;ILorg/jruby/util/io/ChannelFD;JLorg/jruby/RubyString;)V
flags: (0x0000)
Code:
stack=3, locals=8, args_size=7
start local 0 0: aload 0
aload 1
putfield org.jruby.RubyIO$7.this$0:Lorg/jruby/RubyIO;
aload 0
aload 2
putfield org.jruby.RubyIO$7.val$strByteList:Lorg/jruby/util/ByteList;
aload 0
iload 3
putfield org.jruby.RubyIO$7.val$count:I
aload 0
aload 4
putfield org.jruby.RubyIO$7.val$fd:Lorg/jruby/util/io/ChannelFD;
aload 0
lload 5
putfield org.jruby.RubyIO$7.val$off:J
aload 0
aload 7
putfield org.jruby.RubyIO$7.val$string:Lorg/jruby/RubyString;
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$7;
MethodParameters:
Name Flags
this$0 final
val$strByteList final
val$count final
val$fd final
val$off final
val$string final
public org.jruby.runtime.builtin.IRubyObject run(org.jruby.runtime.ThreadContext, org.jruby.util.io.ChannelFD);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/ChannelFD;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 3
start local 3 1: aload 0
getfield org.jruby.RubyIO$7.val$strByteList:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.unsafeBytes:()[B
aload 0
getfield org.jruby.RubyIO$7.val$strByteList:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.begin:()I
aload 0
getfield org.jruby.RubyIO$7.val$count:I
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
astore 4
start local 4 2: iconst_0
istore 5
start local 5 3: aload 0
getfield org.jruby.RubyIO$7.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chFile:Ljava/nio/channels/FileChannel;
ifnull 7
4: aload 0
getfield org.jruby.RubyIO$7.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chFile:Ljava/nio/channels/FileChannel;
aload 4
aload 0
getfield org.jruby.RubyIO$7.val$off:J
invokevirtual java.nio.channels.FileChannel.read:(Ljava/nio/ByteBuffer;J)I
istore 5
5: iload 5
iconst_m1
if_icmpne 19
6: aload 3
invokevirtual org.jruby.Ruby.newEOFError:()Lorg/jruby/exceptions/RaiseException;
athrow
7: StackMap locals: org.jruby.Ruby java.nio.ByteBuffer int
StackMap stack:
aload 0
getfield org.jruby.RubyIO$7.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chNative:Ljnr/enxio/channels/NativeSelectableChannel;
ifnull 13
8: aload 3
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
aload 0
getfield org.jruby.RubyIO$7.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chNative:Ljnr/enxio/channels/NativeSelectableChannel;
invokeinterface jnr.enxio.channels.NativeSelectableChannel.getFD:()I
aload 4
aload 0
getfield org.jruby.RubyIO$7.val$count:I
i2l
aload 0
getfield org.jruby.RubyIO$7.val$off:J
invokeinterface jnr.posix.POSIX.pread:(ILjava/nio/ByteBuffer;JJ)J
l2i
istore 5
9: iload 5
ifne 11
10: aload 3
invokevirtual org.jruby.Ruby.newEOFError:()Lorg/jruby/exceptions/RaiseException;
athrow
11: StackMap locals:
StackMap stack:
iload 5
iconst_m1
if_icmpne 19
12: aload 3
aload 3
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
invokeinterface jnr.posix.POSIX.errno:()I
invokevirtual org.jruby.Ruby.newErrnoFromInt:(I)Lorg/jruby/exceptions/RaiseException;
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyIO$7.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chRead:Ljava/nio/channels/ReadableByteChannel;
ifnull 16
14: aload 0
getfield org.jruby.RubyIO$7.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chRead:Ljava/nio/channels/ReadableByteChannel;
aload 4
invokeinterface java.nio.channels.ReadableByteChannel.read:(Ljava/nio/ByteBuffer;)I
istore 5
15: goto 19
16: StackMap locals:
StackMap stack:
aload 3
ldc "not opened for reading"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
17: StackMap locals:
StackMap stack: java.io.IOException
astore 6
start local 6 18: aload 3
aload 6
invokestatic org.jruby.runtime.Helpers.newIOErrorFromException:(Lorg/jruby/Ruby;Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 6 19: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyIO$7.val$string:Lorg/jruby/RubyString;
iload 5
invokevirtual org.jruby.RubyString.setReadLength:(I)V
20: aload 0
getfield org.jruby.RubyIO$7.val$string:Lorg/jruby/RubyString;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/jruby/RubyIO$7;
0 21 1 context Lorg/jruby/runtime/ThreadContext;
0 21 2 channelFD Lorg/jruby/util/io/ChannelFD;
1 21 3 runtime Lorg/jruby/Ruby;
2 21 4 wrap Ljava/nio/ByteBuffer;
3 21 5 read I
18 19 6 ioe Ljava/io/IOException;
Exception table:
from to target type
3 17 17 Class java.io.IOException
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
context
channelFD
public void wakeup(org.jruby.RubyThread, org.jruby.util.io.ChannelFD);
descriptor: (Lorg/jruby/RubyThread;Lorg/jruby/util/io/ChannelFD;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.jruby.RubyThread.getNativeThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/RubyIO$7;
0 2 1 thread Lorg/jruby/RubyThread;
0 2 2 channelFD Lorg/jruby/util/io/ChannelFD;
MethodParameters:
Name Flags
thread
channelFD
public java.lang.Object run(org.jruby.runtime.ThreadContext, java.lang.Object);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
checkcast org.jruby.util.io.ChannelFD
invokevirtual org.jruby.RubyIO$7.run:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/util/io/ChannelFD;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.InterruptedException
public void wakeup(org.jruby.RubyThread, java.lang.Object);
descriptor: (Lorg/jruby/RubyThread;Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
checkcast org.jruby.util.io.ChannelFD
invokevirtual org.jruby.RubyIO$7.wakeup:(Lorg/jruby/RubyThread;Lorg/jruby/util/io/ChannelFD;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/jruby/RubyThread$Task<Lorg/jruby/util/io/ChannelFD;Lorg/jruby/runtime/builtin/IRubyObject;>;
SourceFile: "RubyIO.java"
EnclosingMethod: org.jruby.RubyIO.pread:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
NestHost: org.jruby.RubyIO
InnerClasses:
org.jruby.RubyIO$7
public abstract Task = org.jruby.RubyThread$Task of org.jruby.RubyThread