Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java19 import java.lang.ref.ReferenceQueue;
31 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithInvalidTimeout()
40 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithVeryLargeTimeout()
46 final ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithSpuriousNotify()
64 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithImmediateResultAndNoTimeout()
70 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithImmediateResultAndTimeout()
76 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithDelayedResultAndNoTimeout()
86 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithDelayedResultAndTimeout()
129 private void enqueueLater(final ReferenceQueue<Object> queue, int delayMillis) { in enqueueLater()
137 private void enqueue(ReferenceQueue<Object> queue) { in enqueue()
/libcore/benchmarks/src/benchmarks/
DReferenceBenchmark.java20 import java.lang.ref.ReferenceQueue;
34 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAlloc()
42 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocAndEnqueue()
50 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocEnqueueAndPoll()
61 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocEnqueueAndRemove()
77 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in timeAllocImplicitEnqueueAndRemove()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ref/
DReferenceTest.java21 import java.lang.ref.ReferenceQueue;
43 public TestWeakReference(T referent, ReferenceQueue<? super T> q) { in TestWeakReference()
69 SoftReference sr = new SoftReference(tmpA, new ReferenceQueue()); in test_clear()
70 WeakReference wr = new WeakReference(tmpB, new ReferenceQueue()); in test_clear()
71 PhantomReference pr = new PhantomReference(tmpC, new ReferenceQueue()); in test_clear()
89 ReferenceQueue rq = new ReferenceQueue(); in test_enqueue()
100 rq = new ReferenceQueue(); in test_enqueue()
124 ReferenceQueue<Object> queue = new ReferenceQueue<Object>(); in test_get_WeakReference()
173 final ReferenceQueue rq = new ReferenceQueue(); in test_subclass()
221 ref = new WeakReference<Object>(obj, new ReferenceQueue<Object>()); in test_get()
[all …]
DPhantomReferenceTest.java22 import java.lang.ref.ReferenceQueue;
39 ReferenceQueue rq = new ReferenceQueue(); in test_get()
55 ReferenceQueue<? super T> q) { in test_gcInteraction()
66 final ReferenceQueue rq = new ReferenceQueue(); in test_gcInteraction()
114 ReferenceQueue rq = new ReferenceQueue(); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
DSoftReferenceTest.java20 import java.lang.ref.ReferenceQueue;
38 ReferenceQueue rq = new ReferenceQueue(); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
94 final ReferenceQueue rq = new ReferenceQueue(); in test_get_SoftReference()
DWeakReferenceTest.java20 import java.lang.ref.ReferenceQueue;
35 ReferenceQueue rq = new ReferenceQueue(); in test_ConstructorLjava_lang_ObjectLjava_lang_ref_ReferenceQueue()
DReferenceQueueTest.java22 import java.lang.ref.ReferenceQueue;
55 ReferenceQueue rq;
193 rq = new ReferenceQueue(); in test_removeJ()
238 ReferenceQueue rq = new ReferenceQueue(); in test_Constructor()
248 rq = new ReferenceQueue(); in setUp()
/libcore/libart/src/main/java/java/lang/
DDaemons.java24 import java.lang.ref.ReferenceQueue;
148 synchronized (ReferenceQueue.class) { in run()
149 while (ReferenceQueue.unenqueued == null) { in run()
150 ReferenceQueue.class.wait(); in run()
152 list = ReferenceQueue.unenqueued; in run()
153 ReferenceQueue.unenqueued = null; in run()
160 ReferenceQueue.enqueuePending(list); in run()
167 private final ReferenceQueue<Object> queue = FinalizerReference.queue;
/libcore/ojluni/src/main/java/java/lang/ref/
DReferenceQueue.java38 public class ReferenceQueue<T> { class
54 public ReferenceQueue() { } in ReferenceQueue() method in ReferenceQueue
220 ReferenceQueue queue = list.queue; in enqueuePending()
260 synchronized (ReferenceQueue.class) { in add()
277 ReferenceQueue.class.notifyAll(); in add()
DReference.java58 final ReferenceQueue<? super T> queue;
154 Reference(T referent, ReferenceQueue<? super T> queue) { in Reference()
DPhantomReference.java79 public PhantomReference(T referent, ReferenceQueue<? super T> q) { in PhantomReference()
DWeakReference.java68 public WeakReference(T referent, ReferenceQueue<? super T> q) { in WeakReference()
DSoftReference.java102 public SoftReference(T referent, ReferenceQueue<? super T> q) { in SoftReference()
/libcore/luni/src/main/java/java/lang/ref/
DFinalizerReference.java24 public static final ReferenceQueue<Object> queue = new ReferenceQueue<Object>();
41 public FinalizerReference(T r, ReferenceQueue<? super T> q) { in FinalizerReference()
119 ReferenceQueue.add(sentinelReference); in enqueueSentinelReference()
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleObjectCache.java34 import java.lang.ref.ReferenceQueue;
41 private ReferenceQueue<V> queue = new ReferenceQueue<>();
106 CacheEntry(K key, V value, ReferenceQueue<V> queue) { in CacheEntry()
/libcore/ojluni/src/main/java/sun/misc/
DSoftCache.java29 import java.lang.ref.ReferenceQueue;
123 private ValueCell(Object key, Object value, ReferenceQueue queue) { in ValueCell()
129 ReferenceQueue queue) in create()
160 private ReferenceQueue queue = new ReferenceQueue();
DCleaner.java67 private static final ReferenceQueue dummyQueue = new ReferenceQueue();
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileLockTable.java92 ReferenceQueue<FileLock> queue, in FileLockReference()
110 private static ReferenceQueue<FileLock> queue = new ReferenceQueue<FileLock>();
/libcore/ojluni/src/main/java/sun/security/util/
DCache.java258 private final ReferenceQueue<V> queue;
268 this.queue = new ReferenceQueue<>(); in MemoryCache()
460 long expirationTime, ReferenceQueue<V> queue) { in newEntry()
523 ReferenceQueue<V> queue) { in SoftCacheEntry()
/libcore/ojluni/src/main/java/java/lang/
DThread.java30 import java.lang.ref.ReferenceQueue;
1635 static final ReferenceQueue<Class<?>> subclassAuditsQueue =
1636 new ReferenceQueue<>();
1953 static void processQueue(ReferenceQueue<Class<?>> queue, in processQueue()
1977 WeakClassKey(Class<?> cl, ReferenceQueue<Class<?>> refQueue) { in WeakClassKey()
/libcore/luni/src/main/java/java/util/concurrent/
DForkJoinTask.java10 import java.lang.ref.ReferenceQueue;
388 private static final ReferenceQueue<Object> exceptionTableRefQueue;
413 ReferenceQueue<Object> exceptionTableRefQueue) { in ExceptionNode()
1496 exceptionTableRefQueue = new ReferenceQueue<Object>();
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java29 import java.lang.ref.ReferenceQueue;
94 private static final ReferenceQueue<Class<?>> localDescsQueue =
95 new ReferenceQueue<>();
97 private static final ReferenceQueue<Class<?>> reflectorsQueue =
98 new ReferenceQueue<>();
2180 ReferenceQueue<Class<?>> queue) in FieldReflectorKey()
2305 static void processQueue(ReferenceQueue<Class<?>> queue, in processQueue()
2330 WeakClassKey(Class<?> cl, ReferenceQueue<Class<?>> refQueue) { in WeakClassKey()
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java48 import java.lang.ref.ReferenceQueue;
302 private static final ReferenceQueue referenceQueue = new ReferenceQueue();
674 LoaderReference(ClassLoader referent, ReferenceQueue q, CacheKey key) { in LoaderReference()
692 BundleReference(ResourceBundle referent, ReferenceQueue q, CacheKey key) { in BundleReference()
DWeakHashMap.java29 import java.lang.ref.ReferenceQueue;
179 private final ReferenceQueue<Object> queue = new ReferenceQueue<>();
693 ReferenceQueue<Object> queue, in Entry()
/libcore/ojluni/src/main/java/java/util/logging/
DLogManager.java33 import java.lang.ref.ReferenceQueue;
803 private final ReferenceQueue<Logger> loggerRefQueue
804 = new ReferenceQueue<>();

12