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

1 2 3

  /external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/
RoboCleaner.java 25 public static RoboCleaner create(Object referent, Runnable runnable) {
  /external/guava/guava/src/com/google/common/base/
FinalizablePhantomReference.java 24 * after the garbage collector reclaims the referent. This is a simpler alternative to using a
37 * @param referent to phantom reference
38 * @param queue that should finalize the referent
40 protected FinalizablePhantomReference(T referent, FinalizableReferenceQueue queue) {
41 super(referent, queue.queue);
FinalizableSoftReference.java 24 * the garbage collector reclaims the referent. This is a simpler alternative to using a {@link
35 * @param referent to softly reference
36 * @param queue that should finalize the referent
38 protected FinalizableSoftReference(T referent, FinalizableReferenceQueue queue) {
39 super(referent, queue.queue);
FinalizableWeakReference.java 24 * the garbage collector reclaims the referent. This is a simpler alternative to using a {@link
35 * @param referent to weakly reference
36 * @param queue that should finalize the referent
38 protected FinalizableWeakReference(T referent, FinalizableReferenceQueue queue) {
39 super(referent, queue.queue);
  /art/tools/ahat/src/test/com/android/ahat/
RiTest.java 39 // Hopefully the referent hasn't been cleared yet.
40 AhatInstance referent = ref.getReferent(); local
41 assertNotNull(referent);
42 assertEquals(Reachability.FINALIZER, referent.getReachability());
NativeAllocationTest.java 33 AhatInstance referent = dump.getDumpedAhatInstance("anObject"); local
34 assertEquals(50000, referent.getSize().getRegisteredNativeSize());
InstanceTest.java 200 AhatInstance referent = dump.getDumpedAhatInstance("anObject"); local
204 assertNotNull(referent);
205 assertEquals(referent, pref.getReferent());
206 assertEquals(referent, wref.getReferent());
208 assertNull(referent.getReferent());
215 // reference as having a non-null referent.
218 AhatInstance referent = ref.getReferent(); local
219 assertNotNull(referent);
220 assertEquals(Reachability.SOFT, referent.getReachability());
221 assertTrue(referent.isWeaklyReachable())
    [all...]
  /art/runtime/mirror/
reference-inl.h 34 inline void Reference::SetReferent(ObjPtr<Object> referent) {
35 SetFieldObjectVolatile<kTransactionActive>(ReferentOffset(), referent); local
reference.h 70 void SetReferent(ObjPtr<Object> referent) REQUIRES_SHARED(Locks::mutator_lock_);
88 // this case the referent should not be considered for reference processing
  /art/runtime/native/
java_lang_ref_FinalizerReference.cc 40 const ObjPtr<mirror::Object> referent = local
42 return soa.AddLocalReference<jobject>(referent);
java_lang_ref_Reference.cc 34 const ObjPtr<mirror::Object> referent = local
36 return soa.AddLocalReference<jobject>(referent);
  /external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/
GcMarker.java 38 public void add(Object referent) {
39 mList.add(new PhantomReference(referent, mQueue));
  /art/runtime/gc/
reference_processor.cc 95 const ObjPtr<mirror::Object> referent = reference->GetReferent(); local
96 // If the referent is null then it is already cleared, we can just return null since there is no
98 if (UNLIKELY(!SlowPathEnabled()) || referent == nullptr) {
99 return referent;
105 ObjPtr<mirror::Object> referent = reference->GetReferent<kWithoutReadBarrier>(); local
106 // If the referent became cleared, return it. Don't need barrier since thread roots can't get
108 if (referent == nullptr) {
111 // Try to see if the referent is already marked by using the is_marked_callback. We can return
114 // If it's null it means not marked, but it could become marked if the referent is reachable
120 // Use the cached referent instead of calling GetReferent since other threads could cal
240 mirror::HeapReference<mirror::Object>* referent = ref->GetReferentReferenceAddr(); local
    [all...]
reference_queue.cc 93 ObjPtr<mirror::Object> referent = ref->GetReferent<kWithoutReadBarrier>(); local
94 // The referent could be null if it's cleared by a mutator (Reference.clear()).
95 if (referent != nullptr) {
96 CHECK(concurrent_copying->IsInToSpace(referent.Ptr()))
98 << " referent=" << referent;
141 // Referent is white, clear it.
164 // Move the updated referent to the zombie field.
189 // do_atomic_update is false because mutators can't access the referent due to the weak ref
  /external/smali/dexlib2/src/test/java/org/jf/dexlib2/builder/
PayloadAlignmentTest.java 110 Instruction31t referent = (Instruction31t)instructions.get(0); local
111 Assert.assertEquals(6, referent.getCodeOffset());
138 Instruction31t referent = (Instruction31t)instructions.get(0); local
139 Assert.assertEquals(8, referent.getCodeOffset());
197 OffsetInstruction referent = (OffsetInstruction)instructions.get(7); local
198 Assert.assertEquals(-14, referent.getCodeOffset());
248 OffsetInstruction referent = (OffsetInstruction)instructions.get(7); local
249 Assert.assertEquals(-18, referent.getCodeOffset());
  /art/tools/ahat/src/main/com/android/ahat/
Summarizer.java 82 // Annotate Reference with its referent
83 AhatInstance referent = inst.getReferent(); local
84 if (referent != null) {
87 // It should not be possible for a referent to refer back to the
90 formatted.append(summarize(referent));
  /art/tools/ahat/src/test-dump/
DumpedStuff.java 120 public Object referent; field in class:DumpedStuff.Reference
122 public Reference(Object referent) {
123 this.referent = referent;
  /art/tools/ahat/src/main/com/android/ahat/heapdump/
AhatClassInstance.java 133 return getRefField("referent");
338 Value referent = getField("referent"); local
339 if (referent == null || !referent.isAhatInstance()) {
344 rna.referent = referent.asAhatInstance();
430 // 'referent' field doesn't have strong reachability. mJavaLangRefType
440 if (mJavaLangRefType != Reachability.STRONG && "referent".equals(field.name)) {
AhatSnapshot.java 60 nra.referent.addRegisteredNativeSize(nra.size);
  /art/runtime/
reference_table.cc 203 ObjPtr<mirror::Object> referent = ref->AsReference()->GetReferent(); local
204 if (referent == nullptr) {
205 extras = " (referent is null)";
207 extras = StringPrintf(" (referent is a %s)", referent->PrettyTypeOf().c_str());
251 // If it's a reference, see if we have data about the referent.
253 ObjPtr<mirror::Object> referent = ref->AsReference()->GetReferent(); local
254 if (referent != nullptr) {
255 print_stack(referent, "Referent allocated at:")
    [all...]
reference_table_test.cc 45 static ObjPtr<mirror::Object> CreateWeakReference(ObjPtr<mirror::Object> referent)
51 Handle<mirror::Object> h_referent(scope.NewHandle<mirror::Object>(referent));
157 // Add a reference and check that the type of the referent is dumped.
164 EXPECT_NE(oss.str().find("java.lang.ref.WeakReference (referent is null)"), std::string::npos)
177 EXPECT_NE(oss.str().find("java.lang.ref.WeakReference (referent is a java.lang.String)"),
219 jobject referent = soa.Env()->AddLocalReference<jobject>(h_with_trace.Get()); local
220 jobject result = soa.Env()->NewObject(weak_ref_class, init, referent);
235 R"( 2: 0x[0-9a-f]* java.lang.ref.WeakReference \(referent is a java.lang.String\)\n)" // NOLINT
238 R"( Referent allocated at:\n)"
  /art/test/905-object-free/src/art/
Test905.java 38 public void add(Object referent) {
39 mList.add(new PhantomReference(referent, mQueue));
  /external/desugar/java/com/google/devtools/build/android/desugar/runtime/
ThrowableExtension.java 350 * key. If the referent is marked for garbage collection and is set to null, we are still able
355 public WeakKey(Throwable referent, ReferenceQueue<Throwable> q) {
356 super(referent, q);
357 if (referent == null) {
358 throw new NullPointerException("The referent cannot be null");
360 hash = System.identityHashCode(referent);
377 // Note that, after the referent is garbage collected, then the referent will be null.
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/builder/
MutableMethodImplementation.java 515 MethodLocation referent = instructionList.get(mapCodeAddressToIndex(codeAddress));
516 return referent.addNewLabel();
524 MethodLocation referent = instructionList.get(instructionIndex);
525 return referent.addNewLabel();
530 MethodLocation referent = instructionList.get(mapCodeAddressToIndex(codeAddressToIndex, codeAddress));
531 return referent.addNewLabel();
541 MethodLocation referent = instructionList.get(mapCodeAddressToIndex(codeAddressToIndex, codeAddress));
544 referent.getLabels().add(label);
    [all...]
  /external/syzkaller/prog/
clone.go 72 a1.uses = nil // filled when we clone the referent

Completed in 555 milliseconds

1 2 3