Home
last modified time | relevance | path

Searched refs:referenceQueue (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java31 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithInvalidTimeout() local
33 referenceQueue.remove(-1); in testRemoveWithInvalidTimeout()
53 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithVeryLargeTimeout() local
54 enqueueLater(referenceQueue, 500); in testRemoveWithVeryLargeTimeout()
55 referenceQueue.remove(Long.MAX_VALUE); in testRemoveWithVeryLargeTimeout()
59 final ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithSpuriousNotify() local
63 synchronized (referenceQueue) { in testRemoveWithSpuriousNotify()
64 referenceQueue.notifyAll(); in testRemoveWithSpuriousNotify()
71 referenceQueue.remove(timeoutMsec); in testRemoveWithSpuriousNotify()
78 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in testRemoveWithImmediateResultAndNoTimeout() local
[all …]
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java313 private static final ReferenceQueue<Object> referenceQueue = new ReferenceQueue<>(); field in ResourceBundle
571 loaderRef = new LoaderReference(loader, referenceQueue, this); in CacheKey()
656 referenceQueue, clone); in clone()
1427 while ((ref = referenceQueue.poll()) != null) { in findBundle()
1691 BundleReference bundleRef = new BundleReference(bundle, referenceQueue, key); in putBundleInCache()