final class sun.security.pkcs11.SessionKeyRef extends java.lang.ref.PhantomReference<sun.security.pkcs11.P11Key> implements java.lang.Comparable<sun.security.pkcs11.SessionKeyRef>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.SessionKeyRef
super_class: java.lang.ref.PhantomReference
{
private static java.lang.ref.ReferenceQueue<sun.security.pkcs11.P11Key> refQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/lang/ref/ReferenceQueue<Lsun/security/pkcs11/P11Key;>;
private static java.util.Set<sun.security.pkcs11.SessionKeyRef> refList;
descriptor: Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Set<Lsun/security/pkcs11/SessionKeyRef;>;
private long keyID;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private sun.security.pkcs11.Session session;
descriptor: Lsun/security/pkcs11/Session;
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.SessionKeyRef.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.SessionKeyRef.refList:Ljava/util/Set;
4: return
LocalVariableTable:
Start End Slot Name Signature
static java.lang.ref.ReferenceQueue<sun.security.pkcs11.P11Key> referenceQueue();
descriptor: ()Ljava/lang/ref/ReferenceQueue;
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.security.pkcs11.SessionKeyRef.refQueue:Ljava/lang/ref/ReferenceQueue;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/lang/ref/ReferenceQueue<Lsun/security/pkcs11/P11Key;>;
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.SessionKeyRef.refQueue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast sun.security.pkcs11.SessionKeyRef
astore 0
start local 0 1: aload 0
ifnonnull 2
goto 4
2: StackMap locals: sun.security.pkcs11.SessionKeyRef
StackMap stack:
aload 0
invokevirtual sun.security.pkcs11.SessionKeyRef.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/SessionKeyRef;
void <init>(sun.security.pkcs11.P11Key, long, sun.security.pkcs11.Session);
descriptor: (Lsun/security/pkcs11/P11Key;JLsun/security/pkcs11/Session;)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.SessionKeyRef.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.SessionKeyRef.keyID:J
2: aload 0
aload 4
putfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
3: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.addObject:()V
4: getstatic sun.security.pkcs11.SessionKeyRef.refList:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
5: invokestatic sun.security.pkcs11.SessionKeyRef.drainRefQueueBounded:()V
6: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/pkcs11/SessionKeyRef;
0 7 1 key Lsun/security/pkcs11/P11Key;
0 7 2 keyID J
0 7 4 session Lsun/security/pkcs11/Session;
MethodParameters:
Name Flags
key
keyID
session
private void dispose();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: getstatic sun.security.pkcs11.SessionKeyRef.refList:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
1: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.isValid:()Z
ifeq 18
2: aconst_null
astore 1
start local 1 3: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getOpSession:()Lsun/security/pkcs11/Session;
astore 1
4: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 1
invokevirtual sun.security.pkcs11.Session.id:()J
aload 0
getfield sun.security.pkcs11.SessionKeyRef.keyID:J
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_DestroyObject:(JJ)V
5: goto 15
StackMap locals: sun.security.pkcs11.SessionKeyRef sun.security.pkcs11.Session
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
6: pop
7: aload 0
invokevirtual sun.security.pkcs11.SessionKeyRef.clear:()V
8: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
aload 1
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
9: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.removeObject:()V
goto 18
10: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
11: aload 0
invokevirtual sun.security.pkcs11.SessionKeyRef.clear:()V
12: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
aload 1
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
13: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.removeObject:()V
14: aload 2
athrow
15: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.security.pkcs11.SessionKeyRef.clear:()V
16: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
getfield sun.security.pkcs11.Session.token:Lsun/security/pkcs11/Token;
aload 1
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
17: aload 0
getfield sun.security.pkcs11.SessionKeyRef.session:Lsun/security/pkcs11/Session;
invokevirtual sun.security.pkcs11.Session.removeObject:()V
end local 1 18: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/security/pkcs11/SessionKeyRef;
3 18 1 newSession Lsun/security/pkcs11/Session;
Exception table:
from to target type
3 5 6 Class sun.security.pkcs11.wrapper.PKCS11Exception
3 7 10 any
public int compareTo(sun.security.pkcs11.SessionKeyRef);
descriptor: (Lsun/security/pkcs11/SessionKeyRef;)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.SessionKeyRef.keyID:J
aload 1
getfield sun.security.pkcs11.SessionKeyRef.keyID:J
lcmp
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs11.SessionKeyRef.keyID:J
aload 1
getfield sun.security.pkcs11.SessionKeyRef.keyID: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/SessionKeyRef;
0 5 1 other Lsun/security/pkcs11/SessionKeyRef;
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.SessionKeyRef
invokevirtual sun.security.pkcs11.SessionKeyRef.compareTo:(Lsun/security/pkcs11/SessionKeyRef;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/ref/PhantomReference<Lsun/security/pkcs11/P11Key;>;Ljava/lang/Comparable<Lsun/security/pkcs11/SessionKeyRef;>;
SourceFile: "P11Key.java"