class sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask<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$WriteTask
super_class: java.lang.Object
{
private final java.nio.ByteBuffer src;
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$WriteTask.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$WriteTask.src:Ljava/nio/ByteBuffer;
3: aload 0
iload 3
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.pos:I
4: aload 0
iload 4
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.rem:I
5: aload 0
lload 5
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.position:J
6: aload 0
aload 7
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.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$WriteTask<TA;>;
0 8 2 src 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
src
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$WriteTask.buf:Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.src:Ljava/nio/ByteBuffer;
if_acmpeq 2
1: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.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$WriteTask<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 4
1: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.src:Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.pos:I
iload 1
iadd
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
2: goto 4
StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
3: pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/WindowsAsynchronousFileChannelImpl$WriteTask<TA;>;
0 5 1 bytesTransferred I
Exception table:
from to target type
1 2 3 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
bytesTransferred
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=9, locals=8, 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$WriteTask.src:Ljava/nio/ByteBuffer;
instanceof sun.nio.ch.DirectBuffer
ifeq 6
3: aload 0
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.src:Ljava/nio/ByteBuffer;
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.buf:Ljava/nio/ByteBuffer;
4: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.src:Ljava/nio/ByteBuffer;
checkcast sun.nio.ch.DirectBuffer
invokeinterface sun.nio.ch.DirectBuffer.address:()J
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.pos:I
i2l
ladd
lstore 4
start local 4 5: goto 11
end local 4 6: StackMap locals: int long
StackMap stack:
aload 0
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.rem:I
invokestatic sun.nio.ch.Util.getTemporaryDirectBuffer:(I)Ljava/nio/ByteBuffer;
putfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.buf:Ljava/nio/ByteBuffer;
7: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.buf:Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.src:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
8: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.buf:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
9: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.src:Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.pos:I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
10: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.buf:Ljava/nio/ByteBuffer;
checkcast sun.nio.ch.DirectBuffer
invokeinterface sun.nio.ch.DirectBuffer.address:()J
lstore 4
start local 4 11: StackMap locals: long
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.begin:()V
12: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl.ioCache:Lsun/nio/ch/PendingIoCache;
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.result:Lsun/nio/ch/PendingFuture;
invokevirtual sun.nio.ch.PendingIoCache.add:(Lsun/nio/ch/PendingFuture;)J
lstore 2
13: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl.handle:J
lload 4
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.rem:I
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.position:J
lload 2
invokestatic sun.nio.ch.WindowsAsynchronousFileChannelImpl.writeFile:(JJIJJ)I
istore 1
14: iload 1
bipush -2
if_icmpne 17
15: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.end:()V
16: return
17: 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
18: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
start local 6 19: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.result:Lsun/nio/ch/PendingFuture;
aload 6
invokestatic sun.nio.ch.WindowsAsynchronousFileChannelImpl.toIOException:(Ljava/lang/Throwable;)Ljava/io/IOException;
invokevirtual sun.nio.ch.PendingFuture.setFailure:(Ljava/lang/Throwable;)V
20: lload 2
lconst_0
lcmp
ifeq 22
21: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.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
22: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.releaseBufferIfSubstituted:()V
end local 6 23: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.end:()V
goto 27
24: StackMap locals: sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask int long long
StackMap stack: java.lang.Throwable
astore 7
25: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.end:()V
26: aload 7
athrow
27: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.result:Lsun/nio/ch/PendingFuture;
invokestatic sun.nio.ch.Invoker.invoke:(Lsun/nio/ch/PendingFuture;)V
28: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lsun/nio/ch/WindowsAsynchronousFileChannelImpl$WriteTask<TA;>;
1 29 1 n I
2 29 2 overlapped J
5 6 4 address J
11 29 4 address J
19 23 6 x Ljava/lang/Throwable;
Exception table:
from to target type
11 15 18 Class java.lang.Throwable
17 18 18 Class java.lang.Throwable
11 15 24 any
17 23 24 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$WriteTask.updatePosition:(I)V
1: aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.releaseBufferIfSubstituted:()V
2: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.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$WriteTask.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$WriteTask.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$WriteTask<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: aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.releaseBufferIfSubstituted:()V
1: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.this$0:Lsun/nio/ch/WindowsAsynchronousFileChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousFileChannelImpl.isOpen:()Z
ifeq 4
2: aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.result:Lsun/nio/ch/PendingFuture;
aload 2
invokevirtual sun.nio.ch.PendingFuture.setFailure:(Ljava/lang/Throwable;)V
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.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
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask.result:Lsun/nio/ch/PendingFuture;
invokestatic sun.nio.ch.Invoker.invoke:(Lsun/nio/ch/PendingFuture;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/WindowsAsynchronousFileChannelImpl$WriteTask<TA;>;
0 7 1 error I
0 7 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 WriteTask = sun.nio.ch.WindowsAsynchronousFileChannelImpl$WriteTask of sun.nio.ch.WindowsAsynchronousFileChannelImpl