public final class sun.security.pkcs11.SessionManager$Pool
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, 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.AbstractQueue<sun.security.pkcs11.Session> pool;
descriptor: Ljava/util/AbstractQueue;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/AbstractQueue<Lsun/security/pkcs11/Session;>;
private final int SESSION_MAX;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
ConstantValue: 5
void <init>(sun.security.pkcs11.SessionManager, boolean);
descriptor: (Lsun/security/pkcs11/SessionManager;Z)V
flags: (0x0000)
Code:
stack=4, 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
iconst_5
putfield sun.security.pkcs11.SessionManager$Pool.SESSION_MAX:I
2: aload 0
aload 1
putfield sun.security.pkcs11.SessionManager$Pool.mgr:Lsun/security/pkcs11/SessionManager;
3: iload 2
ifeq 6
4: aload 0
new java.util.concurrent.LinkedBlockingQueue
dup
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:()V
putfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/AbstractQueue;
5: goto 7
6: StackMap locals: sun.security.pkcs11.SessionManager$Pool sun.security.pkcs11.SessionManager int
StackMap stack:
aload 0
new java.util.concurrent.LinkedBlockingQueue
dup
iconst_5
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:(I)V
putfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/AbstractQueue;
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/pkcs11/SessionManager$Pool;
0 8 1 mgr Lsun/security/pkcs11/SessionManager;
0 8 2 obj Z
MethodParameters:
Name Flags
mgr
obj
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/AbstractQueue;
aload 1
invokevirtual java.util.AbstractQueue.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=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/AbstractQueue;
invokevirtual java.util.AbstractQueue.poll:()Ljava/lang/Object;
checkcast sun.security.pkcs11.Session
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/SessionManager$Pool;
void release(sun.security.pkcs11.Session);
descriptor: (Lsun/security/pkcs11/Session;)V
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/AbstractQueue;
aload 1
invokevirtual java.util.AbstractQueue.offer:(Ljava/lang/Object;)Z
ifne 3
1: aload 0
getfield sun.security.pkcs11.SessionManager$Pool.mgr:Lsun/security/pkcs11/SessionManager;
aload 1
invokevirtual sun.security.pkcs11.SessionManager.closeSession:(Lsun/security/pkcs11/Session;)V
2: aload 0
invokevirtual sun.security.pkcs11.SessionManager$Pool.free:()V
3: StackMap locals:
StackMap stack:
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 session Lsun/security/pkcs11/Session;
MethodParameters:
Name Flags
session
void free();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=1
start local 0 0: iconst_5
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: invokestatic java.lang.System.currentTimeMillis:()J
lstore 4
start local 4 3: StackMap locals: sun.security.pkcs11.SessionManager$Pool int int top long
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/AbstractQueue;
invokevirtual java.util.AbstractQueue.peek:()Ljava/lang/Object;
checkcast sun.security.pkcs11.Session
astore 3
start local 3 4: aload 3
ifnull 11
aload 3
lload 4
invokevirtual sun.security.pkcs11.Session.isLive:(J)Z
ifne 11
5: aload 0
getfield sun.security.pkcs11.SessionManager$Pool.pool:Ljava/util/AbstractQueue;
aload 3
invokevirtual java.util.AbstractQueue.remove:(Ljava/lang/Object;)Z
ifne 7
6: goto 11
7: StackMap locals: sun.security.pkcs11.SessionManager$Pool int int sun.security.pkcs11.Session long
StackMap stack:
iinc 2 1
8: 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
9: iload 1
iload 2
isub
iconst_1
10: if_icmpgt 3
11: StackMap locals:
StackMap stack:
getstatic sun.security.pkcs11.SessionManager.debug:Lsun/security/util/Debug;
ifnull 15
12: 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 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " idle sessions, active: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: aload 0
getfield sun.security.pkcs11.SessionManager$Pool.mgr:Lsun/security/pkcs11/SessionManager;
getfield sun.security.pkcs11.SessionManager.activeSessions:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: StackMap locals:
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 16 0 this Lsun/security/pkcs11/SessionManager$Pool;
1 16 1 n I
2 16 2 i I
4 16 3 oldestSession Lsun/security/pkcs11/Session;
3 16 4 time J
}
SourceFile: "SessionManager.java"
NestHost: sun.security.pkcs11.SessionManager
InnerClasses:
public final Pool = sun.security.pkcs11.SessionManager$Pool of sun.security.pkcs11.SessionManager