Home
last modified time | relevance | path

Searched refs:Cache (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/main/java/sun/security/provider/
DX509Factory.java31 import sun.security.util.Cache;
63 private static final Cache<Object, X509CertImpl> certCache
64 = Cache.newSoftMemoryCache(750);
65 private static final Cache<Object, X509CRLImpl> crlCache
66 = Cache.newSoftMemoryCache(750);
216 private static synchronized <K,V> V getFromCache(Cache<K,V> cache, in getFromCache()
218 Object key = new Cache.EqualByteArray(encoding); in getFromCache()
225 private static synchronized <V> void addToCache(Cache<Object, V> cache, in addToCache()
230 Object key = new Cache.EqualByteArray(encoding); in addToCache()
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DCache.java32 public abstract class Cache<K, V> { class
35 protected Cache() { in Cache() method in Cache
56 public abstract void accept(sun.security.util.Cache.CacheVisitor<K, V> visitor); in accept()
58 public static <K, V> sun.security.util.Cache<K, V> newSoftMemoryCache(int size) { in newSoftMemoryCache()
62 public static <K, V> sun.security.util.Cache<K, V> newSoftMemoryCache(int size, int timeout) { in newSoftMemoryCache()
67 public static <K, V> sun.security.util.Cache<K, V> newHardMemoryCache(int size) { in newHardMemoryCache()
71 public static <K, V> sun.security.util.Cache<K, V> newNullCache() { in newNullCache()
75 public static <K, V> sun.security.util.Cache<K, V> newHardMemoryCache(int size, int timeout) { in newHardMemoryCache()
DMemoryCache.java22 class MemoryCache<K, V> extends sun.security.util.Cache<K, V> {
68 public synchronized void accept(sun.security.util.Cache.CacheVisitor<K, V> visitor) { in accept()
/libcore/ojluni/src/main/java/java/nio/charset/
DCoderResult.java193 private static final class Cache { class in CoderResult
194 static final Cache INSTANCE = new Cache();
195 private Cache() {} in Cache() method in CoderResult.Cache
222 return Cache.INSTANCE.malformed.computeIfAbsent(length, in malformedForLength()
247 return Cache.INSTANCE.unmappable.computeIfAbsent(length, in unmappableForLength()
/libcore/ojluni/src/main/java/sun/nio/cs/
DThreadLocalCoders.java40 private static abstract class Cache { class in ThreadLocalCoders
46 Cache(int size) { in Cache() method in ThreadLocalCoders.Cache
88 private static Cache decoderCache = new Cache(CACHE_SIZE) {
112 private static Cache encoderCache = new Cache(CACHE_SIZE) {
/libcore/ojluni/annotations/hiddenapi/sun/nio/cs/
DThreadLocalCoders.java46 private static sun.nio.cs.ThreadLocalCoders.Cache decoderCache;
48 private static sun.nio.cs.ThreadLocalCoders.Cache encoderCache;
51 private abstract static class Cache { class in ThreadLocalCoders
53 Cache(int size) { in Cache() method in ThreadLocalCoders.Cache
/libcore/luni/src/test/java/libcore/sun/util/locale/
DBaseLocaleTest.java39 Field globalCacheField = BaseLocale.Cache.class.getDeclaredField("CACHE"); in testCache_holdingNoStrongReferences()
42 BaseLocale.Cache cache = (BaseLocale.Cache) globalCacheField.get(null); in testCache_holdingNoStrongReferences()
59 static class TestCache extends BaseLocale.Cache {
78 BaseLocale.Cache cache = new TestCache(); in testCacheCreateObject_notNull()
/libcore/ojluni/annotations/hiddenapi/sun/security/provider/
DX509Factory.java49 sun.security.util.Cache<K, V> cache, byte[] encoding) { in getFromCache()
55 sun.security.util.Cache<java.lang.Object, V> cache, byte[] encoding, V value) { in addToCache()
62 private static final sun.security.util.Cache<java.lang.Object, sun.security.x509.X509CertImpl>
70 private static final sun.security.util.Cache<java.lang.Object, sun.security.x509.X509CRLImpl>
/libcore/ojluni/src/main/java/sun/security/util/
DCache.java72 public abstract class Cache<K,V> { class
74 protected Cache() { in Cache() method in Cache
127 public static <K,V> Cache<K,V> newSoftMemoryCache(int size) { in newSoftMemoryCache()
136 public static <K,V> Cache<K,V> newSoftMemoryCache(int size, int timeout) { in newSoftMemoryCache()
144 public static <K,V> Cache<K,V> newHardMemoryCache(int size) { in newHardMemoryCache()
152 public static <K,V> Cache<K,V> newNullCache() { in newNullCache()
153 return (Cache<K,V>) NullCache.INSTANCE; in newNullCache()
161 public static <K,V> Cache<K,V> newHardMemoryCache(int size, int timeout) { in newHardMemoryCache()
204 class NullCache<K,V> extends Cache<K,V> {
206 static final Cache<Object,Object> INSTANCE = new NullCache<>();
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DX509CertificatePair.java39 import sun.security.util.Cache;
82 private static final Cache<Object, X509CertificatePair> cache
83 = Cache.newSoftMemoryCache(750);
141 Object key = new Cache.EqualByteArray(encoded); in generateCertificatePair()
147 key = new Cache.EqualByteArray(pair.encoded); in generateCertificatePair()
DCertStoreHelper.java44 import sun.security.util.Cache;
63 private static Cache<String, CertStoreHelper> cache
64 = Cache.newSoftMemoryCache(NUM_TYPES);
DURICertStore.java58 import sun.security.util.Cache;
187 private static final Cache<URICertStoreParameters, CertStore>
188 certStoreCache = Cache.newSoftMemoryCache(CACHE_SIZE);
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java196 return Cache.CACHE.get(key); in getInstance()
289 Cache.CACHE.cleanStaleEntries(); in cleanCache()
412 public static class Cache extends LocaleObjectCache<Key, BaseLocale> { class
414 private static final Cache CACHE = new Cache();
416 public Cache() { in Cache() method in Cache
/libcore/ojluni/src/main/java/java/util/
DSimpleTimeZone.java551 Cache cache = this.cache; in getOffsets()
673 Cache cache = this.cache; in getOffset()
690 this.cache = new Cache(year, start, end); in getOffset()
708 this.cache = new Cache((long) startYear - 1, start, end); in getOffset()
1189 private static final class Cache { class in SimpleTimeZone
1194 Cache(long year, long start, long end) { in Cache() method in SimpleTimeZone.Cache
1201 private transient volatile Cache cache;
DLocale.java930 return Cache.LOCALECACHE.get(baseloc); in getInstance()
933 return Cache.LOCALECACHE.get(key); in getInstance()
946 Cache.LOCALECACHE.cleanStaleEntries(); in cleanCache()
950 private static class Cache extends LocaleObjectCache<Object, Locale> { class in Locale
952 private static final Cache LOCALECACHE = new Cache();
954 private Cache() { in Cache() method in Locale.Cache
/libcore/ojluni/src/test/java/util/LinkedHashMap/
DCache.java34 public class Cache { class
/libcore/ojluni/annotations/hiddenapi/sun/security/provider/certpath/
DX509CertificatePair.java100 private static final sun.security.util.Cache<
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java465 private static final java.util.Locale.Cache LOCALECACHE;
611 private static class Cache class in Locale
615 private Cache() { in Cache() method in Locale.Cache
/libcore/
DEXPECTED_UPSTREAM1705 …ni/src/main/java/sun/security/util/Cache.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/sun…
2440 ojluni/src/test/java/util/LinkedHashMap/Cache.java,jdk17u/jdk-17.0.6-ga,test/jdk/java/util/LinkedHa…
Dopenjdk_java_files.bp1810 "ojluni/src/main/java/sun/security/util/Cache.java",