class sun.nio.ch.ServerSocketChannelImpl extends java.nio.channels.ServerSocketChannel implements sun.nio.ch.SelChImpl
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.ServerSocketChannelImpl
super_class: java.nio.channels.ServerSocketChannel
{
private static sun.nio.ch.NativeDispatcher nd;
descriptor: Lsun/nio/ch/NativeDispatcher;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private final java.io.FileDescriptor fd;
descriptor: Ljava/io/FileDescriptor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int fdVal;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private volatile long thread;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.lang.Object lock;
descriptor: Ljava/lang/Object;
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_UNINITIALIZED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private static final int ST_INUSE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int ST_KILLED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private int state;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.net.InetSocketAddress localAddress;
descriptor: Ljava/net/InetSocketAddress;
flags: (0x0002) ACC_PRIVATE
private sun.nio.ch.SocketOpts$IP$TCP options;
descriptor: Lsun/nio/ch/SocketOpts$IP$TCP;
flags: (0x0002) ACC_PRIVATE
java.net.ServerSocket socket;
descriptor: Ljava/net/ServerSocket;
flags: (0x0000)
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/ServerSocketChannelImpl;
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.ServerSocketChannelImpl.$assertionsDisabled:Z
3: invokestatic sun.nio.ch.IOUtil.load:()V
4: invokestatic sun.nio.ch.ServerSocketChannelImpl.initIDs:()V
5: new sun.nio.ch.SocketDispatcher
dup
invokespecial sun.nio.ch.SocketDispatcher.<init>:()V
putstatic sun.nio.ch.ServerSocketChannelImpl.nd:Lsun/nio/ch/NativeDispatcher;
6: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.nio.channels.spi.SelectorProvider);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.nio.channels.ServerSocketChannel.<init>:(Ljava/nio/channels/spi/SelectorProvider;)V
1: aload 0
lconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.ServerSocketChannelImpl.lock:Ljava/lang/Object;
3: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
4: aload 0
iconst_m1
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
5: aload 0
aconst_null
putfield sun.nio.ch.ServerSocketChannelImpl.options:Lsun/nio/ch/SocketOpts$IP$TCP;
6: aload 0
iconst_1
invokestatic sun.nio.ch.Net.serverSocket:(Z)Ljava/io/FileDescriptor;
putfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
7: aload 0
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
invokestatic sun.nio.ch.IOUtil.fdVal:(Ljava/io/FileDescriptor;)I
putfield sun.nio.ch.ServerSocketChannelImpl.fdVal:I
8: aload 0
iconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 10 1 sp Ljava/nio/channels/spi/SelectorProvider;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sp
public void <init>(java.nio.channels.spi.SelectorProvider, java.io.FileDescriptor);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;Ljava/io/FileDescriptor;)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
aload 1
invokespecial java.nio.channels.ServerSocketChannel.<init>:(Ljava/nio/channels/spi/SelectorProvider;)V
1: aload 0
lconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.ServerSocketChannelImpl.lock:Ljava/lang/Object;
3: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
4: aload 0
iconst_m1
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
5: aload 0
aconst_null
putfield sun.nio.ch.ServerSocketChannelImpl.options:Lsun/nio/ch/SocketOpts$IP$TCP;
6: aload 0
aload 2
putfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
7: aload 0
aload 2
invokestatic sun.nio.ch.IOUtil.fdVal:(Ljava/io/FileDescriptor;)I
putfield sun.nio.ch.ServerSocketChannelImpl.fdVal:I
8: aload 0
iconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
9: aload 0
aload 2
invokestatic sun.nio.ch.Net.localAddress:(Ljava/io/FileDescriptor;)Ljava/net/InetSocketAddress;
putfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/InetSocketAddress;
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 11 1 sp Ljava/nio/channels/spi/SelectorProvider;
0 11 2 fd Ljava/io/FileDescriptor;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sp
fd
public java.net.ServerSocket socket();
descriptor: ()Ljava/net/ServerSocket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.socket:Ljava/net/ServerSocket;
ifnonnull 3
2: aload 0
aload 0
invokestatic sun.nio.ch.ServerSocketAdaptor.create:(Lsun/nio/ch/ServerSocketChannelImpl;)Ljava/net/ServerSocket;
putfield sun.nio.ch.ServerSocketChannelImpl.socket:Ljava/net/ServerSocket;
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.socket:Ljava/net/ServerSocket;
aload 1
monitorexit
4: areturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Exception table:
from to target type
1 4 5 any
5 6 5 any
public boolean isBound();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/InetSocketAddress;
ifnull 2
iconst_1
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: aload 1
monitorexit
4: ireturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Exception table:
from to target type
1 4 5 any
5 6 5 any
public java.net.InetSocketAddress localAddress();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/InetSocketAddress;
ifnonnull 2
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/InetSocketAddress;
goto 4
2: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/InetSocketAddress;
invokestatic sun.nio.ch.Net.asInetSocketAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
3: invokestatic sun.nio.ch.Net.getRevealedLocalAddress:(Ljava/net/InetSocketAddress;)Ljava/net/InetSocketAddress;
4: StackMap locals:
StackMap stack: java.net.InetSocketAddress
aload 1
monitorexit
5: areturn
6: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
7: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Exception table:
from to target type
1 5 6 any
6 7 6 any
public void bind(java.net.SocketAddress, int);
descriptor: (Ljava/net/SocketAddress;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 3
2: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBound:()Z
ifeq 5
4: new sun.nio.ch.AlreadyBoundException
dup
invokespecial sun.nio.ch.AlreadyBoundException.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.nio.ch.Net.checkAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
astore 4
start local 4 6: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 5
start local 5 7: aload 5
ifnull 9
8: aload 5
aload 4
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual java.lang.SecurityManager.checkListen:(I)V
9: StackMap locals: java.net.InetSocketAddress java.lang.SecurityManager
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 4
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
aload 4
invokevirtual java.net.InetSocketAddress.getPort:()I
invokestatic sun.nio.ch.Net.bind:(Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)V
10: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
iload 2
iconst_1
if_icmpge 11
bipush 50
goto 12
StackMap locals:
StackMap stack: java.io.FileDescriptor
11: iload 2
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.net.SocketAddress int java.lang.Object java.net.InetSocketAddress java.lang.SecurityManager
StackMap stack: java.io.FileDescriptor int
12: invokestatic sun.nio.ch.ServerSocketChannelImpl.listen:(Ljava/io/FileDescriptor;I)V
13: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 6
monitorenter
14: aload 0
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
invokestatic sun.nio.ch.Net.localAddress:(Ljava/io/FileDescriptor;)Ljava/net/InetSocketAddress;
putfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/InetSocketAddress;
15: aload 6
monitorexit
16: goto 19
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.net.SocketAddress int java.lang.Object java.net.InetSocketAddress java.lang.SecurityManager java.lang.Object
StackMap stack: java.lang.Throwable
17: aload 6
monitorexit
18: athrow
end local 5 end local 4 19: StackMap locals:
StackMap stack:
aload 3
monitorexit
20: goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
21: aload 3
monitorexit
22: athrow
23: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 24 1 local Ljava/net/SocketAddress;
0 24 2 backlog I
6 19 4 isa Ljava/net/InetSocketAddress;
7 19 5 sm Ljava/lang/SecurityManager;
Exception table:
from to target type
14 16 17 any
17 18 17 any
1 20 21 any
21 22 21 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
local
backlog
public java.nio.channels.SocketChannel accept();
descriptor: ()Ljava/nio/channels/SocketChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 3
2: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBound:()Z
ifne 5
4: new java.nio.channels.NotYetBoundException
dup
invokespecial java.nio.channels.NotYetBoundException.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 6: iconst_0
istore 3
start local 3 7: new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
astore 4
start local 4 8: iconst_1
anewarray java.net.InetSocketAddress
astore 5
start local 5 9: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.begin:()V
10: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 18
11: aload 0
lconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
12: aload 0
iload 3
ifle 13
iconst_1
goto 14
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.lang.Object java.nio.channels.SocketChannel int java.io.FileDescriptor java.net.InetSocketAddress[]
StackMap stack: sun.nio.ch.ServerSocketChannelImpl
13: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.lang.Object java.nio.channels.SocketChannel int java.io.FileDescriptor java.net.InetSocketAddress[]
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
14: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(Z)V
15: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 16
iload 3
invokestatic sun.nio.ch.IOStatus.check:(I)Z
ifne 16
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
StackMap locals:
StackMap stack:
16: aload 1
monitorexit
17: aconst_null
areturn
18: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.nio.ch.NativeThread.current:()J
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
19: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 4
aload 5
invokevirtual sun.nio.ch.ServerSocketChannelImpl.accept0:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/InetSocketAddress;)I
istore 3
20: iload 3
bipush -3
if_icmpne 29
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifeq 29
21: goto 19
22: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
23: aload 0
lconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
24: aload 0
iload 3
ifle 25
iconst_1
goto 26
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.lang.Object java.nio.channels.SocketChannel int java.io.FileDescriptor java.net.InetSocketAddress[] java.lang.Throwable
StackMap stack: sun.nio.ch.ServerSocketChannelImpl
25: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.lang.Object java.nio.channels.SocketChannel int java.io.FileDescriptor java.net.InetSocketAddress[] java.lang.Throwable
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
26: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(Z)V
27: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 28
iload 3
invokestatic sun.nio.ch.IOStatus.check:(I)Z
ifne 28
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
28: StackMap locals:
StackMap stack:
aload 6
athrow
29: StackMap locals:
StackMap stack:
aload 0
lconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
30: aload 0
iload 3
ifle 31
iconst_1
goto 32
StackMap locals:
StackMap stack: sun.nio.ch.ServerSocketChannelImpl
31: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.lang.Object java.nio.channels.SocketChannel int java.io.FileDescriptor java.net.InetSocketAddress[]
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
32: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(Z)V
33: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 34
iload 3
invokestatic sun.nio.ch.IOStatus.check:(I)Z
ifne 34
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
34: StackMap locals:
StackMap stack:
iload 3
iconst_1
if_icmpge 37
35: aload 1
monitorexit
36: aconst_null
areturn
37: StackMap locals:
StackMap stack:
aload 4
iconst_1
invokestatic sun.nio.ch.IOUtil.configureBlocking:(Ljava/io/FileDescriptor;Z)V
38: aload 5
iconst_0
aaload
astore 6
start local 6 39: new sun.nio.ch.SocketChannelImpl
dup
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.provider:()Ljava/nio/channels/spi/SelectorProvider;
aload 4
aload 6
invokespecial sun.nio.ch.SocketChannelImpl.<init>:(Ljava/nio/channels/spi/SelectorProvider;Ljava/io/FileDescriptor;Ljava/net/InetSocketAddress;)V
astore 2
40: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 7
start local 7 41: aload 7
ifnull 49
42: aload 7
aload 6
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
43: aload 6
invokevirtual java.net.InetSocketAddress.getPort:()I
44: invokevirtual java.lang.SecurityManager.checkAccept:(Ljava/lang/String;I)V
45: goto 49
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.lang.Object java.nio.channels.SocketChannel int java.io.FileDescriptor java.net.InetSocketAddress[] java.net.InetSocketAddress java.lang.SecurityManager
StackMap stack: java.lang.SecurityException
46: astore 8
start local 8 47: aload 2
invokevirtual java.nio.channels.SocketChannel.close:()V
48: aload 8
athrow
end local 8 49: StackMap locals:
StackMap stack:
aload 2
aload 1
monitorexit
50: areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 51: StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
52: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 53 0 this Lsun/nio/ch/ServerSocketChannelImpl;
6 51 2 sc Ljava/nio/channels/SocketChannel;
7 51 3 n I
8 51 4 newfd Ljava/io/FileDescriptor;
9 51 5 isaa [Ljava/net/InetSocketAddress;
39 51 6 isa Ljava/net/InetSocketAddress;
41 51 7 sm Ljava/lang/SecurityManager;
47 49 8 x Ljava/lang/SecurityException;
Exception table:
from to target type
9 11 22 any
18 22 22 any
42 45 46 Class java.lang.SecurityException
1 17 51 any
18 36 51 any
37 50 51 any
51 52 51 any
Exceptions:
throws java.io.IOException
protected void implConfigureBlocking(boolean);
descriptor: (Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
iload 1
invokestatic sun.nio.ch.IOUtil.configureBlocking:(Ljava/io/FileDescriptor;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 2 1 block Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
block
public sun.nio.ch.SocketOpts options();
descriptor: ()Lsun/nio/ch/SocketOpts;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.options:Lsun/nio/ch/SocketOpts$IP$TCP;
ifnonnull 5
2: new sun.nio.ch.ServerSocketChannelImpl$1
dup
aload 0
invokespecial sun.nio.ch.ServerSocketChannelImpl$1.<init>:(Lsun/nio/ch/ServerSocketChannelImpl;)V
3: astore 2
start local 2 4: aload 0
new sun.nio.ch.SocketOptsImpl$IP$TCP
dup
aload 2
invokespecial sun.nio.ch.SocketOptsImpl$IP$TCP.<init>:(Lsun/nio/ch/SocketOptsImpl$Dispatcher;)V
putfield sun.nio.ch.ServerSocketChannelImpl.options:Lsun/nio/ch/SocketOpts$IP$TCP;
end local 2 5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.options:Lsun/nio/ch/SocketOpts$IP$TCP;
aload 1
monitorexit
6: areturn
7: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
8: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/ServerSocketChannelImpl;
4 5 2 d Lsun/nio/ch/SocketOptsImpl$Dispatcher;
Exception table:
from to target type
1 6 7 any
7 8 7 any
protected void implCloseSelectableChannel();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: getstatic sun.nio.ch.ServerSocketChannelImpl.nd:Lsun/nio/ch/NativeDispatcher;
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
invokevirtual sun.nio.ch.NativeDispatcher.preClose:(Ljava/io/FileDescriptor;)V
2: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.thread:J
lstore 2
start local 2 3: lload 2
lconst_0
lcmp
ifeq 5
4: lload 2
invokestatic sun.nio.ch.NativeThread.signal:(J)V
5: StackMap locals: java.lang.Object long
StackMap stack:
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isRegistered:()Z
ifne 7
6: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.kill:()V
end local 2 7: StackMap locals:
StackMap stack:
aload 1
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/ch/ServerSocketChannelImpl;
3 7 2 th J
Exception table:
from to target type
1 8 9 any
9 10 9 any
Exceptions:
throws java.io.IOException
public void kill();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_1
if_icmpne 4
2: aload 1
monitorexit
3: return
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_m1
if_icmpne 8
5: aload 0
iconst_1
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
6: aload 1
monitorexit
7: return
8: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 10
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 9
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isRegistered:()Z
ifeq 10
StackMap locals:
StackMap stack:
9: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.ServerSocketChannelImpl.nd:Lsun/nio/ch/NativeDispatcher;
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
invokevirtual sun.nio.ch.NativeDispatcher.close:(Ljava/io/FileDescriptor;)V
11: aload 0
iconst_1
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
12: aload 1
monitorexit
13: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
14: aload 1
monitorexit
15: athrow
16: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Exception table:
from to target type
1 3 14 any
4 7 14 any
8 13 14 any
14 15 14 any
Exceptions:
throws java.io.IOException
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
bipush 32
iand
ifeq 5
4: iconst_0
ireturn
5: StackMap locals: int int int
StackMap stack:
iload 1
bipush 24
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
iconst_1
iand
ifeq 13
11: iload 4
bipush 16
iand
ifeq 13
12: iload 6
bipush 16
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/ServerSocketChannelImpl;
0 16 1 ops I
0 16 2 initialOps I
0 16 3 sk Lsun/nio/ch/SelectionKeyImpl;
1 16 4 intOps I
2 16 5 oldOps I
3 16 6 newOps I
MethodParameters:
Name Flags
ops
initialOps
sk
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.ServerSocketChannelImpl.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/ServerSocketChannelImpl;
0 1 1 ops I
0 1 2 sk Lsun/nio/ch/SelectionKeyImpl;
MethodParameters:
Name Flags
ops
sk
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.ServerSocketChannelImpl.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/ServerSocketChannelImpl;
0 1 1 ops I
0 1 2 sk Lsun/nio/ch/SelectionKeyImpl;
MethodParameters:
Name Flags
ops
sk
public void translateAndSetInterestOps(int, sun.nio.ch.SelectionKeyImpl);
descriptor: (ILsun/nio/ch/SelectionKeyImpl;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: iload 1
bipush 16
iand
ifeq 3
2: iload 3
iconst_1
ior
istore 3
3: StackMap locals: int
StackMap stack:
aload 2
getfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
aload 2
iload 3
invokevirtual sun.nio.ch.SelectorImpl.putEventOps:(Lsun/nio/ch/SelectionKeyImpl;I)V
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 5 1 ops I
0 5 2 sk Lsun/nio/ch/SelectionKeyImpl;
1 5 3 newOps I
MethodParameters:
Name Flags
ops
sk
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.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/ServerSocketChannelImpl;
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.ServerSocketChannelImpl.fdVal:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/ServerSocketChannelImpl;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
2: aload 1
bipush 91
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
3: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 6
4: aload 1
ldc "closed"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
5: goto 16
6: StackMap locals: java.lang.StringBuffer
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
7: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.localAddress:()Ljava/net/InetSocketAddress;
astore 3
start local 3 8: aload 3
ifnonnull 11
9: aload 1
ldc "unbound"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
10: goto 12
11: StackMap locals: java.lang.Object java.net.InetSocketAddress
StackMap stack:
aload 1
aload 3
invokestatic sun.nio.ch.Net.getRevealedLocalAddressAsString:(Ljava/net/InetSocketAddress;)Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
end local 3 12: StackMap locals:
StackMap stack:
aload 2
monitorexit
13: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
14: aload 2
monitorexit
15: athrow
16: StackMap locals:
StackMap stack:
aload 1
bipush 93
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
17: aload 1
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/nio/ch/ServerSocketChannelImpl;
1 18 1 sb Ljava/lang/StringBuffer;
8 12 3 addr Ljava/net/InetSocketAddress;
Exception table:
from to target type
7 13 14 any
14 15 14 any
private static native void listen(java.io.FileDescriptor, int);
descriptor: (Ljava/io/FileDescriptor;I)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fd
backlog
private native int accept0(java.io.FileDescriptor, java.io.FileDescriptor, java.net.InetSocketAddress[]);
descriptor: (Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/InetSocketAddress;)I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ssfd
newfd
isaa
private static native void initIDs();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
}
SourceFile: "ServerSocketChannelImpl.java"
NestMembers:
sun.nio.ch.ServerSocketChannelImpl$1
InnerClasses:
sun.nio.ch.ServerSocketChannelImpl$1
public abstract IP = sun.nio.ch.SocketOpts$IP of sun.nio.ch.SocketOpts
public abstract TCP = sun.nio.ch.SocketOpts$IP$TCP of sun.nio.ch.SocketOpts$IP
abstract Dispatcher = sun.nio.ch.SocketOptsImpl$Dispatcher of sun.nio.ch.SocketOptsImpl
IP = sun.nio.ch.SocketOptsImpl$IP of sun.nio.ch.SocketOptsImpl
public TCP = sun.nio.ch.SocketOptsImpl$IP$TCP of sun.nio.ch.SocketOptsImpl$IP