public class sun.misc.SoftCache extends java.util.AbstractMap implements java.util.Map
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.misc.SoftCache
super_class: java.util.AbstractMap
{
private java.util.Map hash;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
private java.lang.ref.ReferenceQueue queue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0002) ACC_PRIVATE
private java.util.Set entrySet;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
private void processQueue();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: goto 3
start local 1 1: StackMap locals: sun.misc.SoftCache$ValueCell
StackMap stack:
aload 1
invokevirtual sun.misc.SoftCache$ValueCell.isValid:()Z
ifeq 2
aload 0
getfield sun.misc.SoftCache.hash:Ljava/util/Map;
aload 1
getfield sun.misc.SoftCache$ValueCell.key:Ljava/lang/Object;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
goto 3
2: StackMap locals:
StackMap stack:
getstatic sun.misc.SoftCache$ValueCell.dropped:I
iconst_1
isub
putstatic sun.misc.SoftCache$ValueCell.dropped:I
end local 1 3: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.SoftCache.queue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast sun.misc.SoftCache$ValueCell
dup
astore 1
start local 1 4: ifnonnull 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/misc/SoftCache;
1 3 1 vc Lsun/misc/SoftCache$ValueCell;
4 6 1 vc Lsun/misc/SoftCache$ValueCell;
public void <init>(int, float);
descriptor: (IF)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.util.AbstractMap.<init>:()V
1: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield sun.misc.SoftCache.queue:Ljava/lang/ref/ReferenceQueue;
2: aload 0
aconst_null
putfield sun.misc.SoftCache.entrySet:Ljava/util/Set;
3: aload 0
new java.util.HashMap
dup
iload 1
fload 2
invokespecial java.util.HashMap.<init>:(IF)V
putfield sun.misc.SoftCache.hash:Ljava/util/Map;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/misc/SoftCache;
0 5 1 initialCapacity I
0 5 2 loadFactor F
MethodParameters:
Name Flags
initialCapacity
loadFactor
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.util.AbstractMap.<init>:()V
1: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield sun.misc.SoftCache.queue:Ljava/lang/ref/ReferenceQueue;
2: aload 0
aconst_null
putfield sun.misc.SoftCache.entrySet:Ljava/util/Set;
3: aload 0
new java.util.HashMap
dup
iload 1
invokespecial java.util.HashMap.<init>:(I)V
putfield sun.misc.SoftCache.hash:Ljava/util/Map;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/misc/SoftCache;
0 5 1 initialCapacity I
MethodParameters:
Name Flags
initialCapacity
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.util.AbstractMap.<init>:()V
1: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield sun.misc.SoftCache.queue:Ljava/lang/ref/ReferenceQueue;
2: aload 0
aconst_null
putfield sun.misc.SoftCache.entrySet:Ljava/util/Set;
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.misc.SoftCache.hash:Ljava/util/Map;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/misc/SoftCache;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.misc.SoftCache.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/SoftCache;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.misc.SoftCache.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/SoftCache;
public boolean containsKey(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.misc.SoftCache.hash:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
iconst_0
invokestatic sun.misc.SoftCache$ValueCell.strip:(Ljava/lang/Object;Z)Ljava/lang/Object;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/misc/SoftCache;
0 2 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
protected java.lang.Object fill(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/SoftCache;
0 1 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
public java.lang.Object get(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.misc.SoftCache.processQueue:()V
1: aload 0
getfield sun.misc.SoftCache.hash:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 2: aload 2
ifnonnull 7
3: aload 0
aload 1
invokevirtual sun.misc.SoftCache.fill:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
4: aload 2
ifnull 7
5: aload 0
getfield sun.misc.SoftCache.hash:Ljava/util/Map;
aload 1
aload 1
aload 2
aload 0
getfield sun.misc.SoftCache.queue:Ljava/lang/ref/ReferenceQueue;
invokestatic sun.misc.SoftCache$ValueCell.create:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)Lsun/misc/SoftCache$ValueCell;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 2
areturn
7: StackMap locals: java.lang.Object
StackMap stack:
aload 2
iconst_0
invokestatic sun.misc.SoftCache$ValueCell.strip:(Ljava/lang/Object;Z)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/misc/SoftCache;
0 8 1 key Ljava/lang/Object;
2 8 2 v Ljava/lang/Object;
MethodParameters:
Name Flags
key
public java.lang.Object put(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual sun.misc.SoftCache.processQueue:()V
1: aload 1
aload 2
aload 0
getfield sun.misc.SoftCache.queue:Ljava/lang/ref/ReferenceQueue;
invokestatic sun.misc.SoftCache$ValueCell.create:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)Lsun/misc/SoftCache$ValueCell;
astore 3
start local 3 2: aload 0
getfield sun.misc.SoftCache.hash:Ljava/util/Map;
aload 1
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iconst_1
invokestatic sun.misc.SoftCache$ValueCell.strip:(Ljava/lang/Object;Z)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/SoftCache;
0 3 1 key Ljava/lang/Object;
0 3 2 value Ljava/lang/Object;
2 3 3 vc Lsun/misc/SoftCache$ValueCell;
MethodParameters:
Name Flags
key
value
public java.lang.Object remove(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.misc.SoftCache.processQueue:()V
1: aload 0
getfield sun.misc.SoftCache.hash:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
iconst_1
invokestatic sun.misc.SoftCache$ValueCell.strip:(Ljava/lang/Object;Z)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/misc/SoftCache;
0 2 1 key Ljava/lang/Object;
MethodParameters:
Name Flags
key
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.misc.SoftCache.processQueue:()V
1: aload 0
getfield sun.misc.SoftCache.hash:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/SoftCache;
private static boolean valEquals(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
aload 1
ifnonnull 1
iconst_1
goto 3
StackMap locals:
StackMap stack:
1: iconst_0
goto 3
StackMap locals:
StackMap stack:
2: aload 0
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
StackMap locals:
StackMap stack: int
3: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 o1 Ljava/lang/Object;
0 4 1 o2 Ljava/lang/Object;
MethodParameters:
Name Flags
o1
o2
public java.util.Set entrySet();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.misc.SoftCache.entrySet:Ljava/util/Set;
ifnonnull 1
aload 0
new sun.misc.SoftCache$EntrySet
dup
aload 0
invokespecial sun.misc.SoftCache$EntrySet.<init>:(Lsun/misc/SoftCache;)V
putfield sun.misc.SoftCache.entrySet:Ljava/util/Set;
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.SoftCache.entrySet:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/misc/SoftCache;
}
SourceFile: "SoftCache.java"
NestMembers:
sun.misc.SoftCache$Entry sun.misc.SoftCache$EntrySet sun.misc.SoftCache$EntrySet$1 sun.misc.SoftCache$ValueCell
InnerClasses:
private Entry = sun.misc.SoftCache$Entry of sun.misc.SoftCache
private EntrySet = sun.misc.SoftCache$EntrySet of sun.misc.SoftCache
private ValueCell = sun.misc.SoftCache$ValueCell of sun.misc.SoftCache