final class sun.security.pkcs11.SessionManager$Pool
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.SessionManager$Pool
super_class: java.lang.Object
{
private final sun.security.pkcs11.SessionManager mgr;
descriptor: Lsun/security/pkcs11/SessionManager;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<sun.security.pkcs11.Session> pool;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lsun/security/pkcs11/Session;>;
void <init>(sun.security.pkcs11.SessionManager);
descriptor: (Lsun/security/pkcs11/SessionManager;)V
flags: (0x0000)
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 1
putfield sun.security.pkcs11.SessionManager$Pool.mgr:Lsun/security/pkcs11/SessionManager;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/List;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/pkcs11/SessionManager$Pool;
0 4 1 mgr Lsun/security/pkcs11/SessionManager;
MethodParameters:
Name Flags
mgr
boolean remove(sun.security.pkcs11.Session);
descriptor: (Lsun/security/pkcs11/Session;)Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/List;
aload 1
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/SessionManager$Pool;
0 1 1 session Lsun/security/pkcs11/Session;
MethodParameters:
Name Flags
session
sun.security.pkcs11.Session poll();
descriptor: ()Lsun/security/pkcs11/Session;
flags: (0x0000)
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 1
start local 1 1: iload 1
ifne 3
2: aconst_null
areturn
3: StackMap locals: int
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/List;
iload 1
iconst_1
isub
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
checkcast sun.security.pkcs11.Session
astore 2
start local 2 4: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs11/SessionManager$Pool;
1 5 1 n I
4 5 2 session Lsun/security/pkcs11/Session;
void release(sun.security.pkcs11.Session);
descriptor: (Lsun/security/pkcs11/Session;)V
flags: (0x0000)
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: aload 1
invokevirtual sun.security.pkcs11.Session.hasObjects:()Z
ifeq 3
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 2
start local 2 4: iload 2
iconst_5
if_icmpge 6
5: return
6: StackMap locals: int
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.security.pkcs11.Session
astore 3
start local 3 7: invokestatic java.lang.System.currentTimeMillis:()J
lstore 4
start local 4 8: aload 1
lload 4
invokevirtual sun.security.pkcs11.Session.isLive:(J)Z
ifeq 10
aload 3
lload 4
invokevirtual sun.security.pkcs11.Session.isLive:(J)Z
ifeq 10
9: return
10: StackMap locals: sun.security.pkcs11.Session long
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/List;
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
11: iconst_0
istore 6
start local 6 12: goto 18
13: StackMap locals: int
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/List;
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast sun.security.pkcs11.Session
astore 3
14: aload 3
lload 4
invokevirtual sun.security.pkcs11.Session.isLive:(J)Z
ifeq 16
15: goto 19
16: StackMap locals:
StackMap stack:
iinc 6 1
17: aload 0
getfield sun.security.pkcs11.SessionManager$Pool.mgr:Lsun/security/pkcs11/SessionManager;
aload 3
invokevirtual sun.security.pkcs11.SessionManager.closeSession:(Lsun/security/pkcs11/Session;)V
18: StackMap locals:
StackMap stack:
iload 6
iload 2
iconst_1
isub
if_icmplt 13
19: StackMap locals:
StackMap stack:
getstatic sun.security.pkcs11.SessionManager.debug:Lsun/security/util/Debug;
ifnull 23
20: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Closing "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 6
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " idle sessions, active: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
21: aload 0
getfield sun.security.pkcs11.SessionManager$Pool.mgr:Lsun/security/pkcs11/SessionManager;
getfield sun.security.pkcs11.SessionManager.activeSessions:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
22: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
23: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/List;
iconst_0
iload 6
invokeinterface java.util.List.subList:(II)Ljava/util/List;
astore 7
start local 7 24: aload 7
invokeinterface java.util.List.clear:()V
25: return
end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lsun/security/pkcs11/SessionManager$Pool;
0 26 1 session Lsun/security/pkcs11/Session;
4 26 2 n I
7 26 3 oldestSession Lsun/security/pkcs11/Session;
8 26 4 time J
12 26 6 i I
24 26 7 subList Ljava/util/List<Lsun/security/pkcs11/Session;>;
MethodParameters:
Name Flags
session
}
SourceFile: "SessionManager.java"
NestHost: sun.security.pkcs11.SessionManager
InnerClasses:
private final Pool = sun.security.pkcs11.SessionManager$Pool of sun.security.pkcs11.SessionManager