Searched refs:referent (Results 1 - 14 of 14) sorted by relevance

/art/runtime/mirror/
H A Dreference-inl.h33 inline void Reference::SetReferent(ObjPtr<Object> referent) { argument
34 SetFieldObjectVolatile<kTransactionActive>(ReferentOffset(), referent); local
H A Dreference.h73 void SetReferent(ObjPtr<Object> referent) REQUIRES_SHARED(Locks::mutator_lock_);
91 // this case the referent should not be considered for reference processing
/art/runtime/native/
H A Djava_lang_ref_FinalizerReference.cc37 ObjPtr<mirror::Object> const referent = local
39 return soa.AddLocalReference<jobject>(referent);
H A Djava_lang_ref_Reference.cc31 ObjPtr<mirror::Object> const referent = local
33 return soa.AddLocalReference<jobject>(referent);
/art/runtime/gc/
H A Dreference_processor.cc69 ObjPtr<mirror::Object> const referent = reference->GetReferent(); local
70 // If the referent is null then it is already cleared, we can just return null since there is no
72 if (UNLIKELY(!SlowPathEnabled()) || referent == nullptr) {
73 return referent;
79 ObjPtr<mirror::Object> referent = reference->GetReferent<kWithoutReadBarrier>(); local
80 // If the referent became cleared, return it. Don't need barrier since thread roots can't get
82 if (referent == nullptr) {
85 // Try to see if the referent is already marked by using the is_marked_callback. We can return
88 // If it's null it means not marked, but it could become marked if the referent is reachable
94 // Use the cached referent instea
214 mirror::HeapReference<mirror::Object>* referent = ref->GetReferentReferenceAddr(); local
[all...]
H A Dreference_queue.cc91 ObjPtr<mirror::Object> referent = ref->GetReferent<kWithoutReadBarrier>(); local
92 // The referent could be null if it's cleared by a mutator (Reference.clear()).
93 if (referent != nullptr) {
94 CHECK(concurrent_copying->IsInToSpace(referent.Ptr()))
96 << " referent=" << referent;
162 // Move the updated referent to the zombie field.
187 // do_atomic_update is false because mutators can't access the referent due to the weak ref
/art/tools/ahat/src/
H A DSummarizer.java86 // Annotate Reference with its referent
87 AhatInstance referent = inst.getReferent();
88 if (referent != null) {
91 // It should not be possible for a referent to refer back to the
94 formatted.append(summarize(referent));
/art/runtime/
H A Dreference_table.cc201 ObjPtr<mirror::Object> referent = ref->AsReference()->GetReferent(); local
202 if (referent == nullptr) {
203 extras = " (referent is null)";
205 extras = StringPrintf(" (referent is a %s)", referent->PrettyTypeOf().c_str());
H A Dreference_table_test.cc40 static mirror::Object* CreateWeakReference(mirror::Object* referent)
46 Handle<mirror::Object> h_referent(scope.NewHandle<mirror::Object>(referent));
150 // Add a reference and check that the type of the referent is dumped.
157 EXPECT_NE(oss.str().find("java.lang.ref.WeakReference (referent is null)"), std::string::npos)
168 EXPECT_NE(oss.str().find("java.lang.ref.WeakReference (referent is a java.lang.String)"),
H A Dclass_linker.cc790 ArtField* referent = java_lang_ref_Reference->GetInstanceField(3); local
791 CHECK_STREQ(referent->GetName(), "referent");
792 CHECK_STREQ(referent->GetTypeDescriptor(), "Ljava/lang/Object;");
7701 // We lie to the GC about the java.lang.ref.Reference.referent field, so it doesn't scan it.
7704 // that 'referent' is alphabetically last, so this is easy...
7706 CHECK_STREQ(fields->At(num_fields - 1).GetName(), "referent")
7779 strcmp("referent", field->GetName()) == 0) {
/art/tools/ahat/test/
H A DInstanceTest.java214 AhatInstance referent = dump.getDumpedAhatInstance("anObject");
218 assertNotNull(referent);
219 assertEquals(referent, pref.getReferent());
220 assertEquals(referent, wref.getReferent());
222 assertNull(referent.getReferent());
229 // reference as having a non-null referent.
/art/patchoat/
H A Dpatchoat.cc613 mirror::Object* referent = obj->GetFieldObject<mirror::Object, kVerifyNone>(off); local
614 mirror::Object* moved_object = patcher_->RelocatedAddressOfPointer(referent);
621 mirror::Object* referent = ref->GetReferent(); local
622 DCHECK(referent == nullptr ||
623 Runtime::Current()->GetHeap()->ObjectIsInBootImageSpace(referent)) << referent;
624 mirror::Object* moved_object = patcher_->RelocatedAddressOfPointer(referent);
/art/runtime/gc/collector/
H A Dconcurrent_copying.cc129 // Used to mark the referent in DelayReferenceReferent in transaction mode.
145 // no other threads which can trigger read barriers on the same referent during reference
1459 mirror::Object* referent = nullptr; local
1461 (referent = to_ref->AsReference()->GetReferent<kWithoutReadBarrier>()) != nullptr &&
1462 !IsInToSpace(referent)))) {
1467 // We may occasionally leave a reference white in the queue if its referent happens to be
/art/runtime/interpreter/
H A Dunstarted_runtime.cc1369 ObjPtr<mirror::Object> const referent = local
1371 result->SetL(referent);

Completed in 300 milliseconds