final class sun.security.pkcs11.SessionRef extends java.lang.ref.PhantomReference<sun.security.pkcs11.Session> implements java.lang.Comparable<sun.security.pkcs11.SessionRef>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.SessionRef
super_class: java.lang.ref.PhantomReference
{
private static java.lang.ref.ReferenceQueue<sun.security.pkcs11.Session> refQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/lang/ref/ReferenceQueue<Lsun/security/pkcs11/Session;>;
private static java.util.Set<sun.security.pkcs11.SessionRef> refList;
descriptor: Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Set<Lsun/security/pkcs11/SessionRef;>;
private long id;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private sun.security.pkcs11.Token token;
descriptor: Lsun/security/pkcs11/Token;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
1: putstatic sun.security.pkcs11.SessionRef.refQueue:Ljava/lang/ref/ReferenceQueue;
2: new java.util.TreeSet
dup
invokespecial java.util.TreeSet.<init>:()V
invokestatic java.util.Collections.synchronizedSortedSet:(Ljava/util/SortedSet;)Ljava/util/SortedSet;
3: putstatic sun.security.pkcs11.SessionRef.refList:Ljava/util/Set;
4: return
LocalVariableTable:
Start End Slot Name Signature
static java.lang.ref.ReferenceQueue<sun.security.pkcs11.Session> referenceQueue();
descriptor: ()Ljava/lang/ref/ReferenceQueue;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.security.pkcs11.SessionRef.refQueue:Ljava/lang/ref/ReferenceQueue;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/lang/ref/ReferenceQueue<Lsun/security/pkcs11/Session;>;
static int totalCount();
descriptor: ()I
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.security.pkcs11.SessionRef.refList:Ljava/util/Set;
invokeinterface java.util.Set.size:()I
ireturn
LocalVariableTable:
Start End Slot Name Signature
private static void drainRefQueueBounded();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: StackMap locals:
StackMap stack:
getstatic sun.security.pkcs11.SessionRef.refQueue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast sun.security.pkcs11.SessionRef
astore 0
start local 0 1: aload 0
ifnonnull 2
goto 4
2: StackMap locals: sun.security.pkcs11.SessionRef
StackMap stack:
aload 0
invokevirtual sun.security.pkcs11.SessionRef.dispose:()V
end local 0 3: goto 0
4: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 3 0 next Lsun/security/pkcs11/SessionRef;
void <init>(sun.security.pkcs11.Session, long, sun.security.pkcs11.Token);
descriptor: (Lsun/security/pkcs11/Session;JLsun/security/pkcs11/Token;)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
aload 1
getstatic sun.security.pkcs11.SessionRef.refQueue:Ljava/lang/ref/ReferenceQueue;
invokespecial java.lang.ref.PhantomReference.<init>:(Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
1: aload 0
lload 2
putfield sun.security.pkcs11.SessionRef.id:J
2: aload 0
aload 4
putfield sun.security.pkcs11.SessionRef.token:Lsun/security/pkcs11/Token;
3: getstatic sun.security.pkcs11.SessionRef.refList:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
4: invokestatic sun.security.pkcs11.SessionRef.drainRefQueueBounded:()V
5: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/pkcs11/SessionRef;
0 6 1 session Lsun/security/pkcs11/Session;
0 6 2 id J
0 6 4 token Lsun/security/pkcs11/Token;
MethodParameters:
Name Flags
session
id
token
void dispose();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic sun.security.pkcs11.SessionRef.refList:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
1: aload 0
getfield sun.security.pkcs11.SessionRef.token:Lsun/security/pkcs11/Token;
aload 0
getfield sun.security.pkcs11.SessionRef.id:J
invokevirtual sun.security.pkcs11.Token.isPresent:(J)Z
ifeq 11
2: aload 0
getfield sun.security.pkcs11.SessionRef.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 0
getfield sun.security.pkcs11.SessionRef.id:J
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_CloseSession:(J)V
3: goto 11
StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
4: pop
5: aload 0
invokevirtual sun.security.pkcs11.SessionRef.clear:()V
goto 12
6: StackMap locals:
StackMap stack: java.security.ProviderException
pop
7: aload 0
invokevirtual sun.security.pkcs11.SessionRef.clear:()V
goto 12
8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
9: aload 0
invokevirtual sun.security.pkcs11.SessionRef.clear:()V
10: aload 1
athrow
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.pkcs11.SessionRef.clear:()V
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/security/pkcs11/SessionRef;
Exception table:
from to target type
1 3 4 Class sun.security.pkcs11.wrapper.PKCS11Exception
1 3 6 Class java.security.ProviderException
1 5 8 any
6 7 8 any
public int compareTo(sun.security.pkcs11.SessionRef);
descriptor: (Lsun/security/pkcs11/SessionRef;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.SessionRef.id:J
aload 1
getfield sun.security.pkcs11.SessionRef.id:J
lcmp
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionRef.id:J
aload 1
getfield sun.security.pkcs11.SessionRef.id:J
lcmp
ifge 3
iconst_m1
goto 4
StackMap locals:
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/pkcs11/SessionRef;
0 5 1 other Lsun/security/pkcs11/SessionRef;
MethodParameters:
Name Flags
other
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast sun.security.pkcs11.SessionRef
invokevirtual sun.security.pkcs11.SessionRef.compareTo:(Lsun/security/pkcs11/SessionRef;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/ref/PhantomReference<Lsun/security/pkcs11/Session;>;Ljava/lang/Comparable<Lsun/security/pkcs11/SessionRef;>;
SourceFile: "Session.java"