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 final int fdVal;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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 boolean isReuseAddress;
descriptor: Z
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
void <init>(java.nio.channels.spi.SelectorProvider);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;)V
flags: (0x0000)
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
iconst_1
invokestatic sun.nio.ch.Net.serverSocket:(Z)Ljava/io/FileDescriptor;
putfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
6: 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
7: aload 0
iconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 9 1 sp Ljava/nio/channels/spi/SelectorProvider;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sp
void <init>(java.nio.channels.spi.SelectorProvider, java.io.FileDescriptor, boolean);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;Ljava/io/FileDescriptor;Z)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 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
aload 2
putfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
6: aload 0
aload 2
invokestatic sun.nio.ch.IOUtil.fdVal:(Ljava/io/FileDescriptor;)I
putfield sun.nio.ch.ServerSocketChannelImpl.fdVal:I
7: aload 0
iconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
8: iload 3
ifeq 10
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: StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.nio.channels.spi.SelectorProvider java.io.FileDescriptor int
StackMap stack:
return
end local 3 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;
0 11 3 bound Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sp
fd
bound
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 java.net.SocketAddress getLocalAddress();
descriptor: ()Ljava/net/SocketAddress;
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
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
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/InetSocketAddress;
ifnonnull 4
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/InetSocketAddress;
goto 6
4: StackMap locals:
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;
5: invokestatic sun.nio.ch.Net.getRevealedLocalAddress:(Ljava/net/InetSocketAddress;)Ljava/net/InetSocketAddress;
6: StackMap locals:
StackMap stack: java.net.InetSocketAddress
aload 1
monitorexit
7: areturn
8: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
9: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Exception table:
from to target type
1 7 8 any
8 9 8 any
Exceptions:
throws java.io.IOException
public <T> java.nio.channels.ServerSocketChannel setOption(java.net.SocketOption<T>, T);
descriptor: (Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/ServerSocketChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.supportedOptions:()Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 4
3: new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' not supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
5: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 7
6: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
7: StackMap locals: java.lang.Object
StackMap stack:
aload 1
getstatic java.net.StandardSocketOptions.IP_TOS:Ljava/net/SocketOption;
if_acmpne 15
8: invokestatic sun.nio.ch.Net.isIPv6Available:()Z
ifeq 10
9: getstatic java.net.StandardProtocolFamily.INET6:Ljava/net/StandardProtocolFamily;
goto 11
StackMap locals:
StackMap stack:
10: getstatic java.net.StandardProtocolFamily.INET:Ljava/net/StandardProtocolFamily;
11: StackMap locals:
StackMap stack: java.net.StandardProtocolFamily
astore 4
start local 4 12: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 4
aload 1
aload 2
invokestatic sun.nio.ch.Net.setSocketOption:(Ljava/io/FileDescriptor;Ljava/net/ProtocolFamily;Ljava/net/SocketOption;Ljava/lang/Object;)V
13: aload 0
aload 3
monitorexit
14: areturn
end local 4 15: StackMap locals:
StackMap stack:
aload 1
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
if_acmpne 19
16: invokestatic sun.nio.ch.Net.useExclusiveBind:()Z
ifeq 19
17: aload 0
aload 2
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
putfield sun.nio.ch.ServerSocketChannelImpl.isReuseAddress:Z
18: goto 20
19: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
getstatic sun.nio.ch.Net.UNSPEC:Ljava/net/ProtocolFamily;
aload 1
aload 2
invokestatic sun.nio.ch.Net.setSocketOption:(Ljava/io/FileDescriptor;Ljava/net/ProtocolFamily;Ljava/net/SocketOption;Ljava/lang/Object;)V
20: StackMap locals:
StackMap stack:
aload 0
aload 3
monitorexit
21: areturn
22: StackMap locals:
StackMap stack: java.lang.Throwable
aload 3
monitorexit
23: athrow
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 name Ljava/net/SocketOption<TT;>;
0 24 2 value TT;
12 15 4 family Ljava/net/ProtocolFamily;
Exception table:
from to target type
5 14 22 any
15 21 22 any
22 23 22 any
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/net/SocketOption<TT;>;TT;)Ljava/nio/channels/ServerSocketChannel;
MethodParameters:
Name Flags
name
value
public <T> T getOption(java.net.SocketOption<T>);
descriptor: (Ljava/net/SocketOption;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.supportedOptions:()Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 4
3: new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' not supported"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
5: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 7
6: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
7: StackMap locals: java.lang.Object
StackMap stack:
aload 1
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
if_acmpne 11
8: invokestatic sun.nio.ch.Net.useExclusiveBind:()Z
ifeq 11
9: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.isReuseAddress:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aload 2
monitorexit
10: areturn
11: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
getstatic sun.nio.ch.Net.UNSPEC:Ljava/net/ProtocolFamily;
aload 1
invokestatic sun.nio.ch.Net.getSocketOption:(Ljava/io/FileDescriptor;Ljava/net/ProtocolFamily;Ljava/net/SocketOption;)Ljava/lang/Object;
aload 2
monitorexit
12: areturn
13: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
14: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 15 1 name Ljava/net/SocketOption<TT;>;
Exception table:
from to target type
5 10 13 any
11 12 13 any
13 14 13 any
Exceptions:
throws java.io.IOException
Signature: <T:Ljava/lang/Object;>(Ljava/net/SocketOption<TT;>;)TT;
MethodParameters:
Name Flags
name
public final java.util.Set<java.net.SocketOption<?>> supportedOptions();
descriptor: ()Ljava/util/Set;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic sun.nio.ch.ServerSocketChannelImpl$DefaultOptionsHolder.defaultOptions:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Signature: ()Ljava/util/Set<Ljava/net/SocketOption<*>;>;
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;
aload 1
monitorexit
2: areturn
3: StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public java.nio.channels.ServerSocketChannel bind(java.net.SocketAddress, int);
descriptor: (Ljava/net/SocketAddress;I)Ljava/nio/channels/ServerSocketChannel;
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 java.nio.channels.AlreadyBoundException
dup
invokespecial java.nio.channels.AlreadyBoundException.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 1
ifnonnull 6
new java.net.InetSocketAddress
dup
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(I)V
goto 7
6: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.nio.ch.Net.checkAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
7: StackMap locals:
StackMap stack: java.net.InetSocketAddress
astore 4
start local 4 8: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 5
start local 5 9: aload 5
ifnull 11
10: aload 5
aload 4
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual java.lang.SecurityManager.checkListen:(I)V
11: 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.net.NetHooks.beforeTcpBind:(Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)V
12: 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
13: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
iload 2
iconst_1
if_icmpge 14
bipush 50
goto 15
StackMap locals:
StackMap stack: java.io.FileDescriptor
14: 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
15: invokestatic sun.nio.ch.Net.listen:(Ljava/io/FileDescriptor;I)V
16: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 6
monitorenter
17: 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;
18: aload 6
monitorexit
19: goto 22
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
20: aload 6
monitorexit
21: athrow
end local 5 end local 4 22: StackMap locals:
StackMap stack:
aload 3
monitorexit
23: goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
24: aload 3
monitorexit
25: athrow
26: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 27 1 local Ljava/net/SocketAddress;
0 27 2 backlog I
8 22 4 isa Ljava/net/InetSocketAddress;
9 22 5 sm Ljava/lang/SecurityManager;
Exception table:
from to target type
17 19 20 any
20 21 20 any
1 23 24 any
24 25 24 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
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: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_1
if_icmpeq 3
2: 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
3: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.thread:J
lstore 2
start local 2 4: lload 2
lconst_0
lcmp
ifeq 6
5: lload 2
invokestatic sun.nio.ch.NativeThread.signal:(J)V
6: StackMap locals: long
StackMap stack:
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isRegistered:()Z
ifne 8
7: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.kill:()V
end local 2 8: StackMap locals:
StackMap stack:
aload 1
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 1
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/ServerSocketChannelImpl;
4 8 2 th J
Exception table:
from to target type
1 9 10 any
10 11 10 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
getstatic sun.nio.ch.Net.POLLNVAL:S
iand
ifeq 5
4: iconst_0
ireturn
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
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
int poll(int, long);
descriptor: (IJ)I
flags: (0x0000)
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 2
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.blockingLock:()Ljava/lang/Object;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifeq 1
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBlocking:()Z
ifeq 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
3: iconst_0
istore 5
start local 5 4: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.begin:()V
5: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 6
monitorenter
6: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 13
7: aload 6
monitorexit
8: aload 0
lconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
9: aload 0
iload 5
ifle 10
iconst_1
goto 11
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int long java.lang.Object int java.lang.Object
StackMap stack: sun.nio.ch.ServerSocketChannelImpl
10: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int long java.lang.Object int java.lang.Object
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
11: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(Z)V
aload 4
monitorexit
12: iconst_0
ireturn
13: StackMap locals:
StackMap stack:
aload 0
invokestatic sun.nio.ch.NativeThread.current:()J
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
14: aload 6
monitorexit
15: goto 18
StackMap locals:
StackMap stack: java.lang.Throwable
16: aload 6
monitorexit
17: athrow
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
iload 1
lload 2
invokestatic sun.nio.ch.Net.poll:(Ljava/io/FileDescriptor;IJ)I
istore 5
19: goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 7
21: aload 0
lconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
22: aload 0
iload 5
ifle 23
iconst_1
goto 24
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int long java.lang.Object int top java.lang.Throwable
StackMap stack: sun.nio.ch.ServerSocketChannelImpl
23: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int long java.lang.Object int top java.lang.Throwable
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
24: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(Z)V
25: aload 7
athrow
26: StackMap locals: sun.nio.ch.ServerSocketChannelImpl int long java.lang.Object int
StackMap stack:
aload 0
lconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
27: aload 0
iload 5
ifle 28
iconst_1
goto 29
StackMap locals:
StackMap stack: sun.nio.ch.ServerSocketChannelImpl
28: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int long java.lang.Object int
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
29: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(Z)V
30: iload 5
aload 4
monitorexit
31: ireturn
end local 5 32: StackMap locals: sun.nio.ch.ServerSocketChannelImpl int long java.lang.Object
StackMap stack: java.lang.Throwable
aload 4
monitorexit
33: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 34 1 events I
0 34 2 timeout J
4 32 5 n I
Exception table:
from to target type
6 8 16 any
13 15 16 any
16 17 16 any
4 8 20 any
13 20 20 any
3 12 32 any
13 31 32 any
32 33 32 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
events
timeout
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
getstatic sun.nio.ch.Net.POLLIN:S
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 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
public java.nio.channels.NetworkChannel setOption(java.net.SocketOption, java.lang.Object);
descriptor: (Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/NetworkChannel;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
checkcast java.net.SocketOption
aload 2
checkcast java.lang.Object
invokevirtual sun.nio.ch.ServerSocketChannelImpl.setOption:(Ljava/net/SocketOption;Ljava/lang/Object;)Ljava/nio/channels/ServerSocketChannel;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
}
SourceFile: "ServerSocketChannelImpl.java"
NestMembers:
sun.nio.ch.ServerSocketChannelImpl$DefaultOptionsHolder
InnerClasses:
private DefaultOptionsHolder = sun.nio.ch.ServerSocketChannelImpl$DefaultOptionsHolder of sun.nio.ch.ServerSocketChannelImpl