public class sun.net.www.http.KeepAliveCache extends java.util.HashMap<sun.net.www.http.KeepAliveKey, sun.net.www.http.ClientVector> implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.www.http.KeepAliveCache
super_class: java.util.HashMap
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -2937172892064557949
static final int MAX_CONNECTIONS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 5
static int result;
descriptor: I
flags: (0x0008) ACC_STATIC
static final int LIFETIME;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 5000
private java.lang.Thread keepAliveTimer;
descriptor: Ljava/lang/Thread;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_m1
putstatic sun.net.www.http.KeepAliveCache.result:I
1: return
LocalVariableTable:
Start End Slot Name Signature
static int getMaxConnections();
descriptor: ()I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: getstatic sun.net.www.http.KeepAliveCache.result:I
iconst_m1
if_icmpne 7
1: new sun.security.action.GetIntegerAction
dup
ldc "http.maxConnections"
iconst_5
invokespecial sun.security.action.GetIntegerAction.<init>:(Ljava/lang/String;I)V
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
3: invokevirtual java.lang.Integer.intValue:()I
4: putstatic sun.net.www.http.KeepAliveCache.result:I
5: getstatic sun.net.www.http.KeepAliveCache.result:I
ifgt 7
6: iconst_5
putstatic sun.net.www.http.KeepAliveCache.result:I
7: StackMap locals:
StackMap stack:
getstatic sun.net.www.http.KeepAliveCache.result:I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.util.HashMap.<init>:()V
1: aload 0
aconst_null
putfield sun.net.www.http.KeepAliveCache.keepAliveTimer:Ljava/lang/Thread;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/http/KeepAliveCache;
public synchronized void put(java.net.URL, java.lang.Object, sun.net.www.http.HttpClient);
descriptor: (Ljava/net/URL;Ljava/lang/Object;Lsun/net/www/http/HttpClient;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.net.www.http.KeepAliveCache.keepAliveTimer:Ljava/lang/Thread;
ifnonnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 4
start local 4 3: iload 4
ifne 6
4: aload 0
getfield sun.net.www.http.KeepAliveCache.keepAliveTimer:Ljava/lang/Thread;
invokevirtual java.lang.Thread.isAlive:()Z
ifne 6
5: iconst_1
istore 4
6: StackMap locals: int
StackMap stack:
iload 4
ifeq 10
7: aload 0
invokevirtual sun.net.www.http.KeepAliveCache.clear:()V
8: aload 0
astore 5
start local 5 9: new sun.net.www.http.KeepAliveCache$1
dup
aload 0
aload 5
invokespecial sun.net.www.http.KeepAliveCache$1.<init>:(Lsun/net/www/http/KeepAliveCache;Lsun/net/www/http/KeepAliveCache;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
end local 5 10: StackMap locals:
StackMap stack:
new sun.net.www.http.KeepAliveKey
dup
aload 1
aload 2
invokespecial sun.net.www.http.KeepAliveKey.<init>:(Ljava/net/URL;Ljava/lang/Object;)V
astore 5
start local 5 11: aload 0
aload 5
invokespecial java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.net.www.http.ClientVector
astore 6
start local 6 12: aload 6
ifnonnull 21
13: aload 3
invokevirtual sun.net.www.http.HttpClient.getKeepAliveTimeout:()I
istore 7
start local 7 14: new sun.net.www.http.ClientVector
dup
iload 7
ifle 16
15: iload 7
sipush 1000
imul
goto 17
StackMap locals: sun.net.www.http.KeepAliveCache java.net.URL java.lang.Object sun.net.www.http.HttpClient int sun.net.www.http.KeepAliveKey sun.net.www.http.ClientVector int
StackMap stack: new 14 new 14
16: sipush 5000
17: StackMap locals: sun.net.www.http.KeepAliveCache java.net.URL java.lang.Object sun.net.www.http.HttpClient int sun.net.www.http.KeepAliveKey sun.net.www.http.ClientVector int
StackMap stack: new 14 new 14 int
invokespecial sun.net.www.http.ClientVector.<init>:(I)V
astore 6
18: aload 6
aload 3
invokevirtual sun.net.www.http.ClientVector.put:(Lsun/net/www/http/HttpClient;)V
19: aload 0
aload 5
aload 6
invokespecial java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 20: goto 22
21: StackMap locals:
StackMap stack:
aload 6
aload 3
invokevirtual sun.net.www.http.ClientVector.put:(Lsun/net/www/http/HttpClient;)V
22: StackMap locals:
StackMap stack:
return
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 23 0 this Lsun/net/www/http/KeepAliveCache;
0 23 1 url Ljava/net/URL;
0 23 2 obj Ljava/lang/Object;
0 23 3 http Lsun/net/www/http/HttpClient;
3 23 4 startThread Z
9 10 5 cache Lsun/net/www/http/KeepAliveCache;
11 23 5 key Lsun/net/www/http/KeepAliveKey;
12 23 6 v Lsun/net/www/http/ClientVector;
14 20 7 keepAliveTimeout I
MethodParameters:
Name Flags
url final
obj
http
public synchronized void remove(sun.net.www.http.HttpClient, java.lang.Object);
descriptor: (Lsun/net/www/http/HttpClient;Ljava/lang/Object;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new sun.net.www.http.KeepAliveKey
dup
aload 1
getfield sun.net.www.http.HttpClient.url:Ljava/net/URL;
aload 2
invokespecial sun.net.www.http.KeepAliveKey.<init>:(Ljava/net/URL;Ljava/lang/Object;)V
astore 3
start local 3 1: aload 0
aload 3
invokespecial java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.net.www.http.ClientVector
astore 4
start local 4 2: aload 4
ifnull 6
3: aload 4
aload 1
invokevirtual sun.net.www.http.ClientVector.remove:(Lsun/net/www/http/HttpClient;)Z
pop
4: aload 4
invokevirtual sun.net.www.http.ClientVector.isEmpty:()Z
ifeq 6
5: aload 0
aload 3
invokevirtual sun.net.www.http.KeepAliveCache.removeVector:(Lsun/net/www/http/KeepAliveKey;)V
6: StackMap locals: sun.net.www.http.KeepAliveKey sun.net.www.http.ClientVector
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/www/http/KeepAliveCache;
0 7 1 h Lsun/net/www/http/HttpClient;
0 7 2 obj Ljava/lang/Object;
1 7 3 key Lsun/net/www/http/KeepAliveKey;
2 7 4 v Lsun/net/www/http/ClientVector;
MethodParameters:
Name Flags
h
obj
synchronized void removeVector(sun.net.www.http.KeepAliveKey);
descriptor: (Lsun/net/www/http/KeepAliveKey;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.util.HashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/http/KeepAliveCache;
0 2 1 k Lsun/net/www/http/KeepAliveKey;
MethodParameters:
Name Flags
k
public synchronized sun.net.www.http.HttpClient get(java.net.URL, java.lang.Object);
descriptor: (Ljava/net/URL;Ljava/lang/Object;)Lsun/net/www/http/HttpClient;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new sun.net.www.http.KeepAliveKey
dup
aload 1
aload 2
invokespecial sun.net.www.http.KeepAliveKey.<init>:(Ljava/net/URL;Ljava/lang/Object;)V
astore 3
start local 3 1: aload 0
aload 3
invokespecial java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.net.www.http.ClientVector
astore 4
start local 4 2: aload 4
ifnonnull 4
3: aconst_null
areturn
4: StackMap locals: sun.net.www.http.KeepAliveKey sun.net.www.http.ClientVector
StackMap stack:
aload 4
invokevirtual sun.net.www.http.ClientVector.get:()Lsun/net/www/http/HttpClient;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/www/http/KeepAliveCache;
0 5 1 url Ljava/net/URL;
0 5 2 obj Ljava/lang/Object;
1 5 3 key Lsun/net/www/http/KeepAliveKey;
2 5 4 v Lsun/net/www/http/ClientVector;
MethodParameters:
Name Flags
url
obj
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
ldc 5000
invokestatic java.lang.Thread.sleep:(J)V
1: goto 3
StackMap locals:
StackMap stack: java.lang.InterruptedException
2: pop
3: StackMap locals:
StackMap stack:
aload 0
dup
astore 1
monitorenter
4: invokestatic java.lang.System.currentTimeMillis:()J
lstore 2
start local 2 5: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 6: aload 0
invokevirtual sun.net.www.http.KeepAliveCache.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 23
StackMap locals: sun.net.www.http.KeepAliveCache sun.net.www.http.KeepAliveCache long java.util.List top java.util.Iterator
StackMap stack:
7: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.net.www.http.KeepAliveKey
astore 5
start local 5 8: aload 0
aload 5
invokevirtual sun.net.www.http.KeepAliveCache.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.net.www.http.ClientVector
astore 7
start local 7 9: aload 7
dup
astore 8
monitorenter
10: aload 7
invokevirtual sun.net.www.http.ClientVector.peek:()Ljava/lang/Object;
checkcast sun.net.www.http.KeepAliveEntry
astore 9
start local 9 11: goto 16
12: StackMap locals: sun.net.www.http.KeepAliveCache sun.net.www.http.KeepAliveCache long java.util.List sun.net.www.http.KeepAliveKey java.util.Iterator sun.net.www.http.ClientVector sun.net.www.http.ClientVector sun.net.www.http.KeepAliveEntry
StackMap stack:
lload 2
aload 9
getfield sun.net.www.http.KeepAliveEntry.idleStartTime:J
lsub
aload 7
getfield sun.net.www.http.ClientVector.nap:I
i2l
lcmp
ifle 17
13: aload 7
invokevirtual sun.net.www.http.ClientVector.poll:()Ljava/lang/Object;
pop
14: aload 9
getfield sun.net.www.http.KeepAliveEntry.hc:Lsun/net/www/http/HttpClient;
invokevirtual sun.net.www.http.HttpClient.closeServer:()V
15: aload 7
invokevirtual sun.net.www.http.ClientVector.peek:()Ljava/lang/Object;
checkcast sun.net.www.http.KeepAliveEntry
astore 9
16: StackMap locals:
StackMap stack:
aload 9
ifnonnull 12
17: StackMap locals:
StackMap stack:
aload 7
invokevirtual sun.net.www.http.ClientVector.isEmpty:()Z
ifeq 19
18: aload 4
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 9 19: StackMap locals:
StackMap stack:
aload 8
monitorexit
20: goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
21: aload 8
monitorexit
22: athrow
end local 7 end local 5 23: StackMap locals: sun.net.www.http.KeepAliveCache sun.net.www.http.KeepAliveCache long java.util.List top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
24: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 27
StackMap locals:
StackMap stack:
25: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.net.www.http.KeepAliveKey
astore 5
start local 5 26: aload 0
aload 5
invokevirtual sun.net.www.http.KeepAliveCache.removeVector:(Lsun/net/www/http/KeepAliveKey;)V
end local 5 27: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 25
end local 4 end local 2 28: aload 1
monitorexit
29: goto 32
StackMap locals: sun.net.www.http.KeepAliveCache sun.net.www.http.KeepAliveCache
StackMap stack: java.lang.Throwable
30: aload 1
monitorexit
31: athrow
32: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.http.KeepAliveCache.isEmpty:()Z
ifeq 0
33: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lsun/net/www/http/KeepAliveCache;
5 28 2 currentTime J
6 28 4 keysToRemove Ljava/util/List<Lsun/net/www/http/KeepAliveKey;>;
8 23 5 key Lsun/net/www/http/KeepAliveKey;
9 23 7 v Lsun/net/www/http/ClientVector;
11 19 9 e Lsun/net/www/http/KeepAliveEntry;
26 27 5 key Lsun/net/www/http/KeepAliveKey;
Exception table:
from to target type
0 1 2 Class java.lang.InterruptedException
10 20 21 any
21 22 21 any
4 29 30 any
30 31 30 any
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.io.NotSerializableException
dup
invokespecial java.io.NotSerializableException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/http/KeepAliveCache;
0 1 1 stream Ljava/io/ObjectOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
stream
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.io.NotSerializableException
dup
invokespecial java.io.NotSerializableException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/http/KeepAliveCache;
0 1 1 stream Ljava/io/ObjectInputStream;
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
stream
}
Signature: Ljava/util/HashMap<Lsun/net/www/http/KeepAliveKey;Lsun/net/www/http/ClientVector;>;Ljava/lang/Runnable;
SourceFile: "KeepAliveCache.java"
NestMembers:
sun.net.www.http.KeepAliveCache$1
InnerClasses:
sun.net.www.http.KeepAliveCache$1