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 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=2, locals=0, args_size=0
0: invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
sun/rmi/transport/tcp/TCPChannel.lambda$0()Ljava/lang/Long; (6)
()Ljava/lang/Long;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
1: putstatic sun.rmi.transport.tcp.TCPChannel.idleTimeout:J
2: invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
sun/rmi/transport/tcp/TCPChannel.lambda$1()Ljava/lang/Integer; (6)
()Ljava/lang/Integer;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
3: putstatic sun.rmi.transport.tcp.TCPChannel.handshakeTimeout:I
4: invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
sun/rmi/transport/tcp/TCPChannel.lambda$2()Ljava/lang/Integer; (6)
()Ljava/lang/Integer;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
5: putstatic sun.rmi.transport.tcp.TCPChannel.responseTimeout:I
6: new sun.rmi.runtime.RuntimeUtil$GetInstanceAction
dup
invokespecial sun.rmi.runtime.RuntimeUtil$GetInstanceAction.<init>:()V
7: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast sun.rmi.runtime.RuntimeUtil
8: invokevirtual sun.rmi.runtime.RuntimeUtil.getScheduler:()Ljava/util/concurrent/ScheduledThreadPoolExecutor;
9: putstatic sun.rmi.transport.tcp.TCPChannel.scheduler:Ljava/util/concurrent/ScheduledExecutorService;
10: 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
aconst_null
putfield sun.rmi.transport.tcp.TCPChannel.cacheSecurityManager:Ljava/lang/SecurityManager;
5: aload 0
aload 1
putfield sun.rmi.transport.tcp.TCPChannel.tr:Lsun/rmi/transport/tcp/TCPTransport;
6: aload 0
aload 2
putfield sun.rmi.transport.tcp.TCPChannel.ep:Lsun/rmi/transport/tcp/TCPEndpoint;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/rmi/transport/tcp/TCPChannel;
0 8 1 tr Lsun/rmi/transport/tcp/TCPTransport;
0 8 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.ep:Lsun/rmi/transport/tcp/TCPEndpoint;
invokevirtual sun.rmi.transport.tcp.TCPEndpoint.newSocket:()Ljava/net/Socket;
astore 2
start local 2 2: 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 3: 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
4: astore 3
start local 3 5: aload 0
aload 3
invokevirtual sun.rmi.transport.tcp.TCPChannel.writeTransportHeader:(Ljava/io/DataOutputStream;)V
6: aload 1
invokeinterface sun.rmi.transport.Connection.isReusable:()Z
ifne 9
7: aload 3
bipush 76
invokevirtual java.io.DataOutputStream.writeByte:(I)V
8: goto 59
9: 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
10: aload 3
invokevirtual java.io.DataOutputStream.flush:()V
11: iconst_0
istore 4
start local 4 12: aload 2
invokevirtual java.net.Socket.getSoTimeout:()I
istore 4
13: aload 2
getstatic sun.rmi.transport.tcp.TCPChannel.handshakeTimeout:I
invokevirtual java.net.Socket.setSoTimeout:(I)V
14: goto 16
StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection java.net.Socket java.io.DataOutputStream int
StackMap stack: java.lang.Exception
15: pop
16: 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
17: astore 5
start local 5 18: aload 5
invokevirtual java.io.DataInputStream.readByte:()B
istore 6
start local 6 19: iload 6
bipush 78
if_icmpeq 25
20: new java.rmi.ConnectIOException
dup
21: iload 6
bipush 79
if_icmpne 23
22: ldc "JRMP StreamProtocol not supported by server"
goto 24
23: 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 20 new 20
ldc "non-JRMP server at remote endpoint"
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 20 new 20 java.lang.String
invokespecial java.rmi.ConnectIOException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.io.DataInputStream.readUTF:()Ljava/lang/String;
astore 7
start local 7 26: aload 5
invokevirtual java.io.DataInputStream.readInt:()I
istore 8
start local 8 27: 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 33
28: getstatic sun.rmi.transport.tcp.TCPTransport.tcpLog:Lsun/rmi/runtime/Log;
getstatic sun.rmi.runtime.Log.VERBOSE:Ljava/util/logging/Level;
29: 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;
30: iload 8
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
31: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
32: invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
33: StackMap locals: java.lang.String int
StackMap stack:
aload 7
invokestatic sun.rmi.transport.tcp.TCPEndpoint.setLocalHost:(Ljava/lang/String;)V
34: 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;
35: astore 9
start local 9 36: aload 3
aload 9
invokevirtual sun.rmi.transport.tcp.TCPEndpoint.getHost:()Ljava/lang/String;
invokevirtual java.io.DataOutputStream.writeUTF:(Ljava/lang/String;)V
37: aload 3
aload 9
invokevirtual sun.rmi.transport.tcp.TCPEndpoint.getPort:()I
invokevirtual java.io.DataOutputStream.writeInt:(I)V
38: 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 42
39: 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
40: 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;
41: invokevirtual sun.rmi.runtime.Log.log:(Ljava/util/logging/Level;Ljava/lang/String;)V
42: StackMap locals: sun.rmi.transport.tcp.TCPEndpoint
StackMap stack:
aload 2
iload 4
ifeq 44
43: iload 4
goto 45
44: StackMap locals:
StackMap stack: java.net.Socket
getstatic sun.rmi.transport.tcp.TCPChannel.responseTimeout:I
45: 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
46: goto 48
StackMap locals:
StackMap stack: java.lang.Exception
47: pop
48: 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 49: goto 59
StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection java.net.Socket
StackMap stack: java.io.IOException
50: astore 3
start local 3 51: aload 1
invokeinterface sun.rmi.transport.Connection.close:()V
52: goto 54
StackMap locals: sun.rmi.transport.tcp.TCPChannel sun.rmi.transport.Connection java.net.Socket java.io.IOException
StackMap stack: java.lang.Exception
53: pop
54: StackMap locals:
StackMap stack:
aload 3
instanceof java.rmi.RemoteException
ifeq 56
55: aload 3
checkcast java.rmi.RemoteException
athrow
56: StackMap locals:
StackMap stack:
new java.rmi.ConnectIOException
dup
57: ldc "error during JRMP connection establishment"
aload 3
58: invokespecial java.rmi.ConnectIOException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 3 59: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 60 0 this Lsun/rmi/transport/tcp/TCPChannel;
3 60 1 conn Lsun/rmi/transport/Connection;
2 60 2 sock Ljava/net/Socket;
5 49 3 out Ljava/io/DataOutputStream;
12 49 4 originalSoTimeout I
18 49 5 in Ljava/io/DataInputStream;
19 49 6 ack B
26 49 7 suggestedHost Ljava/lang/String;
27 49 8 suggestedPort I
36 49 9 localEp Lsun/rmi/transport/tcp/TCPEndpoint;
51 59 3 e Ljava/io/IOException;
Exception table:
from to target type
12 14 15 Class java.lang.Exception
42 46 47 Class java.lang.Exception
3 49 50 Class java.io.IOException
51 52 53 Class java.lang.Exception
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
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
private static java.lang.Long lambda$0();
descriptor: ()Ljava/lang/Long;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=0, args_size=0
0: ldc "sun.rmi.transport.connectionTimeout"
ldc 15000
invokestatic java.lang.Long.getLong:(Ljava/lang/String;J)Ljava/lang/Long;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.Integer lambda$1();
descriptor: ()Ljava/lang/Integer;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=0, args_size=0
0: ldc "sun.rmi.transport.tcp.handshakeTimeout"
ldc 60000
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.Integer lambda$2();
descriptor: ()Ljava/lang/Integer;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=0, args_size=0
0: ldc "sun.rmi.transport.tcp.responseTimeout"
iconst_0
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "TCPChannel.java"
NestMembers:
sun.rmi.transport.tcp.TCPChannel$1
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public GetInstanceAction = sun.rmi.runtime.RuntimeUtil$GetInstanceAction of sun.rmi.runtime.RuntimeUtil
sun.rmi.transport.tcp.TCPChannel$1