/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/ |
D | SoftReferenceTest.java | 21 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()
|
D | ReferenceQueueTest.java | 23 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()
|
D | ReferenceTest.java | 22 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/ |
D | SoftReference.java | 68 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/ |
D | BashTest.java | 31 package test.java.lang.ref.SoftReference; 35 import java.lang.ref.SoftReference; 42 static class TestReference extends SoftReference {
|
/libcore/benchmarks/src/benchmarks/ |
D | ReferenceGetBenchmark.java | 21 import java.lang.ref.SoftReference; 37 Reference soft = new SoftReference(obj); in timeSoftReferenceGet()
|
/libcore/ojluni/src/main/java/java/text/ |
D | DateFormatSymbols.java | 46 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/ |
D | LocaleObjectCache.java | 35 import java.lang.ref.SoftReference; 103 private static class CacheEntry<K, V> extends SoftReference<V> {
|
D | BaseLocale.java | 44 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/ |
D | EnqueueNullRefTest.java | 46 test(q, new SoftReference(null, q)); in test()
|
D | ReferenceCloneTest.java | 70 class SoftRef extends SoftReference<Object> implements CloneableRef {
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 34 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/ |
D | MemoryCache.java | 146 private static class SoftCacheEntry<K, V> extends java.lang.ref.SoftReference<V>
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodTypeForm.java | 29 import java.lang.ref.SoftReference;
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 85 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/ |
D | JarFile.java | 30 import java.lang.ref.SoftReference;
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 33 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/ |
D | Cache.java | 555 extends SoftReference<V>
|
/libcore/ojluni/src/main/java/java/util/ |
D | ResourceBundle.java | 50 import java.lang.ref.SoftReference; 848 private static class BundleReference extends SoftReference<ResourceBundle>
|
D | Date.java | 34 import java.lang.ref.SoftReference;
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 42 import java.lang.ref.SoftReference;
|
/libcore/expectations/ |
D | knownfailures.txt | 20 "java.lang.ref.SoftReference.Pin",
|
/libcore/ |
D | openjdk_java_files.bp | 221 "ojluni/src/main/java/java/lang/ref/SoftReference.java",
|
D | EXPECTED_UPSTREAM | 281 …/src/main/java/java/lang/ref/SoftReference.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/j…
|
/libcore/api/ |
D | current.txt | 4942 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>);
|