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 final sun.nio.ch.NativeDispatcher nd;
descriptor: Lsun/nio/ch/NativeDispatcher;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.net.ProtocolFamily family;
descriptor: Ljava/net/ProtocolFamily;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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 final java.util.concurrent.locks.ReentrantLock acceptLock;
descriptor: Ljava/util/concurrent/locks/ReentrantLock;
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_INUSE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int ST_CLOSING;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int ST_CLOSED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private int state;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private long thread;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private java.net.SocketAddress localAddress;
descriptor: Ljava/net/SocketAddress;
flags: (0x0002) ACC_PRIVATE
private boolean isReuseAddress;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.net.ServerSocket socket;
descriptor: Ljava/net/ServerSocket;
flags: (0x0002) ACC_PRIVATE
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: new sun.nio.ch.SocketDispatcher
dup
invokespecial sun.nio.ch.SocketDispatcher.<init>:()V
putstatic sun.nio.ch.ServerSocketChannelImpl.nd:Lsun/nio/ch/NativeDispatcher;
4: 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
invokestatic sun.nio.ch.Net.isIPv6Available:()Z
ifeq 1
getstatic java.net.StandardProtocolFamily.INET6:Ljava/net/StandardProtocolFamily;
goto 2
StackMap locals: uninitialized-this java.nio.channels.spi.SelectorProvider
StackMap stack: uninitialized-this java.nio.channels.spi.SelectorProvider
1: getstatic java.net.StandardProtocolFamily.INET:Ljava/net/StandardProtocolFamily;
StackMap locals: uninitialized-this java.nio.channels.spi.SelectorProvider
StackMap stack: uninitialized-this java.nio.channels.spi.SelectorProvider java.net.StandardProtocolFamily
2: invokespecial sun.nio.ch.ServerSocketChannelImpl.<init>:(Ljava/nio/channels/spi/SelectorProvider;Ljava/net/ProtocolFamily;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 4 1 sp Ljava/nio/channels/spi/SelectorProvider;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sp
void <init>(java.nio.channels.spi.SelectorProvider, java.net.ProtocolFamily);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;Ljava/net/ProtocolFamily;)V
flags: (0x0000)
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
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
3: aload 2
ldc "'family' is null"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
4: aload 2
getstatic java.net.StandardProtocolFamily.INET:Ljava/net/StandardProtocolFamily;
if_acmpeq 6
aload 2
getstatic java.net.StandardProtocolFamily.INET6:Ljava/net/StandardProtocolFamily;
if_acmpeq 6
aload 2
getstatic java.net.StandardProtocolFamily.UNIX:Ljava/net/StandardProtocolFamily;
if_acmpeq 6
5: new java.lang.UnsupportedOperationException
dup
ldc "Protocol family not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.nio.channels.spi.SelectorProvider java.net.ProtocolFamily
StackMap stack:
aload 2
getstatic java.net.StandardProtocolFamily.INET6:Ljava/net/StandardProtocolFamily;
if_acmpne 8
invokestatic sun.nio.ch.Net.isIPv6Available:()Z
ifne 8
7: new java.lang.UnsupportedOperationException
dup
ldc "IPv6 not available"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield sun.nio.ch.ServerSocketChannelImpl.family:Ljava/net/ProtocolFamily;
9: aload 2
getstatic java.net.StandardProtocolFamily.UNIX:Ljava/net/StandardProtocolFamily;
if_acmpne 12
10: aload 0
invokestatic sun.nio.ch.UnixDomainSockets.socket:()Ljava/io/FileDescriptor;
putfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
11: goto 13
12: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_1
invokestatic sun.nio.ch.Net.serverSocket:(Ljava/net/ProtocolFamily;Z)Ljava/io/FileDescriptor;
putfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
13: StackMap locals:
StackMap stack:
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
14: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 15 1 sp Ljava/nio/channels/spi/SelectorProvider;
0 15 2 family Ljava/net/ProtocolFamily;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sp
family
void <init>(java.nio.channels.spi.SelectorProvider, java.net.ProtocolFamily, java.io.FileDescriptor, boolean);
descriptor: (Ljava/nio/channels/spi/SelectorProvider;Ljava/net/ProtocolFamily;Ljava/io/FileDescriptor;Z)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
invokespecial java.nio.channels.ServerSocketChannel.<init>:(Ljava/nio/channels/spi/SelectorProvider;)V
1: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
3: aload 2
getstatic java.net.StandardProtocolFamily.UNIX:Ljava/net/StandardProtocolFamily;
if_acmpne 6
4: aload 0
getstatic java.net.StandardProtocolFamily.UNIX:Ljava/net/StandardProtocolFamily;
putfield sun.nio.ch.ServerSocketChannelImpl.family:Ljava/net/ProtocolFamily;
5: goto 9
6: StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.nio.channels.spi.SelectorProvider java.net.ProtocolFamily java.io.FileDescriptor int
StackMap stack:
aload 0
invokestatic sun.nio.ch.Net.isIPv6Available:()Z
ifeq 7
getstatic java.net.StandardProtocolFamily.INET6:Ljava/net/StandardProtocolFamily;
goto 8
StackMap locals:
StackMap stack: sun.nio.ch.ServerSocketChannelImpl
7: getstatic java.net.StandardProtocolFamily.INET:Ljava/net/StandardProtocolFamily;
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.nio.channels.spi.SelectorProvider java.net.ProtocolFamily java.io.FileDescriptor int
StackMap stack: sun.nio.ch.ServerSocketChannelImpl java.net.StandardProtocolFamily
8: putfield sun.nio.ch.ServerSocketChannelImpl.family:Ljava/net/ProtocolFamily;
9: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
10: aload 0
aload 3
invokestatic sun.nio.ch.IOUtil.fdVal:(Ljava/io/FileDescriptor;)I
putfield sun.nio.ch.ServerSocketChannelImpl.fdVal:I
11: iload 4
ifeq 21
12: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 5
monitorenter
13: aload 2
getstatic java.net.StandardProtocolFamily.UNIX:Ljava/net/StandardProtocolFamily;
if_acmpne 16
14: aload 0
aload 3
invokestatic sun.nio.ch.UnixDomainSockets.localAddress:(Ljava/io/FileDescriptor;)Ljava/net/UnixDomainSocketAddress;
putfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/SocketAddress;
15: goto 17
16: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 3
invokestatic sun.nio.ch.Net.localAddress:(Ljava/io/FileDescriptor;)Ljava/net/InetSocketAddress;
putfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/SocketAddress;
17: StackMap locals:
StackMap stack:
aload 5
monitorexit
18: goto 21
StackMap locals:
StackMap stack: java.lang.Throwable
19: aload 5
monitorexit
20: athrow
21: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 22 1 sp Ljava/nio/channels/spi/SelectorProvider;
0 22 2 family Ljava/net/ProtocolFamily;
0 22 3 fd Ljava/io/FileDescriptor;
0 22 4 bound Z
Exception table:
from to target type
13 18 19 any
19 20 19 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sp
family
fd
bound
private boolean isNetSocket();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.family:Ljava/net/ProtocolFamily;
getstatic java.net.StandardProtocolFamily.INET:Ljava/net/StandardProtocolFamily;
if_acmpeq 1
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.family:Ljava/net/ProtocolFamily;
getstatic java.net.StandardProtocolFamily.INET6:Ljava/net/StandardProtocolFamily;
if_acmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/ServerSocketChannelImpl;
boolean isUnixSocket();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.family:Ljava/net/ProtocolFamily;
getstatic java.net.StandardProtocolFamily.UNIX:Ljava/net/StandardProtocolFamily;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/ServerSocketChannelImpl;
private void ensureOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 2
1: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Exceptions:
throws java.nio.channels.ClosedChannelException
public java.net.ServerSocket socket();
descriptor: ()Ljava/net/ServerSocket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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 6
2: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isNetSocket:()Z
ifeq 5
3: 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;
4: goto 6
5: StackMap locals: java.lang.Object
StackMap stack:
new java.lang.UnsupportedOperationException
dup
ldc "Not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.socket:Ljava/net/ServerSocket;
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
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.ensureOpen:()V
2: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isUnixSocket:()Z
ifeq 5
3: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/SocketAddress;
invokestatic sun.nio.ch.UnixDomainSockets.getRevealedLocalAddress:(Ljava/net/SocketAddress;)Ljava/net/UnixDomainSocketAddress;
aload 1
monitorexit
4: areturn
5: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/SocketAddress;
invokestatic sun.nio.ch.Net.getRevealedLocalAddress:(Ljava/net/SocketAddress;)Ljava/net/InetSocketAddress;
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;
Exception table:
from to target type
1 4 7 any
5 6 7 any
7 8 7 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=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.supportedOptions:()Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 3
2: 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
3: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.net.SocketOption.type:()Ljava/lang/Class;
aload 2
invokevirtual java.lang.Class.isInstance:(Ljava/lang/Object;)Z
ifne 5
4: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid value '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
6: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.ensureOpen:()V
7: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isNetSocket:()Z
ifeq 12
8: aload 1
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
if_acmpne 12
9: invokestatic sun.nio.ch.Net.useExclusiveBind:()Z
ifeq 12
10: aload 0
aload 2
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
putfield sun.nio.ch.ServerSocketChannelImpl.isReuseAddress:Z
11: goto 13
12: StackMap locals: java.lang.Object
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
13: StackMap locals:
StackMap stack:
aload 0
aload 3
monitorexit
14: areturn
15: StackMap locals:
StackMap stack: java.lang.Throwable
aload 3
monitorexit
16: athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 17 1 name Ljava/net/SocketOption<TT;>;
0 17 2 value TT;
Exception table:
from to target type
6 14 15 any
15 16 15 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
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.supportedOptions:()Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifne 3
2: 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
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
4: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.ensureOpen:()V
5: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isNetSocket:()Z
ifeq 10
6: aload 1
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
if_acmpne 10
7: invokestatic sun.nio.ch.Net.useExclusiveBind:()Z
ifeq 10
8: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.isReuseAddress:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aload 2
monitorexit
9: areturn
10: StackMap locals: java.lang.Object
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
11: areturn
12: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
13: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 14 1 name Ljava/net/SocketOption<TT;>;
Exception table:
from to target type
4 9 12 any
10 11 12 any
12 13 12 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: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isUnixSocket:()Z
ifeq 2
1: getstatic sun.nio.ch.ServerSocketChannelImpl$DefaultOptionsHolder.defaultUnixDomainOptions:Ljava/util/Set;
areturn
2: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.ServerSocketChannelImpl$DefaultOptionsHolder.defaultInetOptions:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Signature: ()Ljava/util/Set<Ljava/net/SocketOption<*>;>;
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=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.ensureOpen:()V
2: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/SocketAddress;
ifnull 4
3: new java.nio.channels.AlreadyBoundException
dup
invokespecial java.nio.channels.AlreadyBoundException.<init>:()V
athrow
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isUnixSocket:()Z
ifeq 7
5: aload 0
aload 0
aload 1
iload 2
invokevirtual sun.nio.ch.ServerSocketChannelImpl.unixBind:(Ljava/net/SocketAddress;I)Ljava/net/SocketAddress;
putfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/SocketAddress;
6: goto 8
7: StackMap locals:
StackMap stack:
aload 0
aload 0
aload 1
iload 2
invokevirtual sun.nio.ch.ServerSocketChannelImpl.netBind:(Ljava/net/SocketAddress;I)Ljava/net/SocketAddress;
putfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/SocketAddress;
8: StackMap locals:
StackMap stack:
aload 3
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 3
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 13 1 local Ljava/net/SocketAddress;
0 13 2 backlog I
Exception table:
from to target type
1 9 10 any
10 11 10 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
local
backlog
private java.net.SocketAddress unixBind(java.net.SocketAddress, int);
descriptor: (Ljava/net/SocketAddress;I)Ljava/net/SocketAddress;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: invokestatic sun.nio.ch.UnixDomainSockets.checkPermission:()V
1: aload 1
ifnonnull 14
2: iconst_0
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 11
5: StackMap locals: int int
StackMap stack:
invokestatic sun.nio.ch.UnixDomainSockets.generateTempName:()Ljava/net/UnixDomainSocketAddress;
invokevirtual java.net.UnixDomainSocketAddress.getPath:()Ljava/nio/file/Path;
astore 5
start local 5 6: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 5
invokestatic sun.nio.ch.UnixDomainSockets.bind:(Ljava/io/FileDescriptor;Ljava/nio/file/Path;)V
7: iconst_1
istore 3
end local 5 8: goto 10
StackMap locals:
StackMap stack: java.net.BindException
9: pop
10: StackMap locals:
StackMap stack:
iinc 4 1
11: StackMap locals:
StackMap stack:
iload 4
bipush 10
if_icmpge 12
iload 3
ifeq 5
12: StackMap locals:
StackMap stack:
iload 3
ifne 16
13: new java.net.BindException
dup
ldc "Could not bind to temporary name"
invokespecial java.net.BindException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 14: StackMap locals:
StackMap stack:
aload 1
invokestatic sun.nio.ch.UnixDomainSockets.checkAddress:(Ljava/net/SocketAddress;)Ljava/net/UnixDomainSocketAddress;
invokevirtual java.net.UnixDomainSocketAddress.getPath:()Ljava/nio/file/Path;
astore 3
start local 3 15: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 3
invokestatic sun.nio.ch.UnixDomainSockets.bind:(Ljava/io/FileDescriptor;Ljava/nio/file/Path;)V
end local 3 16: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
iload 2
iconst_1
if_icmpge 17
bipush 50
goto 18
StackMap locals:
StackMap stack: java.io.FileDescriptor
17: iload 2
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.net.SocketAddress int
StackMap stack: java.io.FileDescriptor int
18: invokestatic sun.nio.ch.Net.listen:(Ljava/io/FileDescriptor;I)V
19: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
invokestatic sun.nio.ch.UnixDomainSockets.localAddress:(Ljava/io/FileDescriptor;)Ljava/net/UnixDomainSocketAddress;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 20 1 local Ljava/net/SocketAddress;
0 20 2 backlog I
3 14 3 bound Z
4 14 4 attempts I
6 8 5 path Ljava/nio/file/Path;
15 16 3 path Ljava/nio/file/Path;
Exception table:
from to target type
5 8 9 Class java.net.BindException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
local
backlog
private java.net.SocketAddress netBind(java.net.SocketAddress, int);
descriptor: (Ljava/net/SocketAddress;I)Ljava/net/SocketAddress;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 3
1: new java.net.InetSocketAddress
dup
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.family:Ljava/net/ProtocolFamily;
invokestatic sun.nio.ch.Net.anyLocalAddress:(Ljava/net/ProtocolFamily;)Ljava/net/InetAddress;
iconst_0
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
astore 3
start local 3 2: goto 4
end local 3 3: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.family:Ljava/net/ProtocolFamily;
invokestatic sun.nio.ch.Net.checkAddress:(Ljava/net/SocketAddress;Ljava/net/ProtocolFamily;)Ljava/net/InetSocketAddress;
astore 3
start local 3 4: StackMap locals: java.net.InetSocketAddress
StackMap stack:
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 4
start local 4 5: aload 4
ifnull 7
6: aload 4
aload 3
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual java.lang.SecurityManager.checkListen:(I)V
7: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 3
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
aload 3
invokevirtual java.net.InetSocketAddress.getPort:()I
invokestatic sun.net.NetHooks.beforeTcpBind:(Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)V
8: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.family:Ljava/net/ProtocolFamily;
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 3
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
aload 3
invokevirtual java.net.InetSocketAddress.getPort:()I
invokestatic sun.nio.ch.Net.bind:(Ljava/net/ProtocolFamily;Ljava/io/FileDescriptor;Ljava/net/InetAddress;I)V
9: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
iload 2
iconst_1
if_icmpge 10
bipush 50
goto 11
StackMap locals:
StackMap stack: java.io.FileDescriptor
10: iload 2
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.net.SocketAddress int java.net.InetSocketAddress java.lang.SecurityManager
StackMap stack: java.io.FileDescriptor int
11: invokestatic sun.nio.ch.Net.listen:(Ljava/io/FileDescriptor;I)V
12: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
invokestatic sun.nio.ch.Net.localAddress:(Ljava/io/FileDescriptor;)Ljava/net/InetSocketAddress;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 13 1 local Ljava/net/SocketAddress;
0 13 2 backlog I
2 3 3 isa Ljava/net/InetSocketAddress;
4 13 3 isa Ljava/net/InetSocketAddress;
5 13 4 sm Ljava/lang/SecurityManager;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
local
backlog
private void begin(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
1: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.begin:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
3: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.ensureOpen:()V
4: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/SocketAddress;
ifnonnull 6
5: new java.nio.channels.NotYetBoundException
dup
invokespecial java.nio.channels.NotYetBoundException.<init>:()V
athrow
6: StackMap locals: java.lang.Object
StackMap stack:
iload 1
ifeq 8
7: aload 0
invokestatic sun.nio.ch.NativeThread.current:()J
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
8: StackMap locals:
StackMap stack:
aload 2
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 2
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 13 1 blocking Z
Exception table:
from to target type
3 9 10 any
10 11 10 any
Exceptions:
throws java.nio.channels.ClosedChannelException
MethodParameters:
Name Flags
blocking
private void end(boolean, boolean);
descriptor: (ZZ)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifeq 10
1: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
2: aload 0
lconst_0
putfield sun.nio.ch.ServerSocketChannelImpl.thread:J
3: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_1
if_icmpne 5
4: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.tryFinishClose:()V
5: StackMap locals: java.lang.Object
StackMap stack:
aload 3
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 3
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
aload 0
iload 2
invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(Z)V
10: StackMap locals:
StackMap stack:
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 blocking Z
0 11 2 completed Z
Exception table:
from to target type
2 6 7 any
7 8 7 any
Exceptions:
throws java.nio.channels.AsynchronousCloseException
MethodParameters:
Name Flags
blocking
completed
public java.nio.channels.SocketChannel accept();
descriptor: ()Ljava/nio/channels/SocketChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
astore 2
start local 2 2: iconst_1
anewarray java.net.SocketAddress
astore 3
start local 3 3: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
4: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBlocking:()Z
istore 4
start local 4 5: aload 0
iload 4
invokevirtual sun.nio.ch.ServerSocketChannelImpl.begin:(Z)V
6: aload 0
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 2
aload 3
invokevirtual sun.nio.ch.ServerSocketChannelImpl.implAccept:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/SocketAddress;)I
istore 1
7: iload 4
ifeq 19
8: goto 11
9: StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.SocketAddress[] int
StackMap stack:
aload 0
getstatic sun.nio.ch.Net.POLLIN:S
invokevirtual sun.nio.ch.ServerSocketChannelImpl.park:(I)V
10: aload 0
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 2
aload 3
invokevirtual sun.nio.ch.ServerSocketChannelImpl.implAccept:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/SocketAddress;)I
istore 1
11: StackMap locals:
StackMap stack:
iload 1
i2l
invokestatic sun.nio.ch.IOStatus.okayToRetry:(J)Z
ifeq 19
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 9
12: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 5
14: aload 0
iload 4
iload 1
ifle 15
iconst_1
goto 16
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.SocketAddress[] int java.lang.Throwable
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
15: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.SocketAddress[] int java.lang.Throwable
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int int
16: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(ZZ)V
17: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 18
iload 1
invokestatic sun.nio.ch.IOStatus.check:(I)Z
ifne 18
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
18: StackMap locals:
StackMap stack:
aload 5
athrow
19: StackMap locals:
StackMap stack:
aload 0
iload 4
iload 1
ifle 20
iconst_1
goto 21
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.SocketAddress[] int
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
20: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.SocketAddress[] int
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int int
21: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(ZZ)V
22: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 26
iload 1
invokestatic sun.nio.ch.IOStatus.check:(I)Z
ifne 26
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 4 23: StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.SocketAddress[]
StackMap stack: java.lang.Throwable
astore 6
24: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
25: aload 6
athrow
26: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
27: iload 1
ifle 29
28: aload 0
aload 2
aload 3
iconst_0
aaload
invokevirtual sun.nio.ch.ServerSocketChannelImpl.finishAccept:(Ljava/io/FileDescriptor;Ljava/net/SocketAddress;)Ljava/nio/channels/SocketChannel;
areturn
29: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lsun/nio/ch/ServerSocketChannelImpl;
1 30 1 n I
2 30 2 newfd Ljava/io/FileDescriptor;
3 30 3 saa [Ljava/net/SocketAddress;
5 23 4 blocking Z
Exception table:
from to target type
5 13 13 any
4 23 23 any
Exceptions:
throws java.io.IOException
private int implAccept(java.io.FileDescriptor, java.io.FileDescriptor, java.net.SocketAddress[]);
descriptor: (Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/SocketAddress;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isUnixSocket:()Z
ifeq 7
1: invokestatic sun.nio.ch.UnixDomainSockets.checkPermission:()V
2: iconst_1
anewarray java.lang.String
astore 4
start local 4 3: aload 1
aload 2
aload 4
invokestatic sun.nio.ch.UnixDomainSockets.accept:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/lang/String;)I
istore 5
start local 5 4: iload 5
ifle 6
5: aload 3
iconst_0
aload 4
iconst_0
aaload
invokestatic java.net.UnixDomainSocketAddress.of:(Ljava/lang/String;)Ljava/net/UnixDomainSocketAddress;
aastore
6: StackMap locals: java.lang.String[] int
StackMap stack:
iload 5
ireturn
end local 5 end local 4 7: StackMap locals:
StackMap stack:
iconst_1
anewarray java.net.InetSocketAddress
astore 4
start local 4 8: aload 1
aload 2
aload 4
invokestatic sun.nio.ch.Net.accept:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/InetSocketAddress;)I
istore 5
start local 5 9: iload 5
ifle 11
10: aload 3
iconst_0
aload 4
iconst_0
aaload
aastore
11: StackMap locals: java.net.InetSocketAddress[] int
StackMap stack:
iload 5
ireturn
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 12 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 12 1 fd Ljava/io/FileDescriptor;
0 12 2 newfd Ljava/io/FileDescriptor;
0 12 3 saa [Ljava/net/SocketAddress;
3 7 4 pa [Ljava/lang/String;
4 7 5 n I
8 12 4 issa [Ljava/net/InetSocketAddress;
9 12 5 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fd
newfd
saa
java.nio.channels.SocketChannel blockingAccept(long);
descriptor: (J)Ljava/nio/channels/SocketChannel;
flags: (0x0000)
Code:
stack=6, locals=13, args_size=2
start local 0 start local 1 0: iconst_0
istore 3
start local 3 1: new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
astore 4
start local 4 2: iconst_1
anewarray java.net.SocketAddress
astore 5
start local 5 3: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
4: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBlocking:()Z
ifne 6
5: new java.nio.channels.IllegalBlockingModeException
dup
invokespecial java.nio.channels.IllegalBlockingModeException.<init>:()V
athrow
6: StackMap locals: int java.io.FileDescriptor java.net.SocketAddress[]
StackMap stack:
aload 0
iconst_1
invokevirtual sun.nio.ch.ServerSocketChannelImpl.begin:(Z)V
7: aload 0
iconst_0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.lockedConfigureBlocking:(Z)V
8: invokestatic java.lang.System.nanoTime:()J
lstore 6
start local 6 9: aload 0
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 4
aload 5
invokevirtual sun.nio.ch.ServerSocketChannelImpl.implAccept:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/SocketAddress;)I
istore 3
10: goto 16
11: StackMap locals: long
StackMap stack:
lload 1
invokestatic java.lang.System.nanoTime:()J
lload 6
lsub
lsub
lstore 8
start local 8 12: lload 8
lconst_0
lcmp
ifgt 14
13: new java.net.SocketTimeoutException
dup
ldc "Accept timed out"
invokespecial java.net.SocketTimeoutException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals: long
StackMap stack:
aload 0
getstatic sun.nio.ch.Net.POLLIN:S
lload 8
invokevirtual sun.nio.ch.ServerSocketChannelImpl.park:(IJ)V
15: aload 0
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 4
aload 5
invokevirtual sun.nio.ch.ServerSocketChannelImpl.implAccept:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/SocketAddress;)I
istore 3
end local 8 16: StackMap locals:
StackMap stack:
iload 3
bipush -2
if_icmpne 21
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 11
end local 6 17: goto 21
StackMap locals: sun.nio.ch.ServerSocketChannelImpl long int java.io.FileDescriptor java.net.SocketAddress[]
StackMap stack: java.lang.Throwable
18: astore 10
19: aload 0
iconst_1
invokevirtual sun.nio.ch.ServerSocketChannelImpl.tryLockedConfigureBlocking:(Z)Z
pop
20: aload 10
athrow
21: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual sun.nio.ch.ServerSocketChannelImpl.tryLockedConfigureBlocking:(Z)Z
pop
22: goto 28
StackMap locals:
StackMap stack: java.lang.Throwable
23: astore 11
24: aload 0
iconst_1
iload 3
ifle 25
iconst_1
goto 26
StackMap locals: sun.nio.ch.ServerSocketChannelImpl long int java.io.FileDescriptor java.net.SocketAddress[] top top top top top java.lang.Throwable
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
25: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl long int java.io.FileDescriptor java.net.SocketAddress[] top top top top top java.lang.Throwable
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int int
26: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(ZZ)V
27: aload 11
athrow
28: StackMap locals: sun.nio.ch.ServerSocketChannelImpl long int java.io.FileDescriptor java.net.SocketAddress[]
StackMap stack:
aload 0
iconst_1
iload 3
ifle 29
iconst_1
goto 30
StackMap locals: sun.nio.ch.ServerSocketChannelImpl long int java.io.FileDescriptor java.net.SocketAddress[]
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
29: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl long int java.io.FileDescriptor java.net.SocketAddress[]
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int int
30: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(ZZ)V
31: goto 35
StackMap locals:
StackMap stack: java.lang.Throwable
32: astore 12
33: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
34: aload 12
athrow
35: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
36: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 37
iload 3
ifgt 37
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
37: StackMap locals:
StackMap stack:
aload 0
aload 4
aload 5
iconst_0
aaload
invokevirtual sun.nio.ch.ServerSocketChannelImpl.finishAccept:(Ljava/io/FileDescriptor;Ljava/net/SocketAddress;)Ljava/nio/channels/SocketChannel;
areturn
end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 38 1 nanos J
1 38 3 n I
2 38 4 newfd Ljava/io/FileDescriptor;
3 38 5 saa [Ljava/net/SocketAddress;
9 17 6 startNanos J
12 16 8 remainingNanos J
Exception table:
from to target type
8 18 18 any
6 23 23 any
4 32 32 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
nanos
private java.nio.channels.SocketChannel finishAccept(java.io.FileDescriptor, java.net.SocketAddress);
descriptor: (Ljava/io/FileDescriptor;Ljava/net/SocketAddress;)Ljava/nio/channels/SocketChannel;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iconst_1
invokestatic sun.nio.ch.IOUtil.configureBlocking:(Ljava/io/FileDescriptor;Z)V
1: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isNetSocket:()Z
ifeq 6
2: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 3: aload 3
ifnull 6
4: aload 2
checkcast java.net.InetSocketAddress
astore 4
start local 4 5: aload 3
aload 4
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
aload 4
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual java.lang.SecurityManager.checkAccept:(Ljava/lang/String;I)V
end local 4 end local 3 6: StackMap locals:
StackMap stack:
new sun.nio.ch.SocketChannelImpl
dup
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.provider:()Ljava/nio/channels/spi/SelectorProvider;
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.family:Ljava/net/ProtocolFamily;
aload 1
aload 2
invokespecial sun.nio.ch.SocketChannelImpl.<init>:(Ljava/nio/channels/spi/SelectorProvider;Ljava/net/ProtocolFamily;Ljava/io/FileDescriptor;Ljava/net/SocketAddress;)V
7: areturn
8: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 9: getstatic sun.nio.ch.ServerSocketChannelImpl.nd:Lsun/nio/ch/NativeDispatcher;
aload 1
invokevirtual sun.nio.ch.NativeDispatcher.close:(Ljava/io/FileDescriptor;)V
10: aload 3
athrow
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 newfd Ljava/io/FileDescriptor;
0 11 2 sa Ljava/net/SocketAddress;
3 6 3 sm Ljava/lang/SecurityManager;
5 6 4 isa Ljava/net/InetSocketAddress;
9 11 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 7 8 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
newfd
sa
protected void implConfigureBlocking(boolean);
descriptor: (Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
1: aload 0
iload 1
invokevirtual sun.nio.ch.ServerSocketChannelImpl.lockedConfigureBlocking:(Z)V
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 2
4: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
5: aload 2
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 8 1 block Z
Exception table:
from to target type
1 3 3 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
block
private void lockedConfigureBlocking(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 1
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
2: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.ensureOpen:()V
3: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
iload 1
invokestatic sun.nio.ch.IOUtil.configureBlocking:(Ljava/io/FileDescriptor;Z)V
4: aload 2
monitorexit
5: goto 8
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.lang.Object
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 9 1 block Z
Exception table:
from to target type
2 5 6 any
6 7 6 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
block
private boolean tryLockedConfigureBlocking(boolean);
descriptor: (Z)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 1
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.isHeldByCurrentThread:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
2: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifeq 6
3: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
iload 1
invokestatic sun.nio.ch.IOUtil.configureBlocking:(Ljava/io/FileDescriptor;Z)V
4: aload 2
monitorexit
5: iconst_1
ireturn
6: StackMap locals: java.lang.Object
StackMap stack:
aload 2
monitorexit
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
9: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 10 1 block Z
Exception table:
from to target type
2 5 8 any
6 7 8 any
8 9 8 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
block
private boolean tryClose();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 2
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifeq 1
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_1
if_icmpeq 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.thread:J
lconst_0
lcmp
ifne 6
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isRegistered:()Z
ifne 6
3: aload 0
iconst_2
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
4: 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
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Exceptions:
throws java.io.IOException
private void tryFinishClose();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.tryClose:()Z
pop
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/ServerSocketChannelImpl;
Exception table:
from to target type
0 1 2 Class java.io.IOException
private void implCloseBlockingMode();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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.$assertionsDisabled:Z
ifne 2
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_1
if_icmplt 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
3: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.tryClose:()Z
ifne 8
4: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.thread:J
lstore 2
start local 2 5: lload 2
lconst_0
lcmp
ifeq 8
6: 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
7: lload 2
invokestatic sun.nio.ch.NativeThread.signal:(J)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;
5 8 2 th J
Exception table:
from to target type
1 9 10 any
10 11 10 any
Exceptions:
throws java.io.IOException
private void implCloseNonBlockingMode();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 2
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_1
if_icmplt 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
3: aload 1
monitorexit
4: goto 7
StackMap locals:
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
8: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
9: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 1
monitorenter
10: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_1
if_icmpne 12
11: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.tryClose:()Z
pop
12: StackMap locals: java.lang.Object
StackMap stack:
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 4 5 any
5 6 5 any
10 13 14 any
14 15 14 any
Exceptions:
throws java.io.IOException
protected void implCloseSelectableChannel();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBlocking:()Z
ifeq 4
2: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.implCloseBlockingMode:()V
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.implCloseNonBlockingMode:()V
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/ServerSocketChannelImpl;
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 3
2: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.tryFinishClose:()V
3: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
4: goto 7
StackMap locals:
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Exception table:
from to target type
1 4 5 any
5 6 5 any
boolean isBound();
descriptor: ()Z
flags: (0x0000)
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/SocketAddress;
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
java.net.SocketAddress localAddress();
descriptor: ()Ljava/net/SocketAddress;
flags: (0x0000)
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/SocketAddress;
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 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 ski Lsun/nio/ch/SelectionKeyImpl;
1 16 4 intOps I
2 16 5 oldOps I
3 16 6 newOps I
MethodParameters:
Name Flags
ops
initialOps
ski
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 ski Lsun/nio/ch/SelectionKeyImpl;
MethodParameters:
Name Flags
ops
ski
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 ski Lsun/nio/ch/SelectionKeyImpl;
MethodParameters:
Name Flags
ops
ski
public int translateInterestOps(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: iload 1
bipush 16
iand
ifeq 3
2: iload 2
getstatic sun.nio.ch.Net.POLLIN:S
ior
istore 2
3: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 4 1 ops I
1 4 2 newOps I
MethodParameters:
Name Flags
ops
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.StringBuilder
dup
invokespecial java.lang.StringBuilder.<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.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
3: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 6
4: aload 1
ldc "closed"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: goto 19
6: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 2
monitorenter
7: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/SocketAddress;
astore 3
start local 3 8: aload 3
ifnonnull 11
9: aload 1
ldc "unbound"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: goto 15
StackMap locals: java.lang.Object java.net.SocketAddress
StackMap stack:
11: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isUnixSocket:()Z
ifeq 14
12: aload 1
aload 3
invokestatic sun.nio.ch.UnixDomainSockets.getRevealedLocalAddressAsString:(Ljava/net/SocketAddress;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: goto 15
14: StackMap locals:
StackMap stack:
aload 1
aload 3
invokestatic sun.nio.ch.Net.getRevealedLocalAddressAsString:(Ljava/net/SocketAddress;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 3 15: StackMap locals:
StackMap stack:
aload 2
monitorexit
16: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
17: aload 2
monitorexit
18: athrow
19: StackMap locals:
StackMap stack:
aload 1
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
20: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/nio/ch/ServerSocketChannelImpl;
1 21 1 sb Ljava/lang/StringBuilder;
8 15 3 addr Ljava/net/SocketAddress;
Exception table:
from to target type
7 16 17 any
17 18 17 any
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