public abstract class sun.util.locale.LocaleObjectCache<K, V>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.util.locale.LocaleObjectCache
super_class: java.lang.Object
{
private java.util.concurrent.ConcurrentMap<K, sun.util.locale.LocaleObjectCache$CacheEntry<K, V>> map;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/concurrent/ConcurrentMap<TK;Lsun/util/locale/LocaleObjectCache$CacheEntry<TK;TV;>;>;
private java.lang.ref.ReferenceQueue<V> queue;
descriptor: Ljava/lang/ref/ReferenceQueue;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/ref/ReferenceQueue<TV;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
bipush 16
ldc 0.75
bipush 16
invokespecial sun.util.locale.LocaleObjectCache.<init>:(IFI)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/util/locale/LocaleObjectCache<TK;TV;>;
public void <init>(int, float, int);
descriptor: (IFI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.ref.ReferenceQueue
dup
invokespecial java.lang.ref.ReferenceQueue.<init>:()V
putfield sun.util.locale.LocaleObjectCache.queue:Ljava/lang/ref/ReferenceQueue;
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
iload 1
fload 2
iload 3
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(IFI)V
putfield sun.util.locale.LocaleObjectCache.map:Ljava/util/concurrent/ConcurrentMap;
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/util/locale/LocaleObjectCache<TK;TV;>;
0 4 1 initialCapacity I
0 4 2 loadFactor F
0 4 3 concurrencyLevel I
MethodParameters:
Name Flags
initialCapacity
loadFactor
concurrencyLevel
public V get();
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
invokevirtual sun.util.locale.LocaleObjectCache.cleanStaleEntries:()V
2: aload 0
getfield sun.util.locale.LocaleObjectCache.map:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.util.locale.LocaleObjectCache$CacheEntry
astore 3
start local 3 3: aload 3
ifnull 5
4: aload 3
invokevirtual sun.util.locale.LocaleObjectCache$CacheEntry.get:()Ljava/lang/Object;
astore 2
5: StackMap locals: java.lang.Object sun.util.locale.LocaleObjectCache$CacheEntry
StackMap stack:
aload 2
ifnonnull 19
6: aload 0
aload 1
invokevirtual sun.util.locale.LocaleObjectCache.createObject:(Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 7: aload 0
aload 1
invokevirtual sun.util.locale.LocaleObjectCache.normalizeKey:(Ljava/lang/Object;)Ljava/lang/Object;
astore 1
8: aload 1
ifnull 9
aload 4
ifnonnull 10
9: StackMap locals: java.lang.Object
StackMap stack:
aconst_null
areturn
10: StackMap locals:
StackMap stack:
new sun.util.locale.LocaleObjectCache$CacheEntry
dup
aload 1
aload 4
aload 0
getfield sun.util.locale.LocaleObjectCache.queue:Ljava/lang/ref/ReferenceQueue;
invokespecial sun.util.locale.LocaleObjectCache$CacheEntry.<init>:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
astore 5
start local 5 11: aload 0
getfield sun.util.locale.LocaleObjectCache.map:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 5
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.util.locale.LocaleObjectCache$CacheEntry
astore 3
12: aload 3
ifnonnull 15
13: aload 4
astore 2
14: goto 19
15: StackMap locals: sun.util.locale.LocaleObjectCache$CacheEntry
StackMap stack:
aload 3
invokevirtual sun.util.locale.LocaleObjectCache$CacheEntry.get:()Ljava/lang/Object;
astore 2
16: aload 2
ifnonnull 19
17: aload 0
getfield sun.util.locale.LocaleObjectCache.map:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 5
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
18: aload 4
astore 2
end local 5 end local 4 19: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/util/locale/LocaleObjectCache<TK;TV;>;
0 20 1 key TK;
1 20 2 value TV;
3 20 3 entry Lsun/util/locale/LocaleObjectCache$CacheEntry<TK;TV;>;
7 19 4 newVal TV;
11 19 5 newEntry Lsun/util/locale/LocaleObjectCache$CacheEntry<TK;TV;>;
Signature: (TK;)TV;
MethodParameters:
Name Flags
key
protected V put(K, );
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new sun.util.locale.LocaleObjectCache$CacheEntry
dup
aload 1
aload 2
aload 0
getfield sun.util.locale.LocaleObjectCache.queue:Ljava/lang/ref/ReferenceQueue;
invokespecial sun.util.locale.LocaleObjectCache$CacheEntry.<init>:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/ref/ReferenceQueue;)V
astore 3
start local 3 1: aload 0
getfield sun.util.locale.LocaleObjectCache.map:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.util.locale.LocaleObjectCache$CacheEntry
astore 4
start local 4 2: aload 4
ifnonnull 3
aconst_null
goto 4
StackMap locals: sun.util.locale.LocaleObjectCache$CacheEntry sun.util.locale.LocaleObjectCache$CacheEntry
StackMap stack:
3: aload 4
invokevirtual sun.util.locale.LocaleObjectCache$CacheEntry.get:()Ljava/lang/Object;
StackMap locals:
StackMap stack: java.lang.Object
4: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/util/locale/LocaleObjectCache<TK;TV;>;
0 5 1 key TK;
0 5 2 value TV;
1 5 3 entry Lsun/util/locale/LocaleObjectCache$CacheEntry<TK;TV;>;
2 5 4 oldEntry Lsun/util/locale/LocaleObjectCache$CacheEntry<TK;TV;>;
Signature: (TK;TV;)TV;
MethodParameters:
Name Flags
key
value
private void cleanStaleEntries();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: goto 2
start local 1 1: StackMap locals: sun.util.locale.LocaleObjectCache$CacheEntry
StackMap stack:
aload 0
getfield sun.util.locale.LocaleObjectCache.map:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokevirtual sun.util.locale.LocaleObjectCache$CacheEntry.getKey:()Ljava/lang/Object;
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 1 2: StackMap locals:
StackMap stack:
aload 0
getfield sun.util.locale.LocaleObjectCache.queue:Ljava/lang/ref/ReferenceQueue;
invokevirtual java.lang.ref.ReferenceQueue.poll:()Ljava/lang/ref/Reference;
checkcast sun.util.locale.LocaleObjectCache$CacheEntry
dup
astore 1
start local 1 3: ifnonnull 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/util/locale/LocaleObjectCache<TK;TV;>;
1 2 1 entry Lsun/util/locale/LocaleObjectCache$CacheEntry<TK;TV;>;
3 5 1 entry Lsun/util/locale/LocaleObjectCache$CacheEntry<TK;TV;>;
protected abstract V createObject();
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Signature: (TK;)TV;
MethodParameters:
Name Flags
key
protected K normalizeKey();
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: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/util/locale/LocaleObjectCache<TK;TV;>;
0 1 1 key TK;
Signature: (TK;)TK;
MethodParameters:
Name Flags
key
}
Signature: <K:Ljava/lang/Object;V:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "LocaleObjectCache.java"
NestMembers:
sun.util.locale.LocaleObjectCache$CacheEntry
InnerClasses:
private CacheEntry = sun.util.locale.LocaleObjectCache$CacheEntry of sun.util.locale.LocaleObjectCache