final class jdk.incubator.http.ConnectionPool
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.ConnectionPool
super_class: java.lang.Object
{
static final long KEEP_ALIVE;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final boolean DEBUG;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
final java.lang.System$Logger debug;
descriptor: Ljava/lang/System$Logger;
flags: (0x0010) ACC_FINAL
private final java.util.HashMap<jdk.incubator.http.ConnectionPool$CacheKey, java.util.LinkedList<jdk.incubator.http.HttpConnection>> plainPool;
descriptor: Ljava/util/HashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/HashMap<Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/LinkedList<Ljdk/incubator/http/HttpConnection;>;>;
private final java.util.HashMap<jdk.incubator.http.ConnectionPool$CacheKey, java.util.LinkedList<jdk.incubator.http.HttpConnection>> sslPool;
descriptor: Ljava/util/HashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/HashMap<Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/LinkedList<Ljdk/incubator/http/HttpConnection;>;>;
private final jdk.incubator.http.ConnectionPool$ExpiryList expiryList;
descriptor: Ljdk/incubator/http/ConnectionPool$ExpiryList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String dbgTag;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
boolean stopped;
descriptor: Z
flags: (0x0000)
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Ljdk/incubator/http/ConnectionPool;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.incubator.http.ConnectionPool.$assertionsDisabled:Z
3: ldc "jdk.httpclient.keepalive.timeout"
sipush 1200
4: invokestatic jdk.incubator.http.internal.common.Utils.getIntegerNetProperty:(Ljava/lang/String;I)I
i2l
putstatic jdk.incubator.http.ConnectionPool.KEEP_ALIVE:J
5: getstatic jdk.incubator.http.internal.common.Utils.DEBUG:Z
putstatic jdk.incubator.http.ConnectionPool.DEBUG:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(long);
descriptor: (J)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
ldc "ConnectionPool("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial jdk.incubator.http.ConnectionPool.<init>:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/ConnectionPool;
0 2 1 clientId J
MethodParameters:
Name Flags
clientId
private void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
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
aload 0
invokedynamic get(Ljdk/incubator/http/ConnectionPool;)Ljava/util/function/Supplier;
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;
jdk/incubator/http/ConnectionPool.dbgString()Ljava/lang/String; (5)
()Ljava/lang/String;
getstatic jdk.incubator.http.ConnectionPool.DEBUG:Z
invokestatic jdk.incubator.http.internal.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljava/lang/System$Logger;
putfield jdk.incubator.http.ConnectionPool.debug:Ljava/lang/System$Logger;
2: aload 0
aload 1
putfield jdk.incubator.http.ConnectionPool.dbgTag:Ljava/lang/String;
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.incubator.http.ConnectionPool.plainPool:Ljava/util/HashMap;
4: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.incubator.http.ConnectionPool.sslPool:Ljava/util/HashMap;
5: aload 0
new jdk.incubator.http.ConnectionPool$ExpiryList
dup
invokespecial jdk.incubator.http.ConnectionPool$ExpiryList.<init>:()V
putfield jdk.incubator.http.ConnectionPool.expiryList:Ljdk/incubator/http/ConnectionPool$ExpiryList;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/http/ConnectionPool;
0 7 1 tag Ljava/lang/String;
MethodParameters:
Name Flags
tag
final java.lang.String dbgString();
descriptor: ()Ljava/lang/String;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.ConnectionPool.dbgTag:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/ConnectionPool;
void start();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic jdk.incubator.http.ConnectionPool.$assertionsDisabled:Z
ifne 1
aload 0
getfield jdk.incubator.http.ConnectionPool.stopped:Z
ifeq 1
new java.lang.AssertionError
dup
ldc "Already stopped"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/ConnectionPool;
static jdk.incubator.http.ConnectionPool$CacheKey cacheKey(java.net.InetSocketAddress, java.net.InetSocketAddress);
descriptor: (Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;)Ljdk/incubator/http/ConnectionPool$CacheKey;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new jdk.incubator.http.ConnectionPool$CacheKey
dup
aload 0
aload 1
invokespecial jdk.incubator.http.ConnectionPool$CacheKey.<init>:(Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 destination Ljava/net/InetSocketAddress;
0 1 1 proxy Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
destination
proxy
synchronized jdk.incubator.http.HttpConnection getConnection(boolean, java.net.InetSocketAddress, java.net.InetSocketAddress);
descriptor: (ZLjava/net/InetSocketAddress;Ljava/net/InetSocketAddress;)Ljdk/incubator/http/HttpConnection;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.incubator.http.ConnectionPool.stopped:Z
ifeq 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
new jdk.incubator.http.ConnectionPool$CacheKey
dup
aload 2
aload 3
invokespecial jdk.incubator.http.ConnectionPool$CacheKey.<init>:(Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;)V
astore 4
start local 4 2: iload 1
ifeq 3
aload 0
aload 4
aload 0
getfield jdk.incubator.http.ConnectionPool.sslPool:Ljava/util/HashMap;
invokevirtual jdk.incubator.http.ConnectionPool.findConnection:(Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/HashMap;)Ljdk/incubator/http/HttpConnection;
goto 4
3: StackMap locals: jdk.incubator.http.ConnectionPool$CacheKey
StackMap stack:
aload 0
aload 4
aload 0
getfield jdk.incubator.http.ConnectionPool.plainPool:Ljava/util/HashMap;
invokevirtual jdk.incubator.http.ConnectionPool.findConnection:(Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/HashMap;)Ljdk/incubator/http/HttpConnection;
4: StackMap locals:
StackMap stack: jdk.incubator.http.HttpConnection
astore 5
start local 5 5: aload 5
areturn
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 6 0 this Ljdk/incubator/http/ConnectionPool;
0 6 1 secure Z
0 6 2 addr Ljava/net/InetSocketAddress;
0 6 3 proxy Ljava/net/InetSocketAddress;
2 6 4 key Ljdk/incubator/http/ConnectionPool$CacheKey;
5 6 5 c Ljdk/incubator/http/HttpConnection;
MethodParameters:
Name Flags
secure
addr
proxy
void returnToPool(jdk.incubator.http.HttpConnection);
descriptor: (Ljdk/incubator/http/HttpConnection;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.time.Instant.now:()Ljava/time/Instant;
getstatic jdk.incubator.http.ConnectionPool.KEEP_ALIVE:J
invokevirtual jdk.incubator.http.ConnectionPool.returnToPool:(Ljdk/incubator/http/HttpConnection;Ljava/time/Instant;J)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/ConnectionPool;
0 2 1 conn Ljdk/incubator/http/HttpConnection;
MethodParameters:
Name Flags
conn
void returnToPool(jdk.incubator.http.HttpConnection, java.time.Instant, long);
descriptor: (Ljdk/incubator/http/HttpConnection;Ljava/time/Instant;J)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual jdk.incubator.http.ConnectionPool.registerCleanupTrigger:(Ljdk/incubator/http/HttpConnection;)Ljdk/incubator/http/ConnectionPool$CleanupTrigger;
astore 5
start local 5 1: aload 0
dup
astore 6
monitorenter
2: aload 5
invokevirtual jdk.incubator.http.ConnectionPool$CleanupTrigger.isDone:()Z
ifeq 5
3: aload 6
monitorexit
4: return
5: StackMap locals: jdk.incubator.http.ConnectionPool$CleanupTrigger jdk.incubator.http.ConnectionPool
StackMap stack:
aload 0
getfield jdk.incubator.http.ConnectionPool.stopped:Z
ifeq 9
6: aload 1
invokevirtual jdk.incubator.http.HttpConnection.close:()V
7: aload 6
monitorexit
8: return
9: StackMap locals:
StackMap stack:
aload 1
instanceof jdk.incubator.http.PlainHttpConnection
ifeq 12
10: aload 0
aload 1
aload 0
getfield jdk.incubator.http.ConnectionPool.plainPool:Ljava/util/HashMap;
invokevirtual jdk.incubator.http.ConnectionPool.putConnection:(Ljdk/incubator/http/HttpConnection;Ljava/util/HashMap;)V
11: goto 14
12: StackMap locals:
StackMap stack:
getstatic jdk.incubator.http.ConnectionPool.$assertionsDisabled:Z
ifne 13
aload 1
invokevirtual jdk.incubator.http.HttpConnection.isSecure:()Z
ifne 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 0
getfield jdk.incubator.http.ConnectionPool.sslPool:Ljava/util/HashMap;
invokevirtual jdk.incubator.http.ConnectionPool.putConnection:(Ljdk/incubator/http/HttpConnection;Ljava/util/HashMap;)V
14: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.ConnectionPool.expiryList:Ljdk/incubator/http/ConnectionPool$ExpiryList;
aload 1
aload 2
lload 3
invokevirtual jdk.incubator.http.ConnectionPool$ExpiryList.add:(Ljdk/incubator/http/HttpConnection;Ljava/time/Instant;J)V
15: aload 6
monitorexit
16: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
17: aload 6
monitorexit
18: athrow
19: StackMap locals:
StackMap stack:
return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/incubator/http/ConnectionPool;
0 20 1 conn Ljdk/incubator/http/HttpConnection;
0 20 2 now Ljava/time/Instant;
0 20 3 keepAlive J
1 20 5 cleanup Ljdk/incubator/http/ConnectionPool$CleanupTrigger;
Exception table:
from to target type
2 4 17 any
5 8 17 any
9 16 17 any
17 18 17 any
MethodParameters:
Name Flags
conn
now
keepAlive
private jdk.incubator.http.ConnectionPool$CleanupTrigger registerCleanupTrigger(jdk.incubator.http.HttpConnection);
descriptor: (Ljdk/incubator/http/HttpConnection;)Ljdk/incubator/http/ConnectionPool$CleanupTrigger;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: new jdk.incubator.http.ConnectionPool$CleanupTrigger
dup
aload 0
aload 1
invokespecial jdk.incubator.http.ConnectionPool$CleanupTrigger.<init>:(Ljdk/incubator/http/ConnectionPool;Ljdk/incubator/http/HttpConnection;)V
astore 2
start local 2 1: aload 1
invokevirtual jdk.incubator.http.HttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
astore 3
start local 3 2: aload 0
getfield jdk.incubator.http.ConnectionPool.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "registering %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
3: aload 3
aload 2
aload 2
invokeinterface jdk.incubator.http.internal.common.FlowTube.connectFlows:(Ljdk/incubator/http/internal/common/FlowTube$TubePublisher;Ljdk/incubator/http/internal/common/FlowTube$TubeSubscriber;)V
4: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/ConnectionPool;
0 5 1 conn Ljdk/incubator/http/HttpConnection;
1 5 2 cleanup Ljdk/incubator/http/ConnectionPool$CleanupTrigger;
2 5 3 flow Ljdk/incubator/http/internal/common/FlowTube;
MethodParameters:
Name Flags
conn
private jdk.incubator.http.HttpConnection findConnection(jdk.incubator.http.ConnectionPool$CacheKey, java.util.HashMap<jdk.incubator.http.ConnectionPool$CacheKey, java.util.LinkedList<jdk.incubator.http.HttpConnection>>);
descriptor: (Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/HashMap;)Ljdk/incubator/http/HttpConnection;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.LinkedList
astore 3
start local 3 1: aload 3
ifnull 2
aload 3
invokevirtual java.util.LinkedList.isEmpty:()Z
ifeq 3
2: StackMap locals: java.util.LinkedList
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.util.LinkedList.removeFirst:()Ljava/lang/Object;
checkcast jdk.incubator.http.HttpConnection
astore 4
start local 4 4: aload 0
getfield jdk.incubator.http.ConnectionPool.expiryList:Ljdk/incubator/http/ConnectionPool$ExpiryList;
aload 4
invokevirtual jdk.incubator.http.ConnectionPool$ExpiryList.remove:(Ljdk/incubator/http/HttpConnection;)V
5: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/ConnectionPool;
0 6 1 key Ljdk/incubator/http/ConnectionPool$CacheKey;
0 6 2 pool Ljava/util/HashMap<Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/LinkedList<Ljdk/incubator/http/HttpConnection;>;>;
1 6 3 l Ljava/util/LinkedList<Ljdk/incubator/http/HttpConnection;>;
4 6 4 c Ljdk/incubator/http/HttpConnection;
Signature: (Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/HashMap<Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/LinkedList<Ljdk/incubator/http/HttpConnection;>;>;)Ljdk/incubator/http/HttpConnection;
MethodParameters:
Name Flags
key
pool
private boolean removeFromPool(jdk.incubator.http.HttpConnection, java.util.HashMap<jdk.incubator.http.ConnectionPool$CacheKey, java.util.LinkedList<jdk.incubator.http.HttpConnection>>);
descriptor: (Ljdk/incubator/http/HttpConnection;Ljava/util/HashMap;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.incubator.http.ConnectionPool.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.incubator.http.HttpConnection.cacheKey:()Ljdk/incubator/http/ConnectionPool$CacheKey;
astore 3
start local 3 2: aload 2
aload 3
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 4
start local 4 3: aload 4
ifnull 4
aload 4
invokeinterface java.util.List.isEmpty:()Z
ifeq 6
4: StackMap locals: jdk.incubator.http.ConnectionPool$CacheKey java.util.List
StackMap stack:
aload 2
aload 3
invokevirtual java.util.HashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 4
aload 1
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
ireturn
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 Ljdk/incubator/http/ConnectionPool;
0 7 1 c Ljdk/incubator/http/HttpConnection;
0 7 2 pool Ljava/util/HashMap<Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/LinkedList<Ljdk/incubator/http/HttpConnection;>;>;
2 7 3 k Ljdk/incubator/http/ConnectionPool$CacheKey;
3 7 4 l Ljava/util/List<Ljdk/incubator/http/HttpConnection;>;
Signature: (Ljdk/incubator/http/HttpConnection;Ljava/util/HashMap<Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/LinkedList<Ljdk/incubator/http/HttpConnection;>;>;)Z
MethodParameters:
Name Flags
c
pool
private void putConnection(jdk.incubator.http.HttpConnection, java.util.HashMap<jdk.incubator.http.ConnectionPool$CacheKey, java.util.LinkedList<jdk.incubator.http.HttpConnection>>);
descriptor: (Ljdk/incubator/http/HttpConnection;Ljava/util/HashMap;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual jdk.incubator.http.HttpConnection.cacheKey:()Ljdk/incubator/http/ConnectionPool$CacheKey;
astore 3
start local 3 1: aload 2
aload 3
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.LinkedList
astore 4
start local 4 2: aload 4
ifnonnull 5
3: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 4
4: aload 2
aload 3
aload 4
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: StackMap locals: jdk.incubator.http.ConnectionPool$CacheKey java.util.LinkedList
StackMap stack:
aload 4
aload 1
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
6: 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 Ljdk/incubator/http/ConnectionPool;
0 7 1 c Ljdk/incubator/http/HttpConnection;
0 7 2 pool Ljava/util/HashMap<Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/LinkedList<Ljdk/incubator/http/HttpConnection;>;>;
1 7 3 key Ljdk/incubator/http/ConnectionPool$CacheKey;
2 7 4 l Ljava/util/LinkedList<Ljdk/incubator/http/HttpConnection;>;
Signature: (Ljdk/incubator/http/HttpConnection;Ljava/util/HashMap<Ljdk/incubator/http/ConnectionPool$CacheKey;Ljava/util/LinkedList<Ljdk/incubator/http/HttpConnection;>;>;)V
MethodParameters:
Name Flags
c
pool
long purgeExpiredConnectionsAndReturnNextDeadline();
descriptor: ()J
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.ConnectionPool.expiryList:Ljdk/incubator/http/ConnectionPool$ExpiryList;
invokevirtual jdk.incubator.http.ConnectionPool$ExpiryList.purgeMaybeRequired:()Z
ifne 1
lconst_0
lreturn
1: StackMap locals:
StackMap stack:
aload 0
invokestatic java.time.Instant.now:()Ljava/time/Instant;
invokevirtual jdk.incubator.http.ConnectionPool.purgeExpiredConnectionsAndReturnNextDeadline:(Ljava/time/Instant;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/ConnectionPool;
long purgeExpiredConnectionsAndReturnNextDeadline(java.time.Instant);
descriptor: (Ljava/time/Instant;)J
flags: (0x0000)
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: lconst_0
lstore 2
start local 2 1: aload 0
getfield jdk.incubator.http.ConnectionPool.expiryList:Ljdk/incubator/http/ConnectionPool$ExpiryList;
invokevirtual jdk.incubator.http.ConnectionPool$ExpiryList.purgeMaybeRequired:()Z
ifne 2
lload 2
lreturn
2: StackMap locals: long
StackMap stack:
aload 0
dup
astore 5
monitorenter
3: aload 0
getfield jdk.incubator.http.ConnectionPool.expiryList:Ljdk/incubator/http/ConnectionPool$ExpiryList;
aload 1
invokevirtual jdk.incubator.http.ConnectionPool$ExpiryList.purgeUntil:(Ljava/time/Instant;)Ljava/util/List;
astore 4
start local 4 4: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 7
goto 11
StackMap locals: jdk.incubator.http.ConnectionPool java.time.Instant long java.util.List jdk.incubator.http.ConnectionPool top java.util.Iterator
StackMap stack:
5: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.incubator.http.HttpConnection
astore 6
start local 6 6: aload 6
instanceof jdk.incubator.http.PlainHttpConnection
ifeq 9
7: aload 0
aload 6
aload 0
getfield jdk.incubator.http.ConnectionPool.plainPool:Ljava/util/HashMap;
invokevirtual jdk.incubator.http.ConnectionPool.removeFromPool:(Ljdk/incubator/http/HttpConnection;Ljava/util/HashMap;)Z
istore 8
start local 8 8: getstatic jdk.incubator.http.ConnectionPool.$assertionsDisabled:Z
ifne 11
iload 8
ifne 11
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 8 9: StackMap locals: jdk.incubator.http.ConnectionPool java.time.Instant long java.util.List jdk.incubator.http.ConnectionPool jdk.incubator.http.HttpConnection java.util.Iterator
StackMap stack:
aload 0
aload 6
aload 0
getfield jdk.incubator.http.ConnectionPool.sslPool:Ljava/util/HashMap;
invokevirtual jdk.incubator.http.ConnectionPool.removeFromPool:(Ljdk/incubator/http/HttpConnection;Ljava/util/HashMap;)Z
istore 8
start local 8 10: getstatic jdk.incubator.http.ConnectionPool.$assertionsDisabled:Z
ifne 11
iload 8
ifne 11
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 8 end local 6 11: StackMap locals: jdk.incubator.http.ConnectionPool java.time.Instant long java.util.List jdk.incubator.http.ConnectionPool top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
12: aload 1
13: aload 0
getfield jdk.incubator.http.ConnectionPool.expiryList:Ljdk/incubator/http/ConnectionPool$ExpiryList;
invokevirtual jdk.incubator.http.ConnectionPool$ExpiryList.nextExpiryDeadline:()Ljava/util/Optional;
aload 1
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.time.temporal.Temporal
14: getstatic java.time.temporal.ChronoUnit.MILLIS:Ljava/time/temporal/ChronoUnit;
15: invokevirtual java.time.Instant.until:(Ljava/time/temporal/Temporal;Ljava/time/temporal/TemporalUnit;)J
lstore 2
16: aload 5
monitorexit
17: goto 20
end local 4 StackMap locals: jdk.incubator.http.ConnectionPool java.time.Instant long top jdk.incubator.http.ConnectionPool
StackMap stack: java.lang.Throwable
18: aload 5
monitorexit
19: athrow
start local 4 20: StackMap locals: jdk.incubator.http.ConnectionPool java.time.Instant long java.util.List
StackMap stack:
aload 4
aload 0
invokedynamic accept(Ljdk/incubator/http/ConnectionPool;)Ljava/util/function/Consumer;
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;)V
jdk/incubator/http/ConnectionPool.close(Ljdk/incubator/http/HttpConnection;)V (7)
(Ljdk/incubator/http/HttpConnection;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
21: lload 2
lreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Ljdk/incubator/http/ConnectionPool;
0 22 1 now Ljava/time/Instant;
1 22 2 nextPurge J
4 18 4 closelist Ljava/util/List<Ljdk/incubator/http/HttpConnection;>;
20 22 4 closelist Ljava/util/List<Ljdk/incubator/http/HttpConnection;>;
6 11 6 c Ljdk/incubator/http/HttpConnection;
8 9 8 wasPresent Z
10 11 8 wasPresent Z
Exception table:
from to target type
3 17 18 any
18 19 18 any
MethodParameters:
Name Flags
now
private void close(jdk.incubator.http.HttpConnection);
descriptor: (Ljdk/incubator/http/HttpConnection;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.incubator.http.HttpConnection.close:()V
1: goto 3
StackMap locals:
StackMap stack: java.lang.Throwable
2: pop
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/ConnectionPool;
0 4 1 c Ljdk/incubator/http/HttpConnection;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
MethodParameters:
Name Flags
c
void stop();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=1
start local 0 0: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
astore 1
start local 1 1: aload 0
dup
astore 2
monitorenter
2: aload 0
iconst_1
putfield jdk.incubator.http.ConnectionPool.stopped:Z
3: aload 0
getfield jdk.incubator.http.ConnectionPool.expiryList:Ljdk/incubator/http/ConnectionPool$ExpiryList;
invokevirtual jdk.incubator.http.ConnectionPool$ExpiryList.stream:()Ljava/util/stream/Stream;
4: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/incubator/http/ConnectionPool.lambda$3(Ljdk/incubator/http/ConnectionPool$ExpiryEntry;)Ljdk/incubator/http/HttpConnection; (6)
(Ljdk/incubator/http/ConnectionPool$ExpiryEntry;)Ljdk/incubator/http/HttpConnection;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
5: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
6: astore 1
7: aload 0
getfield jdk.incubator.http.ConnectionPool.expiryList:Ljdk/incubator/http/ConnectionPool$ExpiryList;
invokevirtual jdk.incubator.http.ConnectionPool$ExpiryList.clear:()V
8: aload 0
getfield jdk.incubator.http.ConnectionPool.plainPool:Ljava/util/HashMap;
invokevirtual java.util.HashMap.clear:()V
9: aload 0
getfield jdk.incubator.http.ConnectionPool.sslPool:Ljava/util/HashMap;
invokevirtual java.util.HashMap.clear:()V
10: aload 2
monitorexit
11: goto 17
StackMap locals: jdk.incubator.http.ConnectionPool java.util.List jdk.incubator.http.ConnectionPool
StackMap stack: java.lang.Throwable
12: aload 2
monitorexit
13: athrow
14: StackMap locals: jdk.incubator.http.ConnectionPool java.util.List
StackMap stack: java.lang.Throwable
astore 3
15: aload 1
aload 0
invokedynamic accept(Ljdk/incubator/http/ConnectionPool;)Ljava/util/function/Consumer;
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;)V
jdk/incubator/http/ConnectionPool.close(Ljdk/incubator/http/HttpConnection;)V (7)
(Ljdk/incubator/http/HttpConnection;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
16: aload 3
athrow
17: StackMap locals:
StackMap stack:
aload 1
aload 0
invokedynamic accept(Ljdk/incubator/http/ConnectionPool;)Ljava/util/function/Consumer;
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;)V
jdk/incubator/http/ConnectionPool.close(Ljdk/incubator/http/HttpConnection;)V (7)
(Ljdk/incubator/http/HttpConnection;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
18: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/incubator/http/ConnectionPool;
1 19 1 closelist Ljava/util/List<Ljdk/incubator/http/HttpConnection;>;
Exception table:
from to target type
2 11 12 any
12 13 12 any
1 14 14 any
void cleanup(jdk.incubator.http.HttpConnection, java.lang.Throwable);
descriptor: (Ljdk/incubator/http/HttpConnection;Ljava/lang/Throwable;)V
flags: (0x0000)
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.incubator.http.ConnectionPool.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
1: ldc "%s : ConnectionPool.cleanup(%s)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
2: aload 1
invokevirtual jdk.incubator.http.HttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
aastore
dup
iconst_1
3: aload 2
aastore
4: invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
5: aload 0
dup
astore 3
monitorenter
6: aload 1
instanceof jdk.incubator.http.PlainHttpConnection
ifeq 9
7: aload 0
aload 1
aload 0
getfield jdk.incubator.http.ConnectionPool.plainPool:Ljava/util/HashMap;
invokevirtual jdk.incubator.http.ConnectionPool.removeFromPool:(Ljdk/incubator/http/HttpConnection;Ljava/util/HashMap;)Z
pop
8: goto 11
9: StackMap locals: jdk.incubator.http.ConnectionPool
StackMap stack:
getstatic jdk.incubator.http.ConnectionPool.$assertionsDisabled:Z
ifne 10
aload 1
invokevirtual jdk.incubator.http.HttpConnection.isSecure:()Z
ifne 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 0
getfield jdk.incubator.http.ConnectionPool.sslPool:Ljava/util/HashMap;
invokevirtual jdk.incubator.http.ConnectionPool.removeFromPool:(Ljdk/incubator/http/HttpConnection;Ljava/util/HashMap;)Z
pop
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.ConnectionPool.expiryList:Ljdk/incubator/http/ConnectionPool$ExpiryList;
aload 1
invokevirtual jdk.incubator.http.ConnectionPool$ExpiryList.remove:(Ljdk/incubator/http/HttpConnection;)V
12: aload 3
monitorexit
13: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
14: aload 3
monitorexit
15: athrow
16: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.incubator.http.HttpConnection.close:()V
17: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/incubator/http/ConnectionPool;
0 18 1 c Ljdk/incubator/http/HttpConnection;
0 18 2 error Ljava/lang/Throwable;
Exception table:
from to target type
6 13 14 any
14 15 14 any
MethodParameters:
Name Flags
c
error
private static jdk.incubator.http.HttpConnection lambda$3(jdk.incubator.http.ConnectionPool$ExpiryEntry);
descriptor: (Ljdk/incubator/http/ConnectionPool$ExpiryEntry;)Ljdk/incubator/http/HttpConnection;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.ConnectionPool$ExpiryEntry.connection:Ljdk/incubator/http/HttpConnection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Ljdk/incubator/http/ConnectionPool$ExpiryEntry;
}
SourceFile: "ConnectionPool.java"
NestMembers:
jdk.incubator.http.ConnectionPool$CacheKey jdk.incubator.http.ConnectionPool$CleanupTrigger jdk.incubator.http.ConnectionPool$ExpiryEntry jdk.incubator.http.ConnectionPool$ExpiryList
InnerClasses:
public abstract Logger = java.lang.System$Logger of java.lang.System
public final Level = java.lang.System$Logger$Level of java.lang.System$Logger
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
CacheKey = jdk.incubator.http.ConnectionPool$CacheKey of jdk.incubator.http.ConnectionPool
private final CleanupTrigger = jdk.incubator.http.ConnectionPool$CleanupTrigger of jdk.incubator.http.ConnectionPool
final ExpiryEntry = jdk.incubator.http.ConnectionPool$ExpiryEntry of jdk.incubator.http.ConnectionPool
private final ExpiryList = jdk.incubator.http.ConnectionPool$ExpiryList of jdk.incubator.http.ConnectionPool
public abstract TubePublisher = jdk.incubator.http.internal.common.FlowTube$TubePublisher of jdk.incubator.http.internal.common.FlowTube
public abstract TubeSubscriber = jdk.incubator.http.internal.common.FlowTube$TubeSubscriber of jdk.incubator.http.internal.common.FlowTube