class sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask<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.WindowsAsynchronousSocketChannelImpl$ConnectTask
super_class: java.lang.Object
{
private final java.net.InetSocketAddress remote;
descriptor: Ljava/net/InetSocketAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final sun.nio.ch.PendingFuture<java.lang.Void, A> result;
descriptor: Lsun/nio/ch/PendingFuture;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lsun/nio/ch/PendingFuture<Ljava/lang/Void;TA;>;
final sun.nio.ch.WindowsAsynchronousSocketChannelImpl this$0;
descriptor: Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(java.net.InetSocketAddress, sun.nio.ch.PendingFuture<java.lang.Void, A>);
descriptor: (Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;Ljava/net/InetSocketAddress;Lsun/nio/ch/PendingFuture;)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 2 start local 3 0: aload 0
aload 1
putfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.remote:Ljava/net/InetSocketAddress;
2: aload 0
aload 3
putfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.result:Lsun/nio/ch/PendingFuture;
3: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl$ConnectTask<TA;>;
0 4 2 remote Ljava/net/InetSocketAddress;
0 4 3 result Lsun/nio/ch/PendingFuture<Ljava/lang/Void;TA;>;
Signature: (Ljava/net/InetSocketAddress;Lsun/nio/ch/PendingFuture<Ljava/lang/Void;TA;>;)V
MethodParameters:
Name Flags
this$0 final
remote
result
private void closeChannel();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.close:()V
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl$ConnectTask<TA;>;
Exception table:
from to target type
0 1 2 Class java.io.IOException
private java.io.IOException toIOException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/io/IOException;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.io.IOException
ifeq 4
1: aload 1
instanceof java.nio.channels.ClosedChannelException
ifeq 3
2: new java.nio.channels.AsynchronousCloseException
dup
invokespecial java.nio.channels.AsynchronousCloseException.<init>:()V
astore 1
3: StackMap locals:
StackMap stack:
aload 1
checkcast java.io.IOException
areturn
4: StackMap locals:
StackMap stack:
new java.io.IOException
dup
aload 1
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl$ConnectTask<TA;>;
0 5 1 x Ljava/lang/Throwable;
MethodParameters:
Name Flags
x
private void afterConnect();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl.handle:J
invokestatic sun.nio.ch.WindowsAsynchronousSocketChannelImpl.updateConnectContext:(J)V
1: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 1
monitorenter
2: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
iconst_2
putfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl.state:I
3: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.remote:Ljava/net/InetSocketAddress;
putfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl.remoteAddress:Ljava/net/InetSocketAddress;
4: aload 1
monitorexit
5: goto 8
StackMap locals: sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask java.lang.Object
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl$ConnectTask<TA;>;
Exception table:
from to target type
2 5 6 any
6 7 6 any
Exceptions:
throws java.io.IOException
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aconst_null
astore 3
start local 3 2: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.begin:()V
3: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.result:Lsun/nio/ch/PendingFuture;
dup
astore 4
monitorenter
4: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl.ioCache:Lsun/nio/ch/PendingIoCache;
aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.result:Lsun/nio/ch/PendingFuture;
invokevirtual sun.nio.ch.PendingIoCache.add:(Lsun/nio/ch/PendingFuture;)J
lstore 1
5: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl.handle:J
invokestatic sun.nio.ch.Net.isIPv6Available:()Z
aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.remote:Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
6: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.remote:Ljava/net/InetSocketAddress;
invokevirtual java.net.InetSocketAddress.getPort:()I
lload 1
7: invokestatic sun.nio.ch.WindowsAsynchronousSocketChannelImpl.connect0:(JZLjava/net/InetAddress;IJ)I
istore 5
start local 5 8: iload 5
bipush -2
if_icmpne 11
9: aload 4
monitorexit
10: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.end:()V
return
11: StackMap locals: sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask long java.lang.Throwable sun.nio.ch.PendingFuture int
StackMap stack:
aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.afterConnect:()V
12: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.result:Lsun/nio/ch/PendingFuture;
aconst_null
invokevirtual sun.nio.ch.PendingFuture.setResult:(Ljava/lang/Object;)V
end local 5 13: aload 4
monitorexit
14: goto 25
StackMap locals: sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask long java.lang.Throwable sun.nio.ch.PendingFuture
StackMap stack: java.lang.Throwable
15: aload 4
monitorexit
16: athrow
17: StackMap locals: sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask long java.lang.Throwable
StackMap stack: java.lang.Throwable
astore 4
start local 4 18: lload 1
lconst_0
lcmp
ifeq 20
19: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl.ioCache:Lsun/nio/ch/PendingIoCache;
lload 1
invokevirtual sun.nio.ch.PendingIoCache.remove:(J)Lsun/nio/ch/PendingFuture;
pop
20: StackMap locals: java.lang.Throwable
StackMap stack:
aload 4
astore 3
end local 4 21: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.end:()V
goto 26
22: StackMap locals: sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask long java.lang.Throwable
StackMap stack: java.lang.Throwable
astore 6
23: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.end:()V
24: aload 6
athrow
25: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.end:()V
26: StackMap locals:
StackMap stack:
aload 3
ifnull 29
27: aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.closeChannel:()V
28: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.result:Lsun/nio/ch/PendingFuture;
aload 0
aload 3
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.toIOException:(Ljava/lang/Throwable;)Ljava/io/IOException;
invokevirtual sun.nio.ch.PendingFuture.setFailure:(Ljava/lang/Throwable;)V
29: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.result:Lsun/nio/ch/PendingFuture;
invokestatic sun.nio.ch.Invoker.invoke:(Lsun/nio/ch/PendingFuture;)V
30: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl$ConnectTask<TA;>;
1 31 1 overlapped J
2 31 3 exc Ljava/lang/Throwable;
8 13 5 n I
18 21 4 x Ljava/lang/Throwable;
Exception table:
from to target type
4 10 15 any
11 14 15 any
15 16 15 any
2 10 17 Class java.lang.Throwable
11 17 17 Class java.lang.Throwable
2 10 22 any
11 21 22 any
public void completed(int, boolean);
descriptor: (IZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.begin:()V
2: aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.afterConnect:()V
3: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.result:Lsun/nio/ch/PendingFuture;
aconst_null
invokevirtual sun.nio.ch.PendingFuture.setResult:(Ljava/lang/Object;)V
4: goto 11
StackMap locals: sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask int int java.lang.Throwable
StackMap stack: java.lang.Throwable
5: astore 4
start local 4 6: aload 4
astore 3
end local 4 7: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.end:()V
goto 12
8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
9: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.end:()V
10: aload 5
athrow
11: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.end:()V
12: StackMap locals:
StackMap stack:
aload 3
ifnull 15
13: aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.closeChannel:()V
14: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.result:Lsun/nio/ch/PendingFuture;
aload 0
aload 3
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.toIOException:(Ljava/lang/Throwable;)Ljava/io/IOException;
invokevirtual sun.nio.ch.PendingFuture.setFailure:(Ljava/lang/Throwable;)V
15: StackMap locals:
StackMap stack:
iload 2
ifeq 18
16: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.result:Lsun/nio/ch/PendingFuture;
invokestatic sun.nio.ch.Invoker.invokeUnchecked:(Lsun/nio/ch/PendingFuture;)V
17: goto 19
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.result:Lsun/nio/ch/PendingFuture;
invokestatic sun.nio.ch.Invoker.invoke:(Lsun/nio/ch/PendingFuture;)V
19: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl$ConnectTask<TA;>;
0 20 1 bytesTransferred I
0 20 2 canInvokeDirect Z
1 20 3 exc Ljava/lang/Throwable;
6 7 4 x Ljava/lang/Throwable;
Exception table:
from to target type
1 4 5 Class java.lang.Throwable
1 7 8 any
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
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.this$0:Lsun/nio/ch/WindowsAsynchronousSocketChannelImpl;
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl.isOpen:()Z
ifeq 4
1: aload 0
invokevirtual sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.closeChannel:()V
2: aload 0
getfield sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask.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.WindowsAsynchronousSocketChannelImpl$ConnectTask.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.WindowsAsynchronousSocketChannelImpl$ConnectTask.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/WindowsAsynchronousSocketChannelImpl$ConnectTask<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: "WindowsAsynchronousSocketChannelImpl.java"
NestHost: sun.nio.ch.WindowsAsynchronousSocketChannelImpl
InnerClasses:
abstract ResultHandler = sun.nio.ch.Iocp$ResultHandler of sun.nio.ch.Iocp
private ConnectTask = sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ConnectTask of sun.nio.ch.WindowsAsynchronousSocketChannelImpl