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 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_KILLPENDING;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int ST_KILLED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private int state;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private long thread;
descriptor: J
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
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: 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
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 0
iconst_1
invokestatic sun.nio.ch.Net.serverSocket:(Z)Ljava/io/FileDescriptor;
putfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
4: 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
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 6 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=5, 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
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 0
aload 2
putfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
4: aload 0
aload 2
invokestatic sun.nio.ch.IOUtil.fdVal:(Ljava/io/FileDescriptor;)I
putfield sun.nio.ch.ServerSocketChannelImpl.fdVal:I
5: iload 3
ifeq 12
6: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 4
monitorenter
7: 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;
8: aload 4
monitorexit
9: goto 12
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.nio.channels.spi.SelectorProvider java.io.FileDescriptor int java.lang.Object
StackMap stack: java.lang.Throwable
10: aload 4
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
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 sp Ljava/nio/channels/spi/SelectorProvider;
0 13 2 fd Ljava/io/FileDescriptor;
0 13 3 bound Z
Exception table:
from to target type
7 9 10 any
10 11 10 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sp
fd
bound
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=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.ensureOpen:()V
2: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/InetSocketAddress;
ifnonnull 4
3: aconst_null
goto 5
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.localAddress:Ljava/net/InetSocketAddress;
invokestatic sun.nio.ch.Net.getRevealedLocalAddress:(Ljava/net/InetSocketAddress;)Ljava/net/InetSocketAddress;
5: StackMap locals:
StackMap stack: java.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 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 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
4: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.ensureOpen:()V
5: aload 1
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
if_acmpne 8
invokestatic sun.nio.ch.Net.useExclusiveBind:()Z
ifeq 8
6: aload 0
aload 2
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
putfield sun.nio.ch.ServerSocketChannelImpl.isReuseAddress:Z
7: goto 9
8: 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
9: StackMap locals:
StackMap stack:
aload 0
aload 3
monitorexit
10: areturn
11: StackMap locals:
StackMap stack: java.lang.Throwable
aload 3
monitorexit
12: athrow
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 name Ljava/net/SocketOption<TT;>;
0 13 2 value TT;
Exception table:
from to target type
4 10 11 any
11 12 11 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 1
getstatic java.net.StandardSocketOptions.SO_REUSEADDR:Ljava/net/SocketOption;
if_acmpne 8
invokestatic sun.nio.ch.Net.useExclusiveBind:()Z
ifeq 8
6: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.isReuseAddress:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aload 2
monitorexit
7: areturn
8: 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
9: areturn
10: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
11: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 12 1 name Ljava/net/SocketOption<TT;>;
Exception table:
from to target type
4 7 10 any
8 9 10 any
10 11 10 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 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=6, 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/InetSocketAddress;
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 1
ifnonnull 6
5: 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
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;
end local 5 end local 4 17: aload 3
monitorexit
18: goto 21
StackMap locals: sun.nio.ch.ServerSocketChannelImpl java.net.SocketAddress int java.lang.Object
StackMap stack: java.lang.Throwable
19: aload 3
monitorexit
20: athrow
21: StackMap locals:
StackMap stack:
aload 0
areturn
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 local Ljava/net/SocketAddress;
0 22 2 backlog I
8 17 4 isa Ljava/net/InetSocketAddress;
9 17 5 sm Ljava/lang/SecurityManager;
Exception table:
from to target type
1 18 19 any
19 20 19 any
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/InetSocketAddress;
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
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
invokevirtual java.lang.Object.notifyAll:()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=5, locals=11, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
1: iconst_0
istore 1
start local 1 2: new java.io.FileDescriptor
dup
invokespecial java.io.FileDescriptor.<init>:()V
astore 2
start local 2 3: iconst_1
anewarray java.net.InetSocketAddress
astore 3
start local 3 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: StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.InetSocketAddress[] int
StackMap stack:
aload 0
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
aload 2
aload 3
invokevirtual sun.nio.ch.ServerSocketChannelImpl.accept:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/InetSocketAddress;)I
istore 1
7: iload 1
bipush -3
if_icmpne 15
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isOpen:()Z
ifne 6
8: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 5
10: aload 0
iload 4
iload 1
ifle 11
iconst_1
goto 12
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.InetSocketAddress[] int java.lang.Throwable
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
11: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.InetSocketAddress[] int java.lang.Throwable
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int int
12: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(ZZ)V
13: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 14
iload 1
invokestatic sun.nio.ch.IOStatus.check:(I)Z
ifne 14
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
14: StackMap locals:
StackMap stack:
aload 5
athrow
15: StackMap locals:
StackMap stack:
aload 0
iload 4
iload 1
ifle 16
iconst_1
goto 17
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.InetSocketAddress[] int
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int
16: iconst_0
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.InetSocketAddress[] int
StackMap stack: sun.nio.ch.ServerSocketChannelImpl int int
17: invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(ZZ)V
18: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 19
iload 1
invokestatic sun.nio.ch.IOStatus.check:(I)Z
ifne 19
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
19: StackMap locals:
StackMap stack:
iload 1
iconst_1
if_icmpge 22
20: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
21: aconst_null
areturn
22: StackMap locals:
StackMap stack:
aload 2
iconst_1
invokestatic sun.nio.ch.IOUtil.configureBlocking:(Ljava/io/FileDescriptor;Z)V
23: aload 3
iconst_0
aaload
astore 5
start local 5 24: new sun.nio.ch.SocketChannelImpl
dup
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.provider:()Ljava/nio/channels/spi/SelectorProvider;
aload 2
aload 5
invokespecial sun.nio.ch.SocketChannelImpl.<init>:(Ljava/nio/channels/spi/SelectorProvider;Ljava/io/FileDescriptor;Ljava/net/InetSocketAddress;)V
astore 6
start local 6 25: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 7
start local 7 26: aload 7
ifnull 32
27: aload 7
aload 5
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
aload 5
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual java.lang.SecurityManager.checkAccept:(Ljava/lang/String;I)V
28: goto 32
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.io.FileDescriptor java.net.InetSocketAddress[] int java.net.InetSocketAddress java.nio.channels.SocketChannel java.lang.SecurityManager
StackMap stack: java.lang.SecurityException
29: astore 8
start local 8 30: aload 6
invokevirtual java.nio.channels.SocketChannel.close:()V
31: aload 8
athrow
end local 8 32: StackMap locals:
StackMap stack:
aload 6
astore 10
33: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
34: aload 10
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 35: StackMap locals: sun.nio.ch.ServerSocketChannelImpl
StackMap stack: java.lang.Throwable
astore 9
36: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
37: aload 9
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lsun/nio/ch/ServerSocketChannelImpl;
2 35 1 n I
3 35 2 newfd Ljava/io/FileDescriptor;
4 35 3 isaa [Ljava/net/InetSocketAddress;
5 35 4 blocking Z
24 35 5 isa Ljava/net/InetSocketAddress;
25 35 6 sc Ljava/nio/channels/SocketChannel;
26 35 7 sm Ljava/lang/SecurityManager;
30 32 8 x Ljava/lang/SecurityException;
Exception table:
from to target type
5 9 9 any
27 28 29 Class java.lang.SecurityException
1 20 35 any
22 33 35 any
Exceptions:
throws java.io.IOException
protected void implConfigureBlocking(boolean);
descriptor: (Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, 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
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 11
StackMap locals: sun.nio.ch.ServerSocketChannelImpl int java.lang.Object
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals: sun.nio.ch.ServerSocketChannelImpl int
StackMap stack: java.lang.Throwable
astore 3
9: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
10: aload 3
athrow
11: 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
12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 13 1 block Z
Exception table:
from to target type
2 5 6 any
6 7 6 any
1 8 8 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
block
protected void implCloseSelectableChannel();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, 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:
iconst_0
istore 1
start local 1 2: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
3: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 4
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_1
if_icmplt 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: sun.nio.ch.ServerSocketChannelImpl int top java.lang.Object
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
5: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isBlocking:()Z
istore 2
start local 2 6: aload 3
monitorexit
7: goto 10
end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 3
monitorexit
9: athrow
start local 2 10: StackMap locals: sun.nio.ch.ServerSocketChannelImpl int int
StackMap stack:
iload 2
ifeq 27
11: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
12: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 13
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_1
if_icmpeq 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.thread:J
lstore 4
start local 4 14: lload 4
lconst_0
lcmp
ifeq 23
15: 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
16: lload 4
invokestatic sun.nio.ch.NativeThread.signal:(J)V
17: goto 22
18: StackMap locals: long
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
invokevirtual java.lang.Object.wait:()V
19: goto 22
StackMap locals:
StackMap stack: java.lang.InterruptedException
20: pop
21: iconst_1
istore 1
22: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.thread:J
lconst_0
lcmp
ifne 18
end local 4 23: StackMap locals:
StackMap stack:
aload 3
monitorexit
24: goto 29
StackMap locals:
StackMap stack: java.lang.Throwable
25: aload 3
monitorexit
26: athrow
27: 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
28: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
29: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.stateLock:Ljava/lang/Object;
dup
astore 3
monitorenter
30: getstatic sun.nio.ch.ServerSocketChannelImpl.$assertionsDisabled:Z
ifne 31
aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.state:I
iconst_1
if_icmpeq 31
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
31: StackMap locals: java.lang.Object
StackMap stack:
aload 0
iconst_2
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
32: aload 3
monitorexit
33: goto 36
StackMap locals:
StackMap stack: java.lang.Throwable
34: aload 3
monitorexit
35: athrow
36: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.isRegistered:()Z
ifne 38
37: aload 0
invokevirtual sun.nio.ch.ServerSocketChannelImpl.kill:()V
38: StackMap locals:
StackMap stack:
iload 1
ifeq 40
39: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
40: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Lsun/nio/ch/ServerSocketChannelImpl;
2 41 1 interrupted Z
6 8 2 blocking Z
10 41 2 blocking Z
14 23 4 th J
Exception table:
from to target type
3 7 8 any
8 9 8 any
18 19 20 Class java.lang.InterruptedException
12 24 25 any
25 26 25 any
30 33 34 any
34 35 34 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_2
if_icmpne 4
2: aload 0
iconst_3
putfield sun.nio.ch.ServerSocketChannelImpl.state:I
3: 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
4: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/ServerSocketChannelImpl;
Exception table:
from to target type
1 5 6 any
6 7 6 any
Exceptions:
throws java.io.IOException
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/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
java.net.InetSocketAddress localAddress();
descriptor: ()Ljava/net/InetSocketAddress;
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/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
boolean pollAccept(long);
descriptor: (J)Z
flags: (0x0000)
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 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
ifne 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.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
3: iconst_0
istore 3
start local 3 4: aload 0
iconst_1
invokevirtual sun.nio.ch.ServerSocketChannelImpl.begin:(Z)V
5: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.fd:Ljava/io/FileDescriptor;
getstatic sun.nio.ch.Net.POLLIN:S
lload 1
invokestatic sun.nio.ch.Net.poll:(Ljava/io/FileDescriptor;IJ)I
istore 4
start local 4 6: iload 4
ifeq 7
iconst_1
goto 8
StackMap locals: int int
StackMap stack:
7: iconst_0
StackMap locals:
StackMap stack: int
8: istore 3
end local 4 9: goto 13
StackMap locals: sun.nio.ch.ServerSocketChannelImpl long int
StackMap stack: java.lang.Throwable
10: astore 5
11: aload 0
iconst_1
iload 3
invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(ZZ)V
12: aload 5
athrow
13: StackMap locals:
StackMap stack:
aload 0
iconst_1
iload 3
invokevirtual sun.nio.ch.ServerSocketChannelImpl.end:(ZZ)V
14: iload 3
istore 7
15: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
16: iload 7
ireturn
end local 3 17: StackMap locals: sun.nio.ch.ServerSocketChannelImpl long
StackMap stack: java.lang.Throwable
astore 6
18: aload 0
getfield sun.nio.ch.ServerSocketChannelImpl.acceptLock:Ljava/util/concurrent/locks/ReentrantLock;
invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
19: aload 6
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/nio/ch/ServerSocketChannelImpl;
0 20 1 timeout J
4 17 3 polled Z
6 9 4 events I
Exception table:
from to target type
4 10 10 any
3 15 17 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
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 16
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/InetSocketAddress;
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 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.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
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.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
17: aload 1
invokevirtual java.lang.StringBuilder.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/StringBuilder;
8 12 3 addr Ljava/net/InetSocketAddress;
Exception table:
from to target type
7 13 14 any
14 15 14 any
private int accept(java.io.FileDescriptor, java.io.FileDescriptor, java.net.InetSocketAddress[]);
descriptor: (Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/InetSocketAddress;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokevirtual sun.nio.ch.ServerSocketChannelImpl.accept0:(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/net/InetSocketAddress;)I
ireturn
end local 3 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 ssfd Ljava/io/FileDescriptor;
0 1 2 newfd Ljava/io/FileDescriptor;
0 1 3 isaa [Ljava/net/InetSocketAddress;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ssfd
newfd
isaa
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