class sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask<A> implements java.lang.Runnable, sun.nio.ch.Iocp$ResultHandler
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask
super_class: java.lang.Object
{
private final java.nio.ByteBuffer dst;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int pos;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int rem;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long position;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final sun.nio.ch.PendingFuture<java.lang.Integer, A> result;
descriptor: Lsun/nio/ch/PendingFuture;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lsun/nio/ch/PendingFuture<Ljava/lang/Integer;TA;>;
private volatile java.nio.ByteBuffer buf;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
final sun.nio.ch.WindowsAsynchronousFileChannelImpl this$0;
descriptor: Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(java.nio.ByteBuffer, int, int, long, sun.nio.ch.PendingFuture<java.lang.Integer, A>);
descriptor: (Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;Ljava/nio/ByteBuffer;IIJLsun/nio/ch/PendingFuture;)V
flags: (0x0000)
Code:
stack=3, locals=8, args_size=7
start local 0 start local 2 start local 3 start local 4 start local 5 start local 7 0: aload 0
aload 1
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
1: aload 0
invokespecial java.lang.Object.<init>:()V
2: aload 0
aload 2
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.dst:Ljava/nio/ByteBuffer;
3: aload 0
iload 3
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.pos:I
4: aload 0
iload 4
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.rem:I
5: aload 0
lload 5
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.position:J
6: aload 0
aload 7
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
7: return
end local 7 end local 5 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/WindowsAsynchronousFileChannelImpl$ReadTask<TA;>;
0 8 2 dst Ljava/nio/ByteBuffer;
0 8 3 pos I
0 8 4 rem I
0 8 5 position J
0 8 7 result Lsun/nio/ch/PendingFuture<Ljava/lang/Integer;TA;>;
Signature: (Ljava/nio/ByteBuffer;IIJLsun/nio/ch/PendingFuture<Ljava/lang/Integer;TA;>;)V
MethodParameters:
Name Flags
this$0 final
dst
pos
rem
position
result
void releaseBufferIfSubstituted();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.buf:Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.dst:Ljava/nio/ByteBuffer;
if_acmpeq 2
1: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.buf:Ljava/nio/ByteBuffer;
invokestatic sun.nio.ch.Util.releaseTemporaryDirectBuffer:(Ljava/nio/ByteBuffer;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/WindowsAsynchronousFileChannelImpl$ReadTask<TA;>;
void updatePosition(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifle 10
1: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.buf:Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.dst:Ljava/nio/ByteBuffer;
if_acmpne 6
2: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.dst:Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.pos:I
iload 1
iadd
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
3: goto 10
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
4: pop
5: goto 10
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.buf:Ljava/nio/ByteBuffer;
iload 1
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
invokevirtual java.nio.Buffer.flip:()Ljava/nio/Buffer;
pop
7: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.dst:Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.buf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
8: goto 10
StackMap locals:
StackMap stack: java.nio.BufferOverflowException
9: pop
10: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/nio/ch/WindowsAsynchronousFileChannelImpl$ReadTask<TA;>;
0 11 1 bytesTransferred I
Exception table:
from to target type
2 3 4 Class java.lang.IllegalArgumentException
7 8 9 Class java.nio.BufferOverflowException
MethodParameters:
Name Flags
bytesTransferred
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=9, args_size=1
start local 0 0: iconst_m1
istore 1
start local 1 1: lconst_0
lstore 2
start local 2 2: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.dst:Ljava/nio/ByteBuffer;
instanceof sun.nio.ch.DirectBuffer
ifeq 6
3: aload 0
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.dst:Ljava/nio/ByteBuffer;
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.buf:Ljava/nio/ByteBuffer;
4: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.dst:Ljava/nio/ByteBuffer;
checkcast sun.nio.ch.DirectBuffer
invokeinterface sun.nio.ch.DirectBuffer.address:()J
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.pos:I
i2l
ladd
lstore 4
start local 4 5: goto 8
end local 4 6: StackMap locals: int long
StackMap stack:
aload 0
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.rem:I
invokestatic sun.nio.ch.Util.getTemporaryDirectBuffer:(I)Ljava/nio/ByteBuffer;
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.buf:Ljava/nio/ByteBuffer;
7: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.buf:Ljava/nio/ByteBuffer;
checkcast sun.nio.ch.DirectBuffer
invokeinterface sun.nio.ch.DirectBuffer.address:()J
lstore 4
start local 4 8: StackMap locals: long
StackMap stack:
iconst_0
istore 6
start local 6 9: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.begin:()V
10: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl.ioCache:Lsun/nio/ch/PendingIoCache;
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
invokevirtual sun.nio.ch.PendingIoCache.add:(Lsun/nio/ch/PendingFuture;)J
lstore 2
11: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl.handle:J
lload 4
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.rem:I
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.position:J
lload 2
invokestatic sun.nio.ch.WindowsAsynchronousFileChannelImpl.readFile:(JJIJJ)I
istore 1
12: iload 1
bipush -2
if_icmpne 20
13: iconst_1
istore 6
14: iload 6
ifne 18
15: lload 2
lconst_0
lcmp
ifeq 17
16: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl.ioCache:Lsun/nio/ch/PendingIoCache;
lload 2
invokevirtual sun.nio.ch.PendingIoCache.remove:(J)Lsun/nio/ch/PendingFuture;
pop
17: StackMap locals: int
StackMap stack:
aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.releaseBufferIfSubstituted:()V
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.end:()V
19: return
20: StackMap locals:
StackMap stack:
iload 1
iconst_m1
if_icmpne 23
21: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual sun.nio.ch.PendingFuture.setResult:(Ljava/lang/Object;)V
22: goto 38
23: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Unexpected result: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
start local 7 25: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
aload 7
invokestatic sun.nio.ch.WindowsAsynchronousFileChannelImpl.toIOException:(Ljava/lang/Throwable;)Ljava/io/IOException;
invokevirtual sun.nio.ch.PendingFuture.setFailure:(Ljava/lang/Throwable;)V
end local 7 26: iload 6
ifne 30
27: lload 2
lconst_0
lcmp
ifeq 29
28: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl.ioCache:Lsun/nio/ch/PendingIoCache;
lload 2
invokevirtual sun.nio.ch.PendingIoCache.remove:(J)Lsun/nio/ch/PendingFuture;
pop
29: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.releaseBufferIfSubstituted:()V
30: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.end:()V
goto 43
31: StackMap locals:
StackMap stack: java.lang.Throwable
astore 8
32: iload 6
ifne 36
33: lload 2
lconst_0
lcmp
ifeq 35
34: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl.ioCache:Lsun/nio/ch/PendingIoCache;
lload 2
invokevirtual sun.nio.ch.PendingIoCache.remove:(J)Lsun/nio/ch/PendingFuture;
pop
35: StackMap locals: sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask int long long int top java.lang.Throwable
StackMap stack:
aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.releaseBufferIfSubstituted:()V
36: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.end:()V
37: aload 8
athrow
38: StackMap locals: sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask int long long int
StackMap stack:
iload 6
ifne 42
39: lload 2
lconst_0
lcmp
ifeq 41
40: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl.ioCache:Lsun/nio/ch/PendingIoCache;
lload 2
invokevirtual sun.nio.ch.PendingIoCache.remove:(J)Lsun/nio/ch/PendingFuture;
pop
41: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.releaseBufferIfSubstituted:()V
42: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.end:()V
43: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
invokestatic sun.nio.ch.Invoker.invoke:(Lsun/nio/ch/PendingFuture;)V
44: return
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 this Lsun/nio/ch/WindowsAsynchronousFileChannelImpl$ReadTask<TA;>;
1 45 1 n I
2 45 2 overlapped J
5 6 4 address J
8 45 4 address J
9 45 6 pending Z
25 26 7 x Ljava/lang/Throwable;
Exception table:
from to target type
9 14 24 Class java.lang.Throwable
20 24 24 Class java.lang.Throwable
9 14 31 any
20 26 31 any
public void completed(int, boolean);
descriptor: (IZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.updatePosition:(I)V
1: aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.releaseBufferIfSubstituted:()V
2: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual sun.nio.ch.PendingFuture.setResult:(Ljava/lang/Object;)V
3: iload 2
ifeq 6
4: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
invokestatic sun.nio.ch.Invoker.invokeUnchecked:(Lsun/nio/ch/PendingFuture;)V
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
invokestatic sun.nio.ch.Invoker.invoke:(Lsun/nio/ch/PendingFuture;)V
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/WindowsAsynchronousFileChannelImpl$ReadTask<TA;>;
0 8 1 bytesTransferred I
0 8 2 canInvokeDirect Z
MethodParameters:
Name Flags
bytesTransferred
canInvokeDirect
public void failed(int, java.io.IOException);
descriptor: (ILjava/io/IOException;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
bipush 38
if_icmpne 3
1: aload 0
iconst_m1
iconst_0
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.completed:(IZ)V
2: goto 9
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.releaseBufferIfSubstituted:()V
4: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.isOpen:()Z
ifeq 7
5: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
aload 2
invokevirtual sun.nio.ch.PendingFuture.setFailure:(Ljava/lang/Throwable;)V
6: goto 8
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
new java.nio.channels.AsynchronousCloseException
dup
invokespecial java.nio.channels.AsynchronousCloseException.<init>:()V
invokevirtual sun.nio.ch.PendingFuture.setFailure:(Ljava/lang/Throwable;)V
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask.result:Lsun/nio/ch/PendingFuture;
invokestatic sun.nio.ch.Invoker.invoke:(Lsun/nio/ch/PendingFuture;)V
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/WindowsAsynchronousFileChannelImpl$ReadTask<TA;>;
0 10 1 error I
0 10 2 x Ljava/io/IOException;
MethodParameters:
Name Flags
error
x
}
Signature: <A:Ljava/lang/Object;>Ljava/lang/Object;Ljava/lang/Runnable;Lsun/nio/ch/Iocp$ResultHandler;
SourceFile: "WindowsAsynchronousFileChannelImpl.java"
NestHost: sun.nio.ch.WindowsAsynchronousFileChannelImpl
InnerClasses:
abstract ResultHandler = sun.nio.ch.Iocp$ResultHandler of sun.nio.ch.Iocp
private ReadTask = sun.nio.ch.WindowsAsynchronousFileChannelImpl$ReadTask of sun.nio.ch.WindowsAsynchronousFileChannelImpl