class com.oracle.security.ucrypto.NativeKey$KeyRef extends java.lang.ref.PhantomReference<com.oracle.security.ucrypto.NativeKey> implements java.lang.Comparable<com.oracle.security.ucrypto.NativeKey$KeyRef>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.security.ucrypto.NativeKey$KeyRef
super_class: java.lang.ref.PhantomReference
{
private static java.lang.ref.ReferenceQueue<com.oracle.security.ucrypto.NativeKey> refQueue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/lang/ref/ReferenceQueue<Lcom/oracle/security/ucrypto/NativeKey;>;
private static java.util.Set<com.oracle.security.ucrypto.NativeKey$KeyRef> refList;
descriptor: Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Set<Lcom/oracle/security/ucrypto/NativeKey$KeyRef;>;
private final long id;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int length;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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 com.oracle.security.ucrypto.NativeKey$KeyRef.refQueue:Ljava/lang/ref/ReferenceQueue;
2: new java.util.concurrent.ConcurrentSkipListSet
dup
invokespecial java.util.concurrent.ConcurrentSkipListSet.<init>:()V
3: putstatic com.oracle.security.ucrypto.NativeKey$KeyRef.refList:Ljava/util/Set;
4: return
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 com.oracle.security.ucrypto.NativeKey$KeyRef.refQueue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast com.oracle.security.ucrypto.NativeKey$KeyRef
astore 0
start local 0 1: aload 0
ifnonnull 2
goto 4
2: StackMap locals: com.oracle.security.ucrypto.NativeKey$KeyRef
StackMap stack:
aload 0
invokevirtual com.oracle.security.ucrypto.NativeKey$KeyRef.dispose:()V
end local 0 3: goto 0
4: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 3 0 next Lcom/oracle/security/ucrypto/NativeKey$KeyRef;
void <init>(com.oracle.security.ucrypto.NativeKey, long);
descriptor: (Lcom/oracle/security/ucrypto/NativeKey;J)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
getstatic com.oracle.security.ucrypto.NativeKey$KeyRef.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 com.oracle.security.ucrypto.NativeKey$KeyRef.id:J
2: aload 0
aload 1
invokevirtual com.oracle.security.ucrypto.NativeKey.length:()I
putfield com.oracle.security.ucrypto.NativeKey$KeyRef.length:I
3: getstatic com.oracle.security.ucrypto.NativeKey$KeyRef.refList:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
4: new java.lang.StringBuilder
dup
ldc "Resource: track NativeKey "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.oracle.security.ucrypto.NativeKey$KeyRef.id:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.oracle.security.ucrypto.UcryptoProvider.debug:(Ljava/lang/String;)V
5: invokestatic com.oracle.security.ucrypto.NativeKey$KeyRef.drainRefQueueBounded:()V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/security/ucrypto/NativeKey$KeyRef;
0 7 1 nk Lcom/oracle/security/ucrypto/NativeKey;
0 7 2 id J
MethodParameters:
Name Flags
nk
id
public int compareTo(com.oracle.security.ucrypto.NativeKey$KeyRef);
descriptor: (Lcom/oracle/security/ucrypto/NativeKey$KeyRef;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.security.ucrypto.NativeKey$KeyRef.id:J
aload 1
getfield com.oracle.security.ucrypto.NativeKey$KeyRef.id:J
lcmp
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.security.ucrypto.NativeKey$KeyRef.id:J
aload 1
getfield com.oracle.security.ucrypto.NativeKey$KeyRef.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 Lcom/oracle/security/ucrypto/NativeKey$KeyRef;
0 5 1 other Lcom/oracle/security/ucrypto/NativeKey$KeyRef;
MethodParameters:
Name Flags
other
void dispose();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic com.oracle.security.ucrypto.NativeKey$KeyRef.refList:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
1: new java.lang.StringBuilder
dup
ldc "Resource: free NativeKey "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.oracle.security.ucrypto.NativeKey$KeyRef.id:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.oracle.security.ucrypto.UcryptoProvider.debug:(Ljava/lang/String;)V
2: aload 0
getfield com.oracle.security.ucrypto.NativeKey$KeyRef.id:J
aload 0
getfield com.oracle.security.ucrypto.NativeKey$KeyRef.length:I
invokestatic com.oracle.security.ucrypto.NativeKey.nativeFree:(JI)V
3: goto 7
StackMap locals:
StackMap stack: java.lang.Throwable
4: astore 1
5: aload 0
invokevirtual com.oracle.security.ucrypto.NativeKey$KeyRef.clear:()V
6: aload 1
athrow
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.oracle.security.ucrypto.NativeKey$KeyRef.clear:()V
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/oracle/security/ucrypto/NativeKey$KeyRef;
Exception table:
from to target type
2 4 4 any
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 com.oracle.security.ucrypto.NativeKey$KeyRef
invokevirtual com.oracle.security.ucrypto.NativeKey$KeyRef.compareTo:(Lcom/oracle/security/ucrypto/NativeKey$KeyRef;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/ref/PhantomReference<Lcom/oracle/security/ucrypto/NativeKey;>;Ljava/lang/Comparable<Lcom/oracle/security/ucrypto/NativeKey$KeyRef;>;
SourceFile: "NativeKey.java"
NestHost: com.oracle.security.ucrypto.NativeKey
InnerClasses:
private KeyRef = com.oracle.security.ucrypto.NativeKey$KeyRef of com.oracle.security.ucrypto.NativeKey