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 9
1: new sun.security.action.GetIntegerAction
dup
ldc "http.maxConnections"
2: iconst_5
3: invokespecial sun.security.action.GetIntegerAction.<init>:(Ljava/lang/String;I)V
4: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Integer
5: invokevirtual java.lang.Integer.intValue:()I
6: putstatic sun.net.www.http.KeepAliveCache.result:I
7: getstatic sun.net.www.http.KeepAliveCache.result:I
ifgt 9
8: iconst_5
putstatic sun.net.www.http.KeepAliveCache.result:I
9: 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 11
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
10: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
end local 5 11: 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 12: 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 13: aload 6
ifnonnull 22
14: aload 3
invokevirtual sun.net.www.http.HttpClient.getKeepAliveTimeout:()I
istore 7
start local 7 15: new sun.net.www.http.ClientVector
dup
iload 7
ifle 17
16: iload 7
sipush 1000
imul
goto 18
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 15 new 15
17: sipush 5000
18: 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 15 new 15 int
invokespecial sun.net.www.http.ClientVector.<init>:(I)V
astore 6
19: aload 6
aload 3
invokevirtual sun.net.www.http.ClientVector.put:(Lsun/net/www/http/HttpClient;)V
20: aload 0
aload 5
aload 6
invokespecial java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 21: goto 23
22: StackMap locals:
StackMap stack:
aload 6
aload 3
invokevirtual sun.net.www.http.ClientVector.put:(Lsun/net/www/http/HttpClient;)V
23: 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 24 0 this Lsun/net/www/http/KeepAliveCache;
0 24 1 url Ljava/net/URL;
0 24 2 obj Ljava/lang/Object;
0 24 3 http Lsun/net/www/http/HttpClient;
3 24 4 startThread Z
9 11 5 cache Lsun/net/www/http/KeepAliveCache;
12 24 5 key Lsun/net/www/http/KeepAliveKey;
13 24 6 v Lsun/net/www/http/ClientVector;
15 21 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:(Ljava/lang/Object;)Z
pop
4: aload 4
invokevirtual sun.net.www.http.ClientVector.empty:()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=12, 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
6: astore 4
start local 4 7: aload 0
invokevirtual sun.net.www.http.KeepAliveCache.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 26
StackMap locals: sun.net.www.http.KeepAliveCache sun.net.www.http.KeepAliveCache long java.util.ArrayList top java.util.Iterator
StackMap stack:
8: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.net.www.http.KeepAliveKey
astore 5
start local 5 9: 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 10: aload 7
dup
astore 8
monitorenter
11: iconst_0
istore 9
start local 9 12: goto 18
13: StackMap locals: sun.net.www.http.KeepAliveCache sun.net.www.http.KeepAliveCache long java.util.ArrayList sun.net.www.http.KeepAliveKey java.util.Iterator sun.net.www.http.ClientVector sun.net.www.http.ClientVector int
StackMap stack:
aload 7
iload 9
invokevirtual sun.net.www.http.ClientVector.elementAt:(I)Ljava/lang/Object;
checkcast sun.net.www.http.KeepAliveEntry
astore 10
start local 10 14: lload 2
aload 10
getfield sun.net.www.http.KeepAliveEntry.idleStartTime:J
lsub
aload 7
getfield sun.net.www.http.ClientVector.nap:I
i2l
lcmp
ifle 19
15: aload 10
getfield sun.net.www.http.KeepAliveEntry.hc:Lsun/net/www/http/HttpClient;
astore 11
start local 11 16: aload 11
invokevirtual sun.net.www.http.HttpClient.closeServer:()V
end local 11 end local 10 17: iinc 9 1
StackMap locals:
StackMap stack:
18: iload 9
aload 7
invokevirtual sun.net.www.http.ClientVector.size:()I
if_icmplt 13
19: StackMap locals:
StackMap stack:
aload 7
iconst_0
iload 9
invokevirtual sun.net.www.http.ClientVector.subList:(II)Ljava/util/List;
invokeinterface java.util.List.clear:()V
20: aload 7
invokevirtual sun.net.www.http.ClientVector.size:()I
ifne 22
21: aload 4
aload 5
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 9 22: StackMap locals:
StackMap stack:
aload 8
monitorexit
23: goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
24: aload 8
monitorexit
25: athrow
end local 7 end local 5 26: StackMap locals: sun.net.www.http.KeepAliveCache sun.net.www.http.KeepAliveCache long java.util.ArrayList top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
27: aload 4
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 6
goto 30
StackMap locals:
StackMap stack:
28: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.net.www.http.KeepAliveKey
astore 5
start local 5 29: aload 0
aload 5
invokevirtual sun.net.www.http.KeepAliveCache.removeVector:(Lsun/net/www/http/KeepAliveKey;)V
end local 5 30: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 28
end local 4 end local 2 31: aload 1
monitorexit
32: goto 35
StackMap locals: sun.net.www.http.KeepAliveCache sun.net.www.http.KeepAliveCache
StackMap stack: java.lang.Throwable
33: aload 1
monitorexit
34: athrow
35: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.http.KeepAliveCache.size:()I
36: ifgt 0
37: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lsun/net/www/http/KeepAliveCache;
5 31 2 currentTime J
7 31 4 keysToRemove Ljava/util/ArrayList<Lsun/net/www/http/KeepAliveKey;>;
9 26 5 key Lsun/net/www/http/KeepAliveKey;
10 26 7 v Lsun/net/www/http/ClientVector;
12 22 9 i I
14 17 10 e Lsun/net/www/http/KeepAliveEntry;
16 17 11 h Lsun/net/www/http/HttpClient;
29 30 5 key Lsun/net/www/http/KeepAliveKey;
Exception table:
from to target type
0 1 2 Class java.lang.InterruptedException
11 23 24 any
24 25 24 any
4 32 33 any
33 34 33 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