Home
last modified time | relevance | path

Searched refs:SoftReference (Results 1 – 25 of 25) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DSoftReferenceTest.java21 import java.lang.ref.SoftReference;
27 SoftReference r;
41 SoftReference sr = new SoftReference(bool, rq); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
50 new SoftReference(bool, null); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
63 SoftReference sr = new SoftReference(bool); in test_ConstructorLjava_lang_Object()
76 SoftReference sr = new SoftReference(bool); in test_get()
99 r = new SoftReference(testObj, rq); in test_get_SoftReference()
DReferenceQueueTest.java23 import java.lang.ref.SoftReference;
50 SoftReference sr = new SoftReference(integer, rq); in run()
67 SoftReference sr = new SoftReference(b, rq); in test_poll()
112 SoftReference sr = new SoftReference(b, rq); in test_remove()
179 SoftReference sr = new SoftReference(b, rq); in test_removeJ()
DReferenceTest.java22 import java.lang.ref.SoftReference;
69 SoftReference sr = new SoftReference(tmpA, new ReferenceQueue()); in test_clear()
92 final SoftReference sr = new SoftReference(tmpA, new ReferenceQueue()); in test_refersTo()
148 Reference ref = new SoftReference(obj, rq); in test_enqueue()
301 Reference ref = new SoftReference(obj, rq); in test_isEnqueued()
/libcore/ojluni/src/main/java/java/lang/ref/
DSoftReference.java68 public class SoftReference<T> extends Reference<T> { class
88 public SoftReference(T referent) { in SoftReference() method in SoftReference
102 public SoftReference(T referent, ReferenceQueue<? super T> q) { in SoftReference() method in SoftReference
/libcore/ojluni/src/test/java/lang/ref/SoftReference/
DBashTest.java31 package test.java.lang.ref.SoftReference;
35 import java.lang.ref.SoftReference;
42 static class TestReference extends SoftReference {
/libcore/benchmarks/src/benchmarks/
DReferenceGetBenchmark.java21 import java.lang.ref.SoftReference;
37 Reference soft = new SoftReference(obj); in timeSoftReferenceGet()
/libcore/ojluni/src/main/java/java/text/
DDateFormatSymbols.java46 import java.lang.ref.SoftReference;
437 SoftReference<DateFormatSymbols> ref = cachedInstances.get(cacheKey); in getCachedInstance()
441 ref = new SoftReference<>(dfs); in getCachedInstance()
442 SoftReference<DateFormatSymbols> x = cachedInstances.putIfAbsent(cacheKey, ref); in getCachedInstance()
836 private static final ConcurrentMap<Locale, SoftReference<DateFormatSymbols>> cachedInstances
856 SoftReference<DateFormatSymbols> ref = cachedInstances.get(cacheKey); in initializeData()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleObjectCache.java35 import java.lang.ref.SoftReference;
103 private static class CacheEntry<K, V> extends SoftReference<V> {
DBaseLocale.java44 import java.lang.ref.SoftReference;
305 private final SoftReference<BaseLocale> holderRef;
320 this.holderRef = new SoftReference<>(locale); in Key()
/libcore/ojluni/src/test/java/lang/ref/
DEnqueueNullRefTest.java46 test(q, new SoftReference(null, q)); in test()
DReferenceCloneTest.java70 class SoftRef extends SoftReference<Object> implements CloneableRef {
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixPath.java34 import java.lang.ref.SoftReference;
46 private static ThreadLocal<SoftReference<CharsetEncoder>> encoder =
47 new ThreadLocal<SoftReference<CharsetEncoder>>();
120 SoftReference<CharsetEncoder> ref = encoder.get(); in encode()
126 encoder.set(new SoftReference<CharsetEncoder>(ce)); in encode()
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DMemoryCache.java146 private static class SoftCacheEntry<K, V> extends java.lang.ref.SoftReference<V>
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodTypeForm.java29 import java.lang.ref.SoftReference;
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeFormatterBuilder.java85 import java.lang.ref.SoftReference;
4161 private static final Map<String, SoftReference<Map<Locale, String[]>>> cache =
4169 SoftReference<Map<Locale, String[]>> ref = cache.get(id); in getDisplayName()
4223 cache.put(id, new SoftReference<>(perLocale)); in getDisplayName()
4267 private final Map<Locale, Entry<Integer, SoftReference<PrefixTree>>>
4269 private final Map<Locale, Entry<Integer, SoftReference<PrefixTree>>>
4283 Map<Locale, Entry<Integer, SoftReference<PrefixTree>>> cached = in getTree()
4286 Entry<Integer, SoftReference<PrefixTree>> entry = null; in getTree()
4373 … cached.put(locale, new SimpleImmutableEntry<>(regionIdsSize, new SoftReference<>(tree))); in getTree()
/libcore/ojluni/src/main/java/java/util/jar/
DJarFile.java30 import java.lang.ref.SoftReference;
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java33 import java.lang.ref.SoftReference;
363 Reference<?> newRef = new SoftReference<>(newEntry); in lookup()
402 Caches.localDescs.put(key, new SoftReference<Object>(entry)); in lookup()
2331 Reference<?> newRef = new SoftReference<>(newEntry); in getReflector()
2357 Caches.reflectors.put(key, new SoftReference<Object>(entry)); in getReflector()
/libcore/ojluni/src/main/java/sun/security/util/
DCache.java555 extends SoftReference<V>
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java50 import java.lang.ref.SoftReference;
848 private static class BundleReference extends SoftReference<ResourceBundle>
DDate.java34 import java.lang.ref.SoftReference;
/libcore/ojluni/src/main/java/java/lang/
DClass.java42 import java.lang.ref.SoftReference;
/libcore/expectations/
Dknownfailures.txt20 "java.lang.ref.SoftReference.Pin",
/libcore/
Dopenjdk_java_files.bp221 "ojluni/src/main/java/java/lang/ref/SoftReference.java",
DEXPECTED_UPSTREAM281 …/src/main/java/java/lang/ref/SoftReference.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/j…
/libcore/api/
Dcurrent.txt4942 public class SoftReference<T> extends java.lang.ref.Reference<T> {
4943 ctor public SoftReference(T);
4944 ctor public SoftReference(T, java.lang.ref.ReferenceQueue<? super T>);