class sun.rmi.transport.tcp.ConnectionAcceptor implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.rmi.transport.tcp.ConnectionAcceptor
super_class: java.lang.Object
{
private sun.rmi.transport.tcp.TCPTransport transport;
descriptor: Lsun/rmi/transport/tcp/TCPTransport;
flags: (0x0002) ACC_PRIVATE
private java.util.List<sun.rmi.transport.Connection> queue;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lsun/rmi/transport/Connection;>;
private static int threadNum;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
putstatic sun.rmi.transport.tcp.ConnectionAcceptor.threadNum:I
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(sun.rmi.transport.tcp.TCPTransport);
descriptor: (Lsun/rmi/transport/tcp/TCPTransport;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.rmi.transport.tcp.ConnectionAcceptor.queue:Ljava/util/List;
2: aload 0
aload 1
putfield sun.rmi.transport.tcp.ConnectionAcceptor.transport:Lsun/rmi/transport/tcp/TCPTransport;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/rmi/transport/tcp/ConnectionAcceptor;
0 4 1 transport Lsun/rmi/transport/tcp/TCPTransport;
MethodParameters:
Name Flags
transport
public void startNewAcceptor();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new sun.rmi.runtime.NewThreadAction
dup
aload 0
1: new java.lang.StringBuilder
dup
ldc "Multiplex Accept-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic sun.rmi.transport.tcp.ConnectionAcceptor.threadNum:I
iconst_1
iadd
dup
putstatic sun.rmi.transport.tcp.ConnectionAcceptor.threadNum:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: iconst_1
3: invokespecial sun.rmi.runtime.NewThreadAction.<init>:(Ljava/lang/Runnable;Ljava/lang/String;Z)V
4: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Thread
astore 1
start local 1 5: aload 1
invokevirtual java.lang.Thread.start:()V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/rmi/transport/tcp/ConnectionAcceptor;
5 7 1 t Ljava/lang/Thread;
public void accept(sun.rmi.transport.Connection);
descriptor: (Lsun/rmi/transport/Connection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.rmi.transport.tcp.ConnectionAcceptor.queue:Ljava/util/List;
dup
astore 2
monitorenter
1: aload 0
getfield sun.rmi.transport.tcp.ConnectionAcceptor.queue:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 0
getfield sun.rmi.transport.tcp.ConnectionAcceptor.queue:Ljava/util/List;
invokevirtual java.lang.Object.notify:()V
3: aload 2
monitorexit
4: goto 7
StackMap locals: sun.rmi.transport.tcp.ConnectionAcceptor sun.rmi.transport.Connection java.util.List
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/rmi/transport/tcp/ConnectionAcceptor;
0 8 1 conn Lsun/rmi/transport/Connection;
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
conn
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.ConnectionAcceptor.queue:Ljava/util/List;
dup
astore 2
monitorenter
1: goto 5
2: StackMap locals: sun.rmi.transport.tcp.ConnectionAcceptor top java.util.List
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.ConnectionAcceptor.queue:Ljava/util/List;
invokevirtual java.lang.Object.wait:()V
3: goto 5
StackMap locals:
StackMap stack: java.lang.InterruptedException
4: pop
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.ConnectionAcceptor.queue:Ljava/util/List;
invokeinterface java.util.List.size:()I
ifeq 2
6: aload 0
invokevirtual sun.rmi.transport.tcp.ConnectionAcceptor.startNewAcceptor:()V
7: aload 0
getfield sun.rmi.transport.tcp.ConnectionAcceptor.queue:Ljava/util/List;
iconst_0
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
checkcast sun.rmi.transport.Connection
astore 1
start local 1 8: aload 2
monitorexit
9: goto 12
end local 1 StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 2
monitorexit
11: athrow
start local 1 12: StackMap locals: sun.rmi.transport.tcp.ConnectionAcceptor sun.rmi.transport.Connection
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.ConnectionAcceptor.transport:Lsun/rmi/transport/tcp/TCPTransport;
aload 1
iconst_1
invokevirtual sun.rmi.transport.tcp.TCPTransport.handleMessages:(Lsun/rmi/transport/Connection;Z)V
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/rmi/transport/tcp/ConnectionAcceptor;
8 10 1 conn Lsun/rmi/transport/Connection;
12 14 1 conn Lsun/rmi/transport/Connection;
Exception table:
from to target type
2 3 4 Class java.lang.InterruptedException
1 9 10 any
10 11 10 any
}
SourceFile: "TCPChannel.java"