Searched refs:referenceQueue (Results 1 – 5 of 5) sorted by relevance
47 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in ensure_cache_is_cleared_if_no_reference_to_classloader_and_classes() local48 … Reference<Object> typeReference = new PhantomReference<Object>(the_mock_type, referenceQueue); in ensure_cache_is_cleared_if_no_reference_to_classloader_and_classes()58 assertThat(referenceQueue.poll()).isEqualTo(typeReference); in ensure_cache_is_cleared_if_no_reference_to_classloader_and_classes()85 ReferenceQueue<Object> referenceQueue = new ReferenceQueue<Object>(); in ensure_cache_returns_same_instance() local86 … Reference<Object> typeReference = new PhantomReference<Object>(the_mock_type, referenceQueue); in ensure_cache_returns_same_instance()97 assertThat(referenceQueue.poll()).isEqualTo(typeReference); in ensure_cache_returns_same_instance()
311 private final ReferenceQueue<Throwable> referenceQueue = new ReferenceQueue<>(); field in ThrowableExtension.ConcurrentWeakIdentityHashMap330 list = map.putIfAbsent(new WeakKey(throwable, referenceQueue), newValue); in get()341 for (Reference<?> key = referenceQueue.poll(); key != null; key = referenceQueue.poll()) { in deleteEmptyKeys()
84 …private final ReferenceQueue<ObjectReferenceImpl> referenceQueue = new ReferenceQueue<ObjectRefere… field in VirtualMachineImpl1233 while ((ref = referenceQueue.poll()) != null) { in processQueue()1292 ref = new SoftObjectReference(key, object, referenceQueue); in objectMirror()
1373 <T> void clearReferenceQueue(ReferenceQueue<T> referenceQueue) { in clearReferenceQueue() argument1374 while (referenceQueue.poll() != null) {} in clearReferenceQueue()
1378 <T> void clearReferenceQueue(ReferenceQueue<T> referenceQueue) { in clearReferenceQueue() argument1379 while (referenceQueue.poll() != null) {} in clearReferenceQueue()