class org.jruby.RubyIO$8 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$8
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 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
void <init>(org.jruby.RubyIO, org.jruby.util.ByteList, org.jruby.util.io.ChannelFD, long);
descriptor: (Lorg/jruby/RubyIO;Lorg/jruby/util/ByteList;Lorg/jruby/util/io/ChannelFD;J)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=5
start local 0 0: aload 0
aload 1
putfield org.jruby.RubyIO$8.this$0:Lorg/jruby/RubyIO;
aload 0
aload 2
putfield org.jruby.RubyIO$8.val$strByteList:Lorg/jruby/util/ByteList;
aload 0
aload 3
putfield org.jruby.RubyIO$8.val$fd:Lorg/jruby/util/io/ChannelFD;
aload 0
lload 4
putfield org.jruby.RubyIO$8.val$off:J
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$8;
MethodParameters:
Name Flags
this$0 final
val$strByteList final
val$fd final
val$off 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=8, 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$8.val$strByteList:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.realSize:()I
istore 4
start local 4 2: aload 0
getfield org.jruby.RubyIO$8.val$strByteList:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.unsafeBytes:()[B
aload 0
getfield org.jruby.RubyIO$8.val$strByteList:Lorg/jruby/util/ByteList;
invokevirtual org.jruby.util.ByteList.begin:()I
iload 4
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
astore 5
start local 5 3: iconst_0
istore 6
start local 6 4: aload 0
getfield org.jruby.RubyIO$8.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chFile:Ljava/nio/channels/FileChannel;
ifnull 7
5: aload 0
getfield org.jruby.RubyIO$8.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chFile:Ljava/nio/channels/FileChannel;
aload 5
aload 0
getfield org.jruby.RubyIO$8.val$off:J
invokevirtual java.nio.channels.FileChannel.write:(Ljava/nio/ByteBuffer;J)I
istore 6
6: goto 16
StackMap locals: org.jruby.RubyIO$8 org.jruby.runtime.ThreadContext org.jruby.util.io.ChannelFD org.jruby.Ruby int java.nio.ByteBuffer int
StackMap stack:
7: aload 0
getfield org.jruby.RubyIO$8.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chNative:Ljnr/enxio/channels/NativeSelectableChannel;
ifnull 10
8: aload 3
invokevirtual org.jruby.Ruby.getPosix:()Ljnr/posix/POSIX;
aload 0
getfield org.jruby.RubyIO$8.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 5
iload 4
i2l
aload 0
getfield org.jruby.RubyIO$8.val$off:J
invokeinterface jnr.posix.POSIX.pwrite:(ILjava/nio/ByteBuffer;JJ)J
l2i
istore 6
9: goto 16
StackMap locals:
StackMap stack:
10: aload 0
getfield org.jruby.RubyIO$8.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chWrite:Ljava/nio/channels/WritableByteChannel;
ifnull 13
11: aload 0
getfield org.jruby.RubyIO$8.val$fd:Lorg/jruby/util/io/ChannelFD;
getfield org.jruby.util.io.ChannelFD.chWrite:Ljava/nio/channels/WritableByteChannel;
aload 5
invokeinterface java.nio.channels.WritableByteChannel.write:(Ljava/nio/ByteBuffer;)I
istore 6
12: goto 16
13: StackMap locals:
StackMap stack:
aload 3
ldc "not opened for writing"
invokevirtual org.jruby.Ruby.newIOError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
14: StackMap locals:
StackMap stack: java.io.IOException
astore 7
start local 7 15: aload 3
aload 7
invokestatic org.jruby.runtime.Helpers.newIOErrorFromException:(Lorg/jruby/Ruby;Ljava/io/IOException;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 7 16: StackMap locals:
StackMap stack:
aload 3
iload 6
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 6 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 17 0 this Lorg/jruby/RubyIO$8;
0 17 1 context Lorg/jruby/runtime/ThreadContext;
0 17 2 channelFD Lorg/jruby/util/io/ChannelFD;
1 17 3 runtime Lorg/jruby/Ruby;
2 17 4 length I
3 17 5 wrap Ljava/nio/ByteBuffer;
4 17 6 written I
15 16 7 ioe Ljava/io/IOException;
Exception table:
from to target type
4 14 14 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$8;
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$8.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$8.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.pwrite:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
NestHost: org.jruby.RubyIO
InnerClasses:
org.jruby.RubyIO$8
public abstract Task = org.jruby.RubyThread$Task of org.jruby.RubyThread