HomeSort by relevance Sort by last modified time
    Searched refs:Reference (Results 1 - 25 of 39) sorted by null

1 2

  /external/apache-http/src/org/apache/http/impl/conn/tsccm/
RefQueueHandler.java 33 import java.lang.ref.Reference;
42 * Invoked when a reference is found on the queue.
44 * @param ref the reference to handle
46 public void handleReference(Reference<?> ref)
RefQueueWorker.java 33 import java.lang.ref.Reference;
43 * {@link Reference Reference}s can be
54 /** The reference queue to monitor. */
101 // remove the next reference and process it
102 Reference<?> ref = refQueue.remove();
AbstractConnPool.java 34 import java.lang.ref.Reference;
84 * A reference queue to track loss of pool entries to GC.
195 public void handleReference(Reference ref) {
  /libcore/luni/src/main/java/java/lang/ref/
Reference.java 36 * Provides an abstract class which describes behavior common to all reference
38 * {@code Reference} in addition to the ones provided by this package. It is
40 * with the system's garbage collector. The existing, specialized reference
43 public abstract class Reference<T> {
46 * The object to which this reference refers.
53 * If non-null, the queue on which this reference will be enqueued
64 * and be a java.lang.ref.Reference.
67 volatile Reference queueNext;
71 * list of reference objects awaiting processing by the garbage
75 volatile Reference pendingNext
    [all...]
ReferenceQueue.java 25 * The {@code ReferenceQueue} is the container on which reference objects are
33 private Reference<? extends T> head;
43 * Returns the next available reference from the queue, removing it in the
44 * process. Does not wait for a reference to become available.
46 * @return the next available reference, or {@code null} if no reference is
50 public synchronized Reference<? extends T> poll() {
55 Reference<? extends T> ret;
71 * Returns the next available reference from the queue, removing it in the
72 * process. Waits indefinitely for a reference to become available
    [all...]
PhantomReference.java 36 * Implements a phantom reference, which is the weakest of the three types of
40 * reference queue of the phantom reference must explicitly be processed by some
41 * application code. As a consequence, a phantom reference that is not
42 * registered with any reference queue does not make any sense.
48 public class PhantomReference<T> extends Reference<T> {
51 * Constructs a new phantom reference and registers it with the given
52 * reference queue. The reference queue may be {@code null}, but this case
53 * does not make any sense, since the reference will never be enqueued, an
    [all...]
SoftReference.java 36 * Implements a soft reference, which is the least-weak of the three types of
60 * ref} will be enqueued with their corresponding reference queues, if any.
73 * decision is made to clear and enqueue the reference:
87 public class SoftReference<T> extends Reference<T> {
90 * Constructs a new soft reference to the given referent. The newly created
91 * reference is not registered with any reference queue.
101 * Constructs a new soft reference to the given referent. The newly created
102 * reference is registered with the given reference queue
    [all...]
WeakReference.java 36 * Implements a weak reference, which is the middle of the three types of
64 * with their corresponding reference queues, if any.
72 * reference:
86 public class WeakReference<T> extends Reference<T> {
89 * Constructs a new weak reference to the given referent. The newly created
90 * reference is not registered with any reference queue.
100 * Constructs a new weak reference to the given referent. The newly created
101 * reference is registered with the given reference queue
    [all...]
  /libcore/luni/src/main/java/org/apache/harmony/luni/platform/
RuntimeMemorySpy.java 20 import java.lang.ref.Reference;
43 private final Map<Reference, PlatformAddress> refToShadow = new HashMap<Reference, PlatformAddress>(); // Reference to Shadow
52 Reference ref = notifyQueue.poll(); // non-blocking check
104 private void orphanedMemory(Reference ref) {
  /external/v8/src/arm/
codegen-arm-inl.h 60 void Reference::GetValueAndSpill() {
codegen-arm.h 45 // Reference support
47 // A reference is a C++ stack-allocated object that puts a
48 // reference on the virtual frame. The reference may be consumed
50 // When the lifetime (scope) of a valid reference ends, it must have
52 class Reference BASE_EMBEDDED {
56 Reference(CodeGenerator* cgen,
59 ~Reference();
73 // The size the reference takes up on the stack.
86 // Generate code to push the value of the reference on top of th
    [all...]
  /libcore/luni/src/main/java/java/lang/
ThreadLocal.java 25 import java.lang.ref.Reference;
64 if (this.reference == table[index]) {
130 /** Weak reference to this thread local instance. */
131 private final Reference<ThreadLocal<T>> reference field in class:ThreadLocal
221 Reference<InheritableThreadLocal<?>> reference local
222 = (Reference<InheritableThreadLocal<?>>) k;
224 InheritableThreadLocal key = reference.get();
285 Reference<ThreadLocal<?>> referenc local
351 Reference<ThreadLocal<?>> reference local
459 Object reference = table[index]; local
514 Object reference = table[index]; local
    [all...]
  /libcore/luni/src/test/java/tests/api/java/lang/ref/
ReferenceTest.java 27 import java.lang.ref.Reference;
33 @TestTargetClass(Reference.class)
37 volatile Reference r;
93 * @tests java.lang.ref.Reference#clear()
117 // Must reference tmpA and tmpB so the jit does not optimize them away
122 * @tests java.lang.ref.Reference#enqueue()
141 Reference ref = new SoftReference(obj, rq);
173 * @tests java.lang.ref.Reference#enqueue()
182 // Test the general/overall functionality of Reference.
209 Reference ref
    [all...]
PhantomReferenceTest.java 26 import java.lang.ref.Reference;
111 Reference r = rq.remove(100L);
112 assertNotNull("Reference should have been enqueued.", r);
147 // need a reference to bool so the jit does not optimize it away
SoftReferenceTest.java 26 import java.lang.ref.Reference;
133 Reference ref;
ReferenceQueueTest.java 26 import java.lang.ref.Reference;
187 Reference ret = rq.remove(0L);
208 Reference result = rq.remove(1L);
  /external/emma/ant/ant14/com/vladium/emma/report/
reportTask.java 13 import org.apache.tools.ant.types.Reference;
90 public void setSourcepathRef (final Reference ref)
ReportCfg.java 28 import org.apache.tools.ant.types.Reference;
307 public void setSourcepathRef (final Reference ref)
  /external/guava/src/com/google/common/base/internal/
Finalizer.java 20 import java.lang.ref.Reference;
38 * Google Collections, this thread would keep an indirect strong reference
63 * @param frq reference to instance of FinalizableReferenceQueue that started
112 + " by reference finalizer thread.", t);
134 * Cleans up a single reference. Catches and logs all throwables.
136 private void cleanUp(Reference<?> reference) throws ShutDown {
143 reference.clear();
145 if (reference == frqReference) {
147 * The client no longer has a reference to th
    [all...]
  /external/emma/ant/ant14/com/vladium/emma/instr/
instrTask.java 16 import org.apache.tools.ant.types.Reference;
92 public void setInstrpathRef (final Reference ref)
  /external/guava/src/com/google/common/base/
FinalizableReferenceQueue.java 21 import java.lang.ref.Reference;
30 * A reference queue with an associated background thread that dequeues
34 * <p>Keep a strong reference to this object until all of the associated
45 * The Finalizer thread keeps a phantom reference to this object. When the
46 * client (ReferenceMap, for example) no longer has a strong reference to
48 * phantom reference. The enqueued reference will trigger the Finalizer to
55 * that Finalizer not have a strong reference back to the class loader.
65 * remain, the Finalizer thread keeps an indirect strong reference to the
83 * Now, Finalizer no longer keeps an indirect strong reference to th
153 Reference<?> reference; local
    [all...]
  /external/emma/ant/ant14/com/vladium/emma/
emmajavaTask.java 31 import org.apache.tools.ant.types.Reference;
272 public void setClasspathRef (final Reference ref)
365 public final void setLibclasspathRef (final Reference ref)
457 public final void setSourcepathRef (final Reference ref)
  /external/v8/src/ia32/
codegen-ia32.h 45 // Reference support
47 // A reference is a C++ stack-allocated object that puts a
48 // reference on the virtual frame. The reference may be consumed
50 // When the lifetime (scope) of a valid reference ends, it must have
52 class Reference BASE_EMBEDDED {
56 Reference(CodeGenerator* cgen,
59 ~Reference();
73 // The size the reference takes up on the stack.
86 // Generate code to push the value of the reference on top of th
    [all...]
  /external/v8/src/x64/
codegen-x64.h 45 // Reference support
47 // A reference is a C++ stack-allocated object that puts a
48 // reference on the virtual frame. The reference may be consumed
50 // When the lifetime (scope) of a valid reference ends, it must have
52 class Reference BASE_EMBEDDED {
57 Reference(CodeGenerator* cgen,
60 ~Reference();
74 // The size the reference takes up on the stack.
87 // Generate code to push the value of the reference on top of th
    [all...]
  /external/emma/core/java12/com/vladium/util/
SoftValueMap.java 11 import java.lang.ref.Reference;
179 final Reference ref = entry.m_softValue;
195 final Reference ref = entry.m_softValue;
451 m_softValue = new IndexedSoftReference (value, valueReferenceQueue, bucketIndex); // ... do not retain a strong reference to the value
457 IndexedSoftReference m_softValue; // soft reference to the value [never null]
458 Object m_key; // strong reference to the key [never null]
490 IndexedSoftReference ref = entry.m_softValue; // get the soft value reference
492 Object entryValue = ref.get (); // convert the soft reference to a local strong one
497 // [assertion: 'softValue' couldn't have been enqueued already and can't be enqueued until strong reference in 'entryKey' is nulled out]
546 next: for (Reference _ref; (_ref = m_valueReferenceQueue.poll ()) != null;
    [all...]

Completed in 346 milliseconds

1 2