class sun.nio.ch.SourceChannelImpl extends java.nio.channels.Pipe$SourceChannel implements sun.nio.ch.SelChImpl
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.SourceChannelImpl
super_class: java.nio.channels.Pipe$SourceChannel
{
private static final sun.nio.ch.NativeDispatcher nd;
descriptor: Lsun/nio/ch/NativeDispatcher;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.io.FileDescriptor fd;
descriptor: Ljava/io/FileDescriptor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int fdVal;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.locks.ReentrantLock readLock;
descriptor: Ljava/util/concurrent/locks/ReentrantLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object stateLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final int ST_INUSE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int ST_CLOSING;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int ST_KILLPENDING;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int ST_KILLED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private int state;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private long thread;
descriptor: J
flags: (0x0002) ACC_PRIVATE
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=2, locals=0, args_size=0
0: ldc Lsun/nio/ch/SourceChannelImpl;
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 sun.nio.ch.SourceChannelImpl.$assertionsDisabled:Z
3: new sun.nio.ch.FileDispatcherImpl
dup
invokespecial sun.nio.ch.FileDispatcherImpl.<init>:()V
putstatic sun.nio.ch.SourceChannelImpl.nd:Lsun/nio/ch/NativeDispatcher;
4: return
LocalVariableTable:
Start End Slot Name Signature
public java.io.FileDescriptor getFD();
descriptor: ()Ljava/io/FileDescriptor;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SourceChannelImpl.fd:Ljava/io/FileDescriptor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SourceChannelImpl;
public int getFDVal();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SourceChannelImpl.fdVal:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SourceChannelImpl;
void <init>(java.nio.channels.spi.SelectorProvider, java.io.FileDescriptor);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;Ljava/io/FileDescriptor;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.nio.channels.Pipe$SourceChannel.<init>:(Ljava/nio/channels/spi/SelectorProvider;)V
1: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.SourceChannelImpl.stateLock:Ljava/lang/Object;
3: aload 0
aload 2
putfield sun.nio.ch.SourceChannelImpl.fd:Ljava/io/FileDescriptor;
4: aload 0
aload 2
invokestatic sun.nio.ch.IOUtil.fdVal:(Ljava/io/FileDescriptor;)I
putfield sun.nio.ch.SourceChannelImpl.fdVal:I
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/SourceChannelImpl;
0 6 1 sp Ljava/nio/channels/spi/SelectorProvider;
0 6 2 fd Ljava/io/FileDescriptor;
MethodParameters:
Name Flags
sp
fd
protected void implCloseSelectableChannel();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=1
start local 0 0: getstatic sun.nio.ch.SourceChannelImpl.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual sun.nio.ch.SourceChannelImpl.isOpen:()Z
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 2: aload 0
getfield sun.nio.ch.SourceChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
3: getstatic sun.nio.ch.SourceChannelImpl.$assertionsDisabled:Z
ifne 4
aload 0
getfield sun.nio.ch.SourceChannelImpl.state:I
iconst_1
if_icmplt 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: sun.nio.ch.SourceChannelImpl int top java.lang.Object
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.SourceChannelImpl.state:I
5: aload 0
invokevirtual sun.nio.ch.SourceChannelImpl.isBlocking:()Z
istore 2
start local 2 6: aload 3
monitorexit
7: goto 10
end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 3
monitorexit
9: athrow
start local 2 10: StackMap locals: sun.nio.ch.SourceChannelImpl int int
StackMap stack:
iload 2
ifeq 27
11: aload 0
getfield sun.nio.ch.SourceChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
12: getstatic sun.nio.ch.SourceChannelImpl.$assertionsDisabled:Z
ifne 13
aload 0
getfield sun.nio.ch.SourceChannelImpl.state:I
iconst_1
if_icmpeq 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.SourceChannelImpl.thread:J
lstore 4
start local 4 14: lload 4
lconst_0
lcmp
ifeq 23
15: getstatic sun.nio.ch.SourceChannelImpl.nd:Lsun/nio/ch/NativeDispatcher;
aload 0
getfield sun.nio.ch.SourceChannelImpl.fd:Ljava/io/FileDescriptor;
invokevirtual sun.nio.ch.NativeDispatcher.preClose:(Ljava/io/FileDescriptor;)V
16: lload 4
invokestatic sun.nio.ch.NativeThread.signal:(J)V
17: goto 22
18: StackMap locals: long
StackMap stack:
aload 0
getfield sun.nio.ch.SourceChannelImpl.stateLock:Ljava/lang/Object;
invokevirtual java.lang.Object.wait:()V
19: goto 22
StackMap locals:
StackMap stack: java.lang.InterruptedException
20: pop
21: iconst_1
istore 1
22: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SourceChannelImpl.thread:J
lconst_0
lcmp
ifne 18
end local 4 23: StackMap locals:
StackMap stack:
aload 3
monitorexit
24: goto 29
StackMap locals:
StackMap stack: java.lang.Throwable
25: aload 3
monitorexit
26: athrow
27: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
28: aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
29: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SourceChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
30: getstatic sun.nio.ch.SourceChannelImpl.$assertionsDisabled:Z
ifne 31
aload 0
getfield sun.nio.ch.SourceChannelImpl.state:I
iconst_1
if_icmpeq 31
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
31: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iconst_2
putfield sun.nio.ch.SourceChannelImpl.state:I
32: aload 3
monitorexit
33: goto 36
StackMap locals:
StackMap stack: java.lang.Throwable
34: aload 3
monitorexit
35: athrow
36: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.SourceChannelImpl.isRegistered:()Z
ifne 38
37: aload 0
invokevirtual sun.nio.ch.SourceChannelImpl.kill:()V
38: StackMap locals:
StackMap stack:
iload 1
ifeq 40
39: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
40: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Lsun/nio/ch/SourceChannelImpl;
2 41 1 interrupted Z
6 8 2 blocking Z
10 41 2 blocking Z
14 23 4 th J
Exception table:
from to target type
3 7 8 any
8 9 8 any
18 19 20 Class java.lang.InterruptedException
12 24 25 any
25 26 25 any
30 33 34 any
34 35 34 any
Exceptions:
throws java.io.IOException
public void kill();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SourceChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: getstatic sun.nio.ch.SourceChannelImpl.$assertionsDisabled:Z
ifne 2
aload 0
getfield sun.nio.ch.SourceChannelImpl.thread:J
lconst_0
lcmp
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.SourceChannelImpl.state:I
iconst_2
if_icmpne 5
3: aload 0
iconst_3
putfield sun.nio.ch.SourceChannelImpl.state:I
4: getstatic sun.nio.ch.SourceChannelImpl.nd:Lsun/nio/ch/NativeDispatcher;
aload 0
getfield sun.nio.ch.SourceChannelImpl.fd:Ljava/io/FileDescriptor;
invokevirtual sun.nio.ch.NativeDispatcher.close:(Ljava/io/FileDescriptor;)V
5: StackMap locals:
StackMap stack:
aload 1
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 1
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/SourceChannelImpl;
Exception table:
from to target type
1 6 7 any
7 8 7 any
Exceptions:
throws java.io.IOException
protected void implConfigureBlocking(boolean);
descriptor: (Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
1: aload 0
getfield sun.nio.ch.SourceChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
2: aload 0
getfield sun.nio.ch.SourceChannelImpl.fd:Ljava/io/FileDescriptor;
iload 1
invokestatic sun.nio.ch.IOUtil.configureBlocking:(Ljava/io/FileDescriptor;Z)V
3: aload 2
monitorexit
4: goto 10
StackMap locals: sun.nio.ch.SourceChannelImpl int java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals: sun.nio.ch.SourceChannelImpl int
StackMap stack: java.lang.Throwable
astore 3
8: aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
9: aload 3
athrow
10: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/ch/SourceChannelImpl;
0 12 1 block Z
Exception table:
from to target type
2 4 5 any
5 6 5 any
1 7 7 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
block
public boolean translateReadyOps(int, int, sun.nio.ch.SelectionKeyImpl);
descriptor: (IILsun/nio/ch/SelectionKeyImpl;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokevirtual sun.nio.ch.SelectionKeyImpl.nioInterestOps:()I
istore 4
start local 4 1: aload 3
invokevirtual sun.nio.ch.SelectionKeyImpl.nioReadyOps:()I
istore 5
start local 5 2: iload 2
istore 6
start local 6 3: iload 1
getstatic sun.nio.ch.Net.POLLNVAL:S
iand
ifeq 5
4: new java.lang.Error
dup
ldc "POLLNVAL detected"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: int int int
StackMap stack:
iload 1
getstatic sun.nio.ch.Net.POLLERR:S
getstatic sun.nio.ch.Net.POLLHUP:S
ior
iand
ifeq 10
6: iload 4
istore 6
7: aload 3
iload 6
invokevirtual sun.nio.ch.SelectionKeyImpl.nioReadyOps:(I)V
8: iload 6
iload 5
iconst_m1
ixor
iand
ifeq 9
iconst_1
ireturn
StackMap locals:
StackMap stack:
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
iload 1
getstatic sun.nio.ch.Net.POLLIN:S
iand
ifeq 13
11: iload 4
iconst_1
iand
ifeq 13
12: iload 6
iconst_1
ior
istore 6
13: StackMap locals:
StackMap stack:
aload 3
iload 6
invokevirtual sun.nio.ch.SelectionKeyImpl.nioReadyOps:(I)V
14: iload 6
iload 5
iconst_m1
ixor
iand
ifeq 15
iconst_1
ireturn
StackMap locals:
StackMap stack:
15: iconst_0
ireturn
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 16 0 this Lsun/nio/ch/SourceChannelImpl;
0 16 1 ops I
0 16 2 initialOps I
0 16 3 ski Lsun/nio/ch/SelectionKeyImpl;
1 16 4 intOps I
2 16 5 oldOps I
3 16 6 newOps I
MethodParameters:
Name Flags
ops
initialOps
ski
public boolean translateAndUpdateReadyOps(int, sun.nio.ch.SelectionKeyImpl);
descriptor: (ILsun/nio/ch/SelectionKeyImpl;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
invokevirtual sun.nio.ch.SelectionKeyImpl.nioReadyOps:()I
aload 2
invokevirtual sun.nio.ch.SourceChannelImpl.translateReadyOps:(IILsun/nio/ch/SelectionKeyImpl;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SourceChannelImpl;
0 1 1 ops I
0 1 2 ski Lsun/nio/ch/SelectionKeyImpl;
MethodParameters:
Name Flags
ops
ski
public boolean translateAndSetReadyOps(int, sun.nio.ch.SelectionKeyImpl);
descriptor: (ILsun/nio/ch/SelectionKeyImpl;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iconst_0
aload 2
invokevirtual sun.nio.ch.SourceChannelImpl.translateReadyOps:(IILsun/nio/ch/SelectionKeyImpl;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SourceChannelImpl;
0 1 1 ops I
0 1 2 ski Lsun/nio/ch/SelectionKeyImpl;
MethodParameters:
Name Flags
ops
ski
public int translateInterestOps(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: iload 1
iconst_1
if_icmpne 3
2: iload 2
getstatic sun.nio.ch.Net.POLLIN:S
ior
istore 2
3: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/SourceChannelImpl;
0 4 1 ops I
1 4 2 newOps I
MethodParameters:
Name Flags
ops
private void beginRead(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
1: aload 0
invokevirtual sun.nio.ch.SourceChannelImpl.begin:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SourceChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
3: aload 0
invokevirtual sun.nio.ch.SourceChannelImpl.isOpen:()Z
ifne 5
4: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
5: StackMap locals: java.lang.Object
StackMap stack:
iload 1
ifeq 7
6: aload 0
invokestatic sun.nio.ch.NativeThread.current:()J
putfield sun.nio.ch.SourceChannelImpl.thread:J
7: StackMap locals:
StackMap stack:
aload 2
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/ch/SourceChannelImpl;
0 12 1 blocking Z
Exception table:
from to target type
3 8 9 any
9 10 9 any
Exceptions:
throws java.nio.channels.ClosedChannelException
MethodParameters:
Name Flags
blocking
private void endRead(boolean, boolean);
descriptor: (ZZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifeq 10
1: aload 0
getfield sun.nio.ch.SourceChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
2: aload 0
lconst_0
putfield sun.nio.ch.SourceChannelImpl.thread:J
3: aload 0
getfield sun.nio.ch.SourceChannelImpl.state:I
iconst_1
if_icmpne 5
4: aload 0
getfield sun.nio.ch.SourceChannelImpl.stateLock:Ljava/lang/Object;
invokevirtual java.lang.Object.notifyAll:()V
5: StackMap locals: java.lang.Object
StackMap stack:
aload 3
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 3
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
aload 0
iload 2
invokevirtual sun.nio.ch.SourceChannelImpl.end:(Z)V
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/nio/ch/SourceChannelImpl;
0 11 1 blocking Z
0 11 2 completed Z
Exception table:
from to target type
2 6 7 any
7 8 7 any
Exceptions:
throws java.nio.channels.AsynchronousCloseException
MethodParameters:
Name Flags
blocking
completed
public int read(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
invokevirtual sun.nio.ch.SourceChannelImpl.isBlocking:()Z
istore 2
start local 2 3: iconst_0
istore 3
start local 3 4: aload 0
iload 2
invokevirtual sun.nio.ch.SourceChannelImpl.beginRead:(Z)V
5: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.nio.ch.SourceChannelImpl.fd:Ljava/io/FileDescriptor;
aload 1
ldc -1
getstatic sun.nio.ch.SourceChannelImpl.nd:Lsun/nio/ch/NativeDispatcher;
invokestatic sun.nio.ch.IOUtil.read:(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;JLsun/nio/ch/NativeDispatcher;)I
istore 3
6: iload 3
bipush -3
if_icmpne 14
aload 0
invokevirtual sun.nio.ch.SourceChannelImpl.isOpen:()Z
ifne 5
7: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 4
9: aload 0
iload 2
iload 3
ifle 10
iconst_1
goto 11
StackMap locals: sun.nio.ch.SourceChannelImpl java.nio.ByteBuffer int int java.lang.Throwable
StackMap stack: sun.nio.ch.SourceChannelImpl int
10: iconst_0
StackMap locals: sun.nio.ch.SourceChannelImpl java.nio.ByteBuffer int int java.lang.Throwable
StackMap stack: sun.nio.ch.SourceChannelImpl int int
11: invokevirtual sun.nio.ch.SourceChannelImpl.endRead:(ZZ)V
12: getstatic sun.nio.ch.SourceChannelImpl.$assertionsDisabled:Z
ifne 13
iload 3
invokestatic sun.nio.ch.IOStatus.check:(I)Z
ifne 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals:
StackMap stack:
aload 4
athrow
14: StackMap locals:
StackMap stack:
aload 0
iload 2
iload 3
ifle 15
iconst_1
goto 16
StackMap locals: sun.nio.ch.SourceChannelImpl java.nio.ByteBuffer int int
StackMap stack: sun.nio.ch.SourceChannelImpl int
15: iconst_0
StackMap locals: sun.nio.ch.SourceChannelImpl java.nio.ByteBuffer int int
StackMap stack: sun.nio.ch.SourceChannelImpl int int
16: invokevirtual sun.nio.ch.SourceChannelImpl.endRead:(ZZ)V
17: getstatic sun.nio.ch.SourceChannelImpl.$assertionsDisabled:Z
ifne 18
iload 3
invokestatic sun.nio.ch.IOStatus.check:(I)Z
ifne 18
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
18: StackMap locals:
StackMap stack:
iload 3
invokestatic sun.nio.ch.IOStatus.normalize:(I)I
istore 6
19: aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
20: iload 6
ireturn
end local 3 end local 2 21: StackMap locals: sun.nio.ch.SourceChannelImpl java.nio.ByteBuffer
StackMap stack: java.lang.Throwable
astore 5
22: aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
23: aload 5
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/nio/ch/SourceChannelImpl;
0 24 1 dst Ljava/nio/ByteBuffer;
3 21 2 blocking Z
4 21 3 n I
Exception table:
from to target type
4 8 8 any
2 19 21 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dst
public long read(java.nio.ByteBuffer[], int, int);
descriptor: ([Ljava/nio/ByteBuffer;II)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
aload 1
arraylength
invokestatic java.util.Objects.checkFromIndexSize:(III)I
pop
1: aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
2: aload 0
invokevirtual sun.nio.ch.SourceChannelImpl.isBlocking:()Z
istore 4
start local 4 3: lconst_0
lstore 5
start local 5 4: aload 0
iload 4
invokevirtual sun.nio.ch.SourceChannelImpl.beginRead:(Z)V
5: StackMap locals: int long
StackMap stack:
aload 0
getfield sun.nio.ch.SourceChannelImpl.fd:Ljava/io/FileDescriptor;
aload 1
iload 2
iload 3
getstatic sun.nio.ch.SourceChannelImpl.nd:Lsun/nio/ch/NativeDispatcher;
invokestatic sun.nio.ch.IOUtil.read:(Ljava/io/FileDescriptor;[Ljava/nio/ByteBuffer;IILsun/nio/ch/NativeDispatcher;)J
lstore 5
6: lload 5
ldc -3
lcmp
ifne 14
aload 0
invokevirtual sun.nio.ch.SourceChannelImpl.isOpen:()Z
ifne 5
7: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 7
9: aload 0
iload 4
lload 5
lconst_0
lcmp
ifle 10
iconst_1
goto 11
StackMap locals: sun.nio.ch.SourceChannelImpl java.nio.ByteBuffer[] int int int long java.lang.Throwable
StackMap stack: sun.nio.ch.SourceChannelImpl int
10: iconst_0
StackMap locals: sun.nio.ch.SourceChannelImpl java.nio.ByteBuffer[] int int int long java.lang.Throwable
StackMap stack: sun.nio.ch.SourceChannelImpl int int
11: invokevirtual sun.nio.ch.SourceChannelImpl.endRead:(ZZ)V
12: getstatic sun.nio.ch.SourceChannelImpl.$assertionsDisabled:Z
ifne 13
lload 5
invokestatic sun.nio.ch.IOStatus.check:(J)Z
ifne 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals:
StackMap stack:
aload 7
athrow
14: StackMap locals:
StackMap stack:
aload 0
iload 4
lload 5
lconst_0
lcmp
ifle 15
iconst_1
goto 16
StackMap locals: sun.nio.ch.SourceChannelImpl java.nio.ByteBuffer[] int int int long
StackMap stack: sun.nio.ch.SourceChannelImpl int
15: iconst_0
StackMap locals: sun.nio.ch.SourceChannelImpl java.nio.ByteBuffer[] int int int long
StackMap stack: sun.nio.ch.SourceChannelImpl int int
16: invokevirtual sun.nio.ch.SourceChannelImpl.endRead:(ZZ)V
17: getstatic sun.nio.ch.SourceChannelImpl.$assertionsDisabled:Z
ifne 18
lload 5
invokestatic sun.nio.ch.IOStatus.check:(J)Z
ifne 18
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
18: StackMap locals:
StackMap stack:
lload 5
invokestatic sun.nio.ch.IOStatus.normalize:(J)J
lstore 9
19: aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
20: lload 9
lreturn
end local 5 end local 4 21: StackMap locals: sun.nio.ch.SourceChannelImpl java.nio.ByteBuffer[] int int
StackMap stack: java.lang.Throwable
astore 8
22: aload 0
getfield sun.nio.ch.SourceChannelImpl.readLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
23: aload 8
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/nio/ch/SourceChannelImpl;
0 24 1 dsts [Ljava/nio/ByteBuffer;
0 24 2 offset I
0 24 3 length I
3 21 4 blocking Z
4 21 5 n J
Exception table:
from to target type
4 8 8 any
2 19 21 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dsts
offset
length
public long read(java.nio.ByteBuffer[]);
descriptor: ([Ljava/nio/ByteBuffer;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual sun.nio.ch.SourceChannelImpl.read:([Ljava/nio/ByteBuffer;II)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SourceChannelImpl;
0 1 1 dsts [Ljava/nio/ByteBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dsts
}
SourceFile: "SourceChannelImpl.java"
InnerClasses:
public abstract SourceChannel = java.nio.channels.Pipe$SourceChannel of java.nio.channels.Pipe