public class sun.rmi.transport.tcp.TCPChannel implements sun.rmi.transport.Channel
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.rmi.transport.tcp.TCPChannel
super_class: java.lang.Object
{
private final sun.rmi.transport.tcp.TCPEndpoint ep;
descriptor: Lsun/rmi/transport/tcp/TCPEndpoint;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final sun.rmi.transport.tcp.TCPTransport tr;
descriptor: Lsun/rmi/transport/tcp/TCPTransport;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<sun.rmi.transport.tcp.TCPConnection> freeList;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lsun/rmi/transport/tcp/TCPConnection;>;
private java.util.concurrent.Future<?> reaper;
descriptor: Ljava/util/concurrent/Future;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/concurrent/Future<*>;
private boolean usingMultiplexer;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private sun.rmi.transport.tcp.ConnectionMultiplexer multiplexer;
descriptor: Lsun/rmi/transport/tcp/ConnectionMultiplexer;
flags: (0x0002) ACC_PRIVATE
private sun.rmi.transport.tcp.ConnectionAcceptor acceptor;
descriptor: Lsun/rmi/transport/tcp/ConnectionAcceptor;
flags: (0x0002) ACC_PRIVATE
private java.security.AccessControlContext okContext;
descriptor: Ljava/security/AccessControlContext;
flags: (0x0002) ACC_PRIVATE
private java.util.WeakHashMap<java.security.AccessControlContext, java.lang.ref.Reference<java.security.AccessControlContext>> authcache;
descriptor: Ljava/util/WeakHashMap;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/WeakHashMap<Ljava/security/AccessControlContext;Ljava/lang/ref/Reference<Ljava/security/AccessControlContext;>;>;
private java.lang.SecurityManager cacheSecurityManager;
descriptor: Ljava/lang/SecurityManager;
flags: (0x0002) ACC_PRIVATE
private static final long idleTimeout;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int handshakeTimeout;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int responseTimeout;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.concurrent.ScheduledExecutorService scheduler;
descriptor: Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: new sun.security.action.GetLongAction
dup
ldc "sun.rmi.transport.connectionTimeout"
ldc 15000
invokespecial sun.security.action.GetLongAction.<init>:(Ljava/lang/String;J)V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
2: putstatic sun.rmi.transport.tcp.TCPChannel.idleTimeout:J
3: new sun.security.action.GetIntegerAction
dup
ldc "sun.rmi.transport.tcp.handshakeTimeout"
4: ldc 60000
5: invokespecial sun.security.action.GetIntegerAction.<init>:(Ljava/lang/String;I)V
6: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
7: putstatic sun.rmi.transport.tcp.TCPChannel.handshakeTimeout:I
8: new sun.security.action.GetIntegerAction
dup
ldc "sun.rmi.transport.tcp.responseTimeout"
iconst_0
invokespecial sun.security.action.GetIntegerAction.<init>:(Ljava/lang/String;I)V
9: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
10: putstatic sun.rmi.transport.tcp.TCPChannel.responseTimeout:I
11: new sun.rmi.runtime.RuntimeUtil$GetInstanceAction
dup
invokespecial sun.rmi.runtime.RuntimeUtil$GetInstanceAction.<init>:()V
12: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast sun.rmi.runtime.RuntimeUtil
13: invokevirtual sun.rmi.runtime.RuntimeUtil.getScheduler:()Ljava/util/concurrent/ScheduledThreadPoolExecutor;
14: putstatic sun.rmi.transport.tcp.TCPChannel.scheduler:Ljava/util/concurrent/ScheduledExecutorService;
15: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.rmi.transport.tcp.TCPTransport, sun.rmi.transport.tcp.TCPEndpoint);
descriptor: (Lsun/rmi/transport/tcp/TCPTransport;Lsun/rmi/transport/tcp/TCPEndpoint;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
3: aload 0
aconst_null
putfield sun.rmi.transport.tcp.TCPChannel.reaper:Ljava/util/concurrent/Future;
4: aload 0
iconst_0
putfield sun.rmi.transport.tcp.TCPChannel.usingMultiplexer:Z
5: aload 0
aconst_null
putfield sun.rmi.transport.tcp.TCPChannel.multiplexer:Lsun/rmi/transport/tcp/ConnectionMultiplexer;
6: aload 0
aconst_null
putfield sun.rmi.transport.tcp.TCPChannel.cacheSecurityManager:Ljava/lang/SecurityManager;
7: aload 0
aload 1
putfield sun.rmi.transport.tcp.TCPChannel.tr:Lsun/rmi/transport/tcp/TCPTransport;
8: aload 0
aload 2
putfield sun.rmi.transport.tcp.TCPChannel.ep:Lsun/rmi/transport/tcp/TCPEndpoint;
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/rmi/transport/tcp/TCPChannel;
0 10 1 tr Lsun/rmi/transport/tcp/TCPTransport;
0 10 2 ep Lsun/rmi/transport/tcp/TCPEndpoint;
MethodParameters:
Name Flags
tr
ep
public sun.rmi.transport.Endpoint getEndpoint();
descriptor: ()Lsun/rmi/transport/Endpoint;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.ep:Lsun/rmi/transport/tcp/TCPEndpoint;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/rmi/transport/tcp/TCPChannel;
private void checkConnectPermission();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: return
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 1
aload 0
getfield sun.rmi.transport.tcp.TCPChannel.cacheSecurityManager:Ljava/lang/SecurityManager;
if_acmpeq 7
4: aload 0
aconst_null
putfield sun.rmi.transport.tcp.TCPChannel.okContext:Ljava/security/AccessControlContext;
5: aload 0
new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
putfield sun.rmi.transport.tcp.TCPChannel.authcache:Ljava/util/WeakHashMap;
6: aload 0
aload 1
putfield sun.rmi.transport.tcp.TCPChannel.cacheSecurityManager:Ljava/lang/SecurityManager;
7: StackMap locals:
StackMap stack:
invokestatic java.security.AccessController.getContext:()Ljava/security/AccessControlContext;
astore 2
start local 2 8: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.okContext:Ljava/security/AccessControlContext;
ifnull 10
9: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.okContext:Ljava/security/AccessControlContext;
aload 2
invokevirtual java.security.AccessControlContext.equals:(Ljava/lang/Object;)Z
ifne 12
aload 0
getfield sun.rmi.transport.tcp.TCPChannel.authcache:Ljava/util/WeakHashMap;
aload 2
invokevirtual java.util.WeakHashMap.containsKey:(Ljava/lang/Object;)Z
ifne 12
10: StackMap locals: java.security.AccessControlContext
StackMap stack:
aload 1
aload 0
getfield sun.rmi.transport.tcp.TCPChannel.ep:Lsun/rmi/transport/tcp/TCPEndpoint;
invokevirtual sun.rmi.transport.tcp.TCPEndpoint.getHost:()Ljava/lang/String;
aload 0
getfield sun.rmi.transport.tcp.TCPChannel.ep:Lsun/rmi/transport/tcp/TCPEndpoint;
invokevirtual sun.rmi.transport.tcp.TCPEndpoint.getPort:()I
invokevirtual java.lang.SecurityManager.checkConnect:(Ljava/lang/String;I)V
11: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.authcache:Ljava/util/WeakHashMap;
aload 2
new java.lang.ref.SoftReference
dup
aload 2
invokespecial java.lang.ref.SoftReference.<init>:(Ljava/lang/Object;)V
invokevirtual java.util.WeakHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield sun.rmi.transport.tcp.TCPChannel.okContext:Ljava/security/AccessControlContext;
13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/rmi/transport/tcp/TCPChannel;
1 14 1 security Ljava/lang/SecurityManager;
8 14 2 ctx Ljava/security/AccessControlContext;
Exceptions:
throws java.lang.SecurityException
public sun.rmi.transport.Connection newConnection();
descriptor: ()Lsun/rmi/transport/Connection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 1: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
dup
astore 2
monitorenter
2: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 3
start local 3 3: iload 3
iflt 7
4: aload 0
invokevirtual sun.rmi.transport.tcp.TCPChannel.checkConnectPermission:()V
5: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.rmi.transport.tcp.TCPConnection
astore 1
6: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
iload 3
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
pop
end local 3 7: StackMap locals: sun.rmi.transport.tcp.TCPConnection java.util.List
StackMap stack:
aload 2
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
aload 1
ifnull 16
12: aload 1
invokevirtual sun.rmi.transport.tcp.TCPConnection.isDead:()Z
ifne 15
13: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.BRIEF:Ljava/util/logging/Level;
ldc "reuse connection"
invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
14: aload 1
areturn
15: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_0
invokevirtual sun.rmi.transport.tcp.TCPChannel.free:(Lsun/rmi/transport/Connection;Z)V
16: StackMap locals:
StackMap stack:
aload 1
ifnonnull 0
17: aload 0
invokevirtual sun.rmi.transport.tcp.TCPChannel.createConnection:()Lsun/rmi/transport/Connection;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/rmi/transport/tcp/TCPChannel;
1 18 1 conn Lsun/rmi/transport/tcp/TCPConnection;
3 7 3 elementPos I
Exception table:
from to target type
2 8 9 any
9 10 9 any
Exceptions:
throws java.rmi.RemoteException
private sun.rmi.transport.Connection createConnection();
descriptor: ()Lsun/rmi/transport/Connection;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=10, args_size=1
start local 0 0: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.BRIEF:Ljava/util/logging/Level;
ldc "create connection"
invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
1: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.usingMultiplexer:Z
ifne 60
2: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.ep:Lsun/rmi/transport/tcp/TCPEndpoint;
invokevirtual sun.rmi.transport.tcp.TCPEndpoint.newSocket:()Ljava/net/Socket;
astore 2
start local 2 3: new sun.rmi.transport.tcp.TCPConnection
dup
aload 0
aload 2
invokespecial sun.rmi.transport.tcp.TCPConnection.<init>:(Lsun/rmi/transport/tcp/TCPChannel;Ljava/net/Socket;)V
astore 1
start local 1 4: new java.io.DataOutputStream
dup
aload 1
invokeinterface sun.rmi.transport.Connection.getOutputStream:()Ljava/io/OutputStream;
invokespecial java.io.DataOutputStream.<init>:(Ljava/io/OutputStream;)V
5: astore 3
start local 3 6: aload 0
aload 3
invokevirtual sun.rmi.transport.tcp.TCPChannel.writeTransportHeader:(Ljava/io/DataOutputStream;)V
7: aload 1
invokeinterface sun.rmi.transport.Connection.isReusable:()Z
ifne 10
8: aload 3
bipush 76
invokevirtual java.io.DataOutputStream.writeByte:(I)V
9: goto 74
10: StackMap locals: sun.rmi.transport.Connection java.net.Socket java.io.DataOutputStream
StackMap stack:
aload 3
bipush 75
invokevirtual java.io.DataOutputStream.writeByte:(I)V
11: aload 3
invokevirtual java.io.DataOutputStream.flush:()V
12: iconst_0
istore 4
start local 4 13: aload 2
invokevirtual java.net.Socket.getSoTimeout:()I
istore 4
14: aload 2
getstatic sun.rmi.transport.tcp.TCPChannel.handshakeTimeout:I
invokevirtual java.net.Socket.setSoTimeout:(I)V
15: goto 17
StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection java.net.Socket java.io.DataOutputStream int
StackMap stack: java.lang.Exception
16: pop
17: StackMap locals:
StackMap stack:
new java.io.DataInputStream
dup
aload 1
invokeinterface sun.rmi.transport.Connection.getInputStream:()Ljava/io/InputStream;
invokespecial java.io.DataInputStream.<init>:(Ljava/io/InputStream;)V
18: astore 5
start local 5 19: aload 5
invokevirtual java.io.DataInputStream.readByte:()B
istore 6
start local 6 20: iload 6
bipush 78
if_icmpeq 26
21: new java.rmi.ConnectIOException
dup
22: iload 6
bipush 79
if_icmpne 24
23: ldc "JRMP StreamProtocol not supported by server"
goto 25
24: StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection java.net.Socket java.io.DataOutputStream int java.io.DataInputStream int
StackMap stack: new 21 new 21
ldc "non-JRMP server at remote endpoint"
25: StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection java.net.Socket java.io.DataOutputStream int java.io.DataInputStream int
StackMap stack: new 21 new 21 java.lang.String
invokespecial java.rmi.ConnectIOException.<init>:(Ljava/lang/String;)V
athrow
26: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.io.DataInputStream.readUTF:()Ljava/lang/String;
astore 7
start local 7 27: aload 5
invokevirtual java.io.DataInputStream.readInt:()I
istore 8
start local 8 28: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.VERBOSE:Ljava/util/logging/Level;
invokevirtual sun.rmi.runtime.Log.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 34
29: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.VERBOSE:Ljava/util/logging/Level;
30: new java.lang.StringBuilder
dup
ldc "server suggested "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
31: iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
32: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
33: invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
34: StackMap locals: java.lang.String int
StackMap stack:
aload 7
invokestatic sun.rmi.transport.tcp.TCPEndpoint.setLocalHost:(Ljava/lang/String;)V
35: iconst_0
aconst_null
aconst_null
invokestatic sun.rmi.transport.tcp.TCPEndpoint.getLocalEndpoint:(ILjava/rmi/server/RMIClientSocketFactory;Ljava/rmi/server/RMIServerSocketFactory;)Lsun/rmi/transport/tcp/TCPEndpoint;
36: astore 9
start local 9 37: aload 3
aload 9
invokevirtual sun.rmi.transport.tcp.TCPEndpoint.getHost:()Ljava/lang/String;
invokevirtual java.io.DataOutputStream.writeUTF:(Ljava/lang/String;)V
38: aload 3
aload 9
invokevirtual sun.rmi.transport.tcp.TCPEndpoint.getPort:()I
invokevirtual java.io.DataOutputStream.writeInt:(I)V
39: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.VERBOSE:Ljava/util/logging/Level;
invokevirtual sun.rmi.runtime.Log.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 43
40: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.VERBOSE:Ljava/util/logging/Level;
new java.lang.StringBuilder
dup
ldc "using "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
41: aload 9
invokevirtual sun.rmi.transport.tcp.TCPEndpoint.getHost:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 9
invokevirtual sun.rmi.transport.tcp.TCPEndpoint.getPort:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
42: invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
43: StackMap locals: sun.rmi.transport.tcp.TCPEndpoint
StackMap stack:
aload 2
iload 4
ifeq 45
44: iload 4
goto 46
45: StackMap locals:
StackMap stack: java.net.Socket
getstatic sun.rmi.transport.tcp.TCPChannel.responseTimeout:I
46: StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection java.net.Socket java.io.DataOutputStream int java.io.DataInputStream int java.lang.String int sun.rmi.transport.tcp.TCPEndpoint
StackMap stack: java.net.Socket int
invokevirtual java.net.Socket.setSoTimeout:(I)V
47: goto 49
StackMap locals:
StackMap stack: java.lang.Exception
48: pop
49: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.DataOutputStream.flush:()V
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 50: goto 74
StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection java.net.Socket
StackMap stack: java.io.IOException
51: astore 3
start local 3 52: aload 1
invokeinterface sun.rmi.transport.Connection.close:()V
53: goto 55
StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection java.net.Socket java.io.IOException
StackMap stack: java.lang.Exception
54: pop
55: StackMap locals:
StackMap stack:
aload 3
instanceof java.rmi.RemoteException
ifeq 57
56: aload 3
checkcast java.rmi.RemoteException
athrow
57: StackMap locals:
StackMap stack:
new java.rmi.ConnectIOException
dup
58: ldc "error during JRMP connection establishment"
aload 3
59: invokespecial java.rmi.ConnectIOException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 end local 2 end local 1 60: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.TCPChannel.multiplexer:Lsun/rmi/transport/tcp/ConnectionMultiplexer;
invokevirtual sun.rmi.transport.tcp.ConnectionMultiplexer.openConnection:()Lsun/rmi/transport/tcp/TCPConnection;
astore 1
start local 1 61: goto 74
end local 1 StackMap locals:
StackMap stack: java.io.IOException
62: astore 2
start local 2 63: aload 0
dup
astore 3
monitorenter
64: aload 0
iconst_0
putfield sun.rmi.transport.tcp.TCPChannel.usingMultiplexer:Z
65: aload 0
aconst_null
putfield sun.rmi.transport.tcp.TCPChannel.multiplexer:Lsun/rmi/transport/tcp/ConnectionMultiplexer;
66: aload 3
monitorexit
67: goto 70
StackMap locals: sun.rmi.transport.tcp.TCPChannel top java.io.IOException sun.rmi.transport.tcp.TCPChannel
StackMap stack: java.lang.Throwable
68: aload 3
monitorexit
69: athrow
70: StackMap locals:
StackMap stack:
new java.rmi.ConnectIOException
dup
71: ldc "error opening virtual connection over multiplexed connection"
72: aload 2
73: invokespecial java.rmi.ConnectIOException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 2 start local 1 74: StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 75 0 this Lsun/rmi/transport/tcp/TCPChannel;
4 60 1 conn Lsun/rmi/transport/Connection;
61 62 1 conn Lsun/rmi/transport/Connection;
74 75 1 conn Lsun/rmi/transport/Connection;
3 60 2 sock Ljava/net/Socket;
6 50 3 out Ljava/io/DataOutputStream;
13 50 4 originalSoTimeout I
19 50 5 in Ljava/io/DataInputStream;
20 50 6 ack B
27 50 7 suggestedHost Ljava/lang/String;
28 50 8 suggestedPort I
37 50 9 localEp Lsun/rmi/transport/tcp/TCPEndpoint;
52 60 3 e Ljava/io/IOException;
63 74 2 e Ljava/io/IOException;
Exception table:
from to target type
13 15 16 Class java.lang.Exception
43 47 48 Class java.lang.Exception
4 50 51 Class java.io.IOException
52 53 54 Class java.lang.Exception
60 61 62 Class java.io.IOException
64 67 68 any
68 69 68 any
Exceptions:
throws java.rmi.RemoteException
public void free(sun.rmi.transport.Connection, boolean);
descriptor: (Lsun/rmi/transport/Connection;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 1
return
1: StackMap locals:
StackMap stack:
iload 2
ifeq 20
aload 1
invokeinterface sun.rmi.transport.Connection.isReusable:()Z
ifeq 20
2: invokestatic java.lang.System.currentTimeMillis:()J
lstore 3
start local 3 3: aload 1
checkcast sun.rmi.transport.tcp.TCPConnection
astore 5
start local 5 4: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.BRIEF:Ljava/util/logging/Level;
ldc "reuse connection"
invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
5: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
dup
astore 6
monitorenter
6: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.reaper:Ljava/util/concurrent/Future;
ifnonnull 13
8: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.BRIEF:Ljava/util/logging/Level;
ldc "create reaper"
invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
9: aload 0
getstatic sun.rmi.transport.tcp.TCPChannel.scheduler:Ljava/util/concurrent/ScheduledExecutorService;
10: new sun.rmi.transport.tcp.TCPChannel$1
dup
aload 0
invokespecial sun.rmi.transport.tcp.TCPChannel$1.<init>:(Lsun/rmi/transport/tcp/TCPChannel;)V
11: getstatic sun.rmi.transport.tcp.TCPChannel.idleTimeout:J
getstatic sun.rmi.transport.tcp.TCPChannel.idleTimeout:J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
12: invokeinterface java.util.concurrent.ScheduledExecutorService.scheduleWithFixedDelay:(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
putfield sun.rmi.transport.tcp.TCPChannel.reaper:Ljava/util/concurrent/Future;
13: StackMap locals: long sun.rmi.transport.tcp.TCPConnection java.util.List
StackMap stack:
aload 6
monitorexit
14: goto 17
StackMap locals:
StackMap stack: java.lang.Throwable
15: aload 6
monitorexit
16: athrow
17: StackMap locals:
StackMap stack:
aload 5
lload 3
invokevirtual sun.rmi.transport.tcp.TCPConnection.setLastUseTime:(J)V
18: aload 5
lload 3
getstatic sun.rmi.transport.tcp.TCPChannel.idleTimeout:J
ladd
invokevirtual sun.rmi.transport.tcp.TCPConnection.setExpiration:(J)V
end local 5 end local 3 19: goto 24
20: StackMap locals:
StackMap stack:
getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.BRIEF:Ljava/util/logging/Level;
ldc "close connection"
invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
21: aload 1
invokeinterface sun.rmi.transport.Connection.close:()V
22: goto 24
StackMap locals:
StackMap stack: java.io.IOException
23: pop
24: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/rmi/transport/tcp/TCPChannel;
0 25 1 conn Lsun/rmi/transport/Connection;
0 25 2 reuse Z
3 19 3 lastuse J
4 19 5 tcpConnection Lsun/rmi/transport/tcp/TCPConnection;
Exception table:
from to target type
6 14 15 any
15 16 15 any
21 22 23 Class java.io.IOException
MethodParameters:
Name Flags
conn
reuse
private void (java.io.DataOutputStream);
descriptor: (Ljava/io/DataOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.io.DataOutputStream
dup
aload 1
invokespecial java.io.DataOutputStream.<init>:(Ljava/io/OutputStream;)V
1: astore 2
start local 2 2: aload 2
ldc 1246907721
invokevirtual java.io.DataOutputStream.writeInt:(I)V
3: aload 2
iconst_2
invokevirtual java.io.DataOutputStream.writeShort:(I)V
end local 2 4: goto 9
StackMap locals:
StackMap stack: java.io.IOException
5: astore 2
start local 2 6: new java.rmi.ConnectIOException
dup
7: ldc "error writing JRMP transport header"
aload 2
8: invokespecial java.rmi.ConnectIOException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 2 9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/rmi/transport/tcp/TCPChannel;
0 10 1 out Ljava/io/DataOutputStream;
2 4 2 dataOut Ljava/io/DataOutputStream;
6 9 2 e Ljava/io/IOException;
Exception table:
from to target type
0 4 5 Class java.io.IOException
Exceptions:
throws java.rmi.RemoteException
MethodParameters:
Name Flags
out
synchronized void useMultiplexer(sun.rmi.transport.tcp.ConnectionMultiplexer);
descriptor: (Lsun/rmi/transport/tcp/ConnectionMultiplexer;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield sun.rmi.transport.tcp.TCPChannel.multiplexer:Lsun/rmi/transport/tcp/ConnectionMultiplexer;
1: aload 0
iconst_1
putfield sun.rmi.transport.tcp.TCPChannel.usingMultiplexer:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/rmi/transport/tcp/TCPChannel;
0 3 1 newMultiplexer Lsun/rmi/transport/tcp/ConnectionMultiplexer;
MethodParameters:
Name Flags
newMultiplexer
void acceptMultiplexConnection(sun.rmi.transport.Connection);
descriptor: (Lsun/rmi/transport/Connection;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.acceptor:Lsun/rmi/transport/tcp/ConnectionAcceptor;
ifnonnull 3
1: aload 0
new sun.rmi.transport.tcp.ConnectionAcceptor
dup
aload 0
getfield sun.rmi.transport.tcp.TCPChannel.tr:Lsun/rmi/transport/tcp/TCPTransport;
invokespecial sun.rmi.transport.tcp.ConnectionAcceptor.<init>:(Lsun/rmi/transport/tcp/TCPTransport;)V
putfield sun.rmi.transport.tcp.TCPChannel.acceptor:Lsun/rmi/transport/tcp/ConnectionAcceptor;
2: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.acceptor:Lsun/rmi/transport/tcp/ConnectionAcceptor;
invokevirtual sun.rmi.transport.tcp.ConnectionAcceptor.startNewAcceptor:()V
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.TCPChannel.acceptor:Lsun/rmi/transport/tcp/ConnectionAcceptor;
aload 1
invokevirtual sun.rmi.transport.tcp.ConnectionAcceptor.accept:(Lsun/rmi/transport/Connection;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/rmi/transport/tcp/TCPChannel;
0 5 1 conn Lsun/rmi/transport/Connection;
MethodParameters:
Name Flags
conn
public void shedCache();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
dup
astore 2
monitorenter
1: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
invokeinterface java.util.List.size:()I
anewarray sun.rmi.transport.Connection
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast sun.rmi.transport.Connection[]
astore 1
start local 1 2: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
invokeinterface java.util.List.clear:()V
3: aload 2
monitorexit
4: goto 7
end local 1 StackMap locals: sun.rmi.transport.tcp.TCPChannel top java.util.List
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
start local 1 7: StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection[]
StackMap stack:
aload 1
arraylength
istore 2
start local 2 8: goto 14
9: StackMap locals: int
StackMap stack:
aload 1
iload 2
aaload
astore 3
start local 3 10: aload 1
iload 2
aconst_null
aastore
11: aload 3
invokeinterface sun.rmi.transport.Connection.close:()V
12: goto 14
StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection[] int sun.rmi.transport.Connection
StackMap stack: java.io.IOException
13: pop
end local 3 14: StackMap locals:
StackMap stack:
iinc 2 -1
iload 2
ifge 9
end local 2 15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/rmi/transport/tcp/TCPChannel;
2 5 1 conn [Lsun/rmi/transport/Connection;
7 16 1 conn [Lsun/rmi/transport/Connection;
8 15 2 i I
10 14 3 c Lsun/rmi/transport/Connection;
Exception table:
from to target type
1 4 5 any
5 6 5 any
11 12 13 Class java.io.IOException
private void freeCachedConnections();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
dup
astore 1
monitorenter
1: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 2
start local 2 2: iload 2
ifle 16
3: invokestatic java.lang.System.currentTimeMillis:()J
lstore 3
start local 3 4: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
iload 2
invokeinterface java.util.List.listIterator:(I)Ljava/util/ListIterator;
astore 5
start local 5 5: goto 15
6: StackMap locals: sun.rmi.transport.tcp.TCPChannel java.util.List int long java.util.ListIterator
StackMap stack:
aload 5
invokeinterface java.util.ListIterator.previous:()Ljava/lang/Object;
checkcast sun.rmi.transport.tcp.TCPConnection
astore 6
start local 6 7: aload 6
lload 3
invokevirtual sun.rmi.transport.tcp.TCPConnection.expired:(J)Z
ifeq 15
8: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.VERBOSE:Ljava/util/logging/Level;
9: ldc "connection timeout expired"
10: invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
11: aload 6
invokevirtual sun.rmi.transport.tcp.TCPConnection.close:()V
12: goto 14
StackMap locals: sun.rmi.transport.tcp.TCPChannel java.util.List int long java.util.ListIterator sun.rmi.transport.tcp.TCPConnection
StackMap stack: java.io.IOException
13: pop
14: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.ListIterator.remove:()V
end local 6 15: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.ListIterator.hasPrevious:()Z
ifne 6
end local 5 end local 3 16: StackMap locals:
StackMap stack:
aload 0
getfield sun.rmi.transport.tcp.TCPChannel.freeList:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 19
17: aload 0
getfield sun.rmi.transport.tcp.TCPChannel.reaper:Ljava/util/concurrent/Future;
iconst_0
invokeinterface java.util.concurrent.Future.cancel:(Z)Z
pop
18: aload 0
aconst_null
putfield sun.rmi.transport.tcp.TCPChannel.reaper:Ljava/util/concurrent/Future;
end local 2 19: StackMap locals:
StackMap stack:
aload 1
monitorexit
20: goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
21: aload 1
monitorexit
22: athrow
23: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/rmi/transport/tcp/TCPChannel;
2 19 2 size I
4 16 3 time J
5 16 5 iter Ljava/util/ListIterator<Lsun/rmi/transport/tcp/TCPConnection;>;
7 15 6 conn Lsun/rmi/transport/tcp/TCPConnection;
Exception table:
from to target type
11 12 13 Class java.io.IOException
1 20 21 any
21 22 21 any
}
SourceFile: "TCPChannel.java"
NestMembers:
sun.rmi.transport.tcp.TCPChannel$1
InnerClasses:
public GetInstanceAction = sun.rmi.runtime.RuntimeUtil$GetInstanceAction of sun.rmi.runtime.RuntimeUtil
sun.rmi.transport.tcp.TCPChannel$1