public class sun.misc.Cache extends java.util.Dictionary
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.misc.Cache
super_class: java.util.Dictionary
{
private sun.misc.CacheEntry[] table;
descriptor: [Lsun/misc/CacheEntry;
flags: (0x0002) ACC_PRIVATE
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int threshold;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private float loadFactor;
descriptor: F
flags: (0x0002) ACC_PRIVATE
private void init(int, float);
descriptor: (IF)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifle 1
fload 2
f2d
dconst_0
dcmpg
ifgt 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
fload 2
putfield sun.misc.Cache.loadFactor:F
3: aload 0
iload 1
anewarray sun.misc.CacheEntry
putfield sun.misc.Cache.table:[Lsun/misc/CacheEntry;
4: aload 0
iload 1
i2f
fload 2
fmul
f2i
putfield sun.misc.Cache.threshold:I
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/misc/Cache;
0 6 1 initialCapacity I
0 6 2 loadFactor F
MethodParameters:
Name Flags
initialCapacity
loadFactor
public void <init>(int, float);
descriptor: (IF)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.util.Dictionary.<init>:()V
1: aload 0
iload 1
fload 2
invokevirtual sun.misc.Cache.init:(IF)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/Cache;
0 3 1 initialCapacity I
0 3 2 loadFactor F
MethodParameters:
Name Flags
initialCapacity
loadFactor
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.util.Dictionary.<init>:()V
1: aload 0
iload 1
ldc 0.75
invokevirtual sun.misc.Cache.init:(IF)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/misc/Cache;
0 3 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.Dictionary.<init>:()V
1: aload 0
bipush 101
ldc 0.75
invokevirtual sun.misc.Cache.init:(IF)V
2: goto 5
StackMap locals: sun.misc.Cache
StackMap stack: java.lang.IllegalArgumentException
3: pop
4: new java.lang.Error
dup
ldc "panic"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/misc/Cache;
Exception table:
from to target type
1 2 3 Class java.lang.IllegalArgumentException
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.misc.Cache.count:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/Cache;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.misc.Cache.count:I
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/misc/Cache;
public synchronized java.util.Enumeration keys();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: new sun.misc.CacheEnumerator
dup
aload 0
getfield sun.misc.Cache.table:[Lsun/misc/CacheEntry;
iconst_1
invokespecial sun.misc.CacheEnumerator.<init>:([Lsun/misc/CacheEntry;Z)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/Cache;
public synchronized java.util.Enumeration elements();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=1, args_size=1
start local 0 0: new sun.misc.CacheEnumerator
dup
aload 0
getfield sun.misc.Cache.table:[Lsun/misc/CacheEntry;
iconst_0
invokespecial sun.misc.CacheEnumerator.<init>:([Lsun/misc/CacheEntry;Z)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/misc/Cache;
public synchronized java.lang.Object get(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.misc.Cache.table:[Lsun/misc/CacheEntry;
astore 2
start local 2 1: aload 1
invokevirtual java.lang.Object.hashCode:()I
istore 3
start local 3 2: iload 3
ldc 2147483647
iand
aload 2
arraylength
irem
istore 4
start local 4 3: aload 2
iload 4
aaload
astore 5
start local 5 4: goto 8
5: StackMap locals: sun.misc.Cache java.lang.Object sun.misc.CacheEntry[] int int sun.misc.CacheEntry
StackMap stack:
aload 5
getfield sun.misc.CacheEntry.hash:I
iload 3
if_icmpne 7
aload 5
getfield sun.misc.CacheEntry.key:Ljava/lang/Object;
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aload 5
invokevirtual sun.misc.CacheEntry.check:()Ljava/lang/Object;
areturn
7: StackMap locals:
StackMap stack:
aload 5
getfield sun.misc.CacheEntry.next:Lsun/misc/CacheEntry;
astore 5
StackMap locals:
StackMap stack:
8: aload 5
ifnonnull 5
end local 5 9: aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/misc/Cache;
0 10 1 key Ljava/lang/Object;
1 10 2 tab [Lsun/misc/CacheEntry;
2 10 3 hash I
3 10 4 index I
4 9 5 e Lsun/misc/CacheEntry;
MethodParameters:
Name Flags
key
protected void rehash();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=9, args_size=1
start local 0 0: aload 0
getfield sun.misc.Cache.table:[Lsun/misc/CacheEntry;
arraylength
istore 1
start local 1 1: aload 0
getfield sun.misc.Cache.table:[Lsun/misc/CacheEntry;
astore 2
start local 2 2: iload 1
iconst_2
imul
iconst_1
iadd
istore 3
start local 3 3: iload 3
anewarray sun.misc.CacheEntry
astore 4
start local 4 4: aload 0
iload 3
i2f
aload 0
getfield sun.misc.Cache.loadFactor:F
fmul
f2i
putfield sun.misc.Cache.threshold:I
5: aload 0
aload 4
putfield sun.misc.Cache.table:[Lsun/misc/CacheEntry;
6: iload 1
istore 5
start local 5 7: goto 19
8: StackMap locals: sun.misc.Cache int sun.misc.CacheEntry[] int sun.misc.CacheEntry[] int
StackMap stack:
aload 2
iload 5
aaload
astore 6
start local 6 9: goto 18
10: StackMap locals: sun.misc.CacheEntry
StackMap stack:
aload 6
astore 7
start local 7 11: aload 6
getfield sun.misc.CacheEntry.next:Lsun/misc/CacheEntry;
astore 6
12: aload 7
invokevirtual sun.misc.CacheEntry.check:()Ljava/lang/Object;
ifnull 17
13: aload 7
getfield sun.misc.CacheEntry.hash:I
ldc 2147483647
iand
iload 3
irem
istore 8
start local 8 14: aload 7
aload 4
iload 8
aaload
putfield sun.misc.CacheEntry.next:Lsun/misc/CacheEntry;
15: aload 4
iload 8
aload 7
aastore
end local 8 16: goto 18
17: StackMap locals: sun.misc.CacheEntry
StackMap stack:
aload 0
dup
getfield sun.misc.Cache.count:I
iconst_1
isub
putfield sun.misc.Cache.count:I
end local 7 18: StackMap locals:
StackMap stack:
aload 6
ifnonnull 10
end local 6 19: StackMap locals:
StackMap stack:
iload 5
iinc 5 -1
ifgt 8
end local 5 20: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/misc/Cache;
1 21 1 oldCapacity I
2 21 2 oldTable [Lsun/misc/CacheEntry;
3 21 3 newCapacity I
4 21 4 newTable [Lsun/misc/CacheEntry;
7 20 5 i I
9 19 6 old Lsun/misc/CacheEntry;
11 18 7 e Lsun/misc/CacheEntry;
14 16 8 index I
public synchronized java.lang.Object put(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.misc.Cache.table:[Lsun/misc/CacheEntry;
astore 3
start local 3 3: aload 1
invokevirtual java.lang.Object.hashCode:()I
istore 4
start local 4 4: iload 4
ldc 2147483647
iand
aload 3
arraylength
irem
istore 5
start local 5 5: aconst_null
astore 6
start local 6 6: aload 3
iload 5
aaload
astore 7
start local 7 7: goto 15
8: StackMap locals: sun.misc.Cache java.lang.Object java.lang.Object sun.misc.CacheEntry[] int int sun.misc.CacheEntry sun.misc.CacheEntry
StackMap stack:
aload 7
getfield sun.misc.CacheEntry.hash:I
iload 4
if_icmpne 12
aload 7
getfield sun.misc.CacheEntry.key:Ljava/lang/Object;
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 12
9: aload 7
invokevirtual sun.misc.CacheEntry.check:()Ljava/lang/Object;
astore 8
start local 8 10: aload 7
aload 2
invokevirtual sun.misc.CacheEntry.setThing:(Ljava/lang/Object;)V
11: aload 8
areturn
end local 8 12: StackMap locals:
StackMap stack:
aload 7
invokevirtual sun.misc.CacheEntry.check:()Ljava/lang/Object;
ifnonnull 14
13: aload 7
astore 6
14: StackMap locals:
StackMap stack:
aload 7
getfield sun.misc.CacheEntry.next:Lsun/misc/CacheEntry;
astore 7
StackMap locals:
StackMap stack:
15: aload 7
ifnonnull 8
end local 7 16: aload 0
getfield sun.misc.Cache.count:I
aload 0
getfield sun.misc.Cache.threshold:I
if_icmplt 19
17: aload 0
invokevirtual sun.misc.Cache.rehash:()V
18: aload 0
aload 1
aload 2
invokevirtual sun.misc.Cache.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
19: StackMap locals:
StackMap stack:
aload 6
ifnonnull 24
20: new sun.misc.CacheEntry
dup
invokespecial sun.misc.CacheEntry.<init>:()V
astore 6
21: aload 6
aload 3
iload 5
aaload
putfield sun.misc.CacheEntry.next:Lsun/misc/CacheEntry;
22: aload 3
iload 5
aload 6
aastore
23: aload 0
dup
getfield sun.misc.Cache.count:I
iconst_1
iadd
putfield sun.misc.Cache.count:I
24: StackMap locals:
StackMap stack:
aload 6
iload 4
putfield sun.misc.CacheEntry.hash:I
25: aload 6
aload 1
putfield sun.misc.CacheEntry.key:Ljava/lang/Object;
26: aload 6
aload 2
invokevirtual sun.misc.CacheEntry.setThing:(Ljava/lang/Object;)V
27: aconst_null
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/misc/Cache;
0 28 1 key Ljava/lang/Object;
0 28 2 value Ljava/lang/Object;
3 28 3 tab [Lsun/misc/CacheEntry;
4 28 4 hash I
5 28 5 index I
6 28 6 ne Lsun/misc/CacheEntry;
7 16 7 e Lsun/misc/CacheEntry;
10 12 8 old Ljava/lang/Object;
MethodParameters:
Name Flags
key
value
public synchronized java.lang.Object remove(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.misc.Cache.table:[Lsun/misc/CacheEntry;
astore 2
start local 2 1: aload 1
invokevirtual java.lang.Object.hashCode:()I
istore 3
start local 3 2: iload 3
ldc 2147483647
iand
aload 2
arraylength
irem
istore 4
start local 4 3: aload 2
iload 4
aaload
astore 5
start local 5 4: aconst_null
astore 6
start local 6 5: goto 14
6: StackMap locals: sun.misc.Cache java.lang.Object sun.misc.CacheEntry[] int int sun.misc.CacheEntry sun.misc.CacheEntry
StackMap stack:
aload 5
getfield sun.misc.CacheEntry.hash:I
iload 3
if_icmpne 13
aload 5
getfield sun.misc.CacheEntry.key:Ljava/lang/Object;
aload 1
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 13
7: aload 6
ifnull 10
8: aload 6
aload 5
getfield sun.misc.CacheEntry.next:Lsun/misc/CacheEntry;
putfield sun.misc.CacheEntry.next:Lsun/misc/CacheEntry;
9: goto 11
10: StackMap locals:
StackMap stack:
aload 2
iload 4
aload 5
getfield sun.misc.CacheEntry.next:Lsun/misc/CacheEntry;
aastore
11: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.misc.Cache.count:I
iconst_1
isub
putfield sun.misc.Cache.count:I
12: aload 5
invokevirtual sun.misc.CacheEntry.check:()Ljava/lang/Object;
areturn
13: StackMap locals:
StackMap stack:
aload 5
astore 6
aload 5
getfield sun.misc.CacheEntry.next:Lsun/misc/CacheEntry;
astore 5
StackMap locals:
StackMap stack:
14: aload 5
ifnonnull 6
end local 6 end local 5 15: aconst_null
areturn
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/misc/Cache;
0 16 1 key Ljava/lang/Object;
1 16 2 tab [Lsun/misc/CacheEntry;
2 16 3 hash I
3 16 4 index I
4 15 5 e Lsun/misc/CacheEntry;
5 15 6 prev Lsun/misc/CacheEntry;
MethodParameters:
Name Flags
key
}
SourceFile: "Cache.java"