Home
last modified time | relevance | path

Searched refs:Reference (Results 1 – 25 of 29) sorted by relevance

12

/art/runtime/mirror/
Dreference.h42 class MANAGED Reference : public Object {
49 return sizeof(Reference); in InstanceSize()
53 return OFFSET_OF_OBJECT_MEMBER(Reference, pending_next_); in PendingNextOffset()
56 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_); in QueueOffset()
59 return OFFSET_OF_OBJECT_MEMBER(Reference, queue_next_); in QueueNextOffset()
62 return OFFSET_OF_OBJECT_MEMBER(Reference, referent_); in ReferentOffset()
80 Reference* GetPendingNext() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetPendingNext()
81 return GetFieldObject<Reference>(PendingNextOffset()); in GetPendingNext()
84 void SetPendingNext(Reference* pending_next) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in SetPendingNext()
112 HeapReference<Reference> pending_next_; // Note this is Java volatile:
[all …]
Dreference.cc22 GcRoot<Class> Reference::java_lang_ref_Reference_;
24 void Reference::SetClass(Class* java_lang_ref_Reference) { in SetClass()
30 void Reference::ResetClass() { in ResetClass()
35 void Reference::VisitRoots(RootCallback* callback, void* arg) { in VisitRoots()
Dreference-inl.h25 inline uint32_t Reference::ClassSize() { in ClassSize()
30 inline bool Reference::IsEnqueuable() { in IsEnqueuable()
Dobject.cc58 void operator()(mirror::Class* klass, mirror::Reference* ref) const in operator ()()
63 this->operator()(ref, mirror::Reference::ReferentOffset(), false); in operator ()()
Dobject.h50 class Reference; variable
196 Reference* AsReference() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
Dobject-inl.h256 inline Reference* Object::AsReference() { in AsReference()
258 return down_cast<Reference*>(this); in AsReference()
/art/runtime/gc/
Dreference_queue.cc31 void ReferenceQueue::AtomicEnqueueIfNotEnqueued(Thread* self, mirror::Reference* ref) { in AtomicEnqueueIfNotEnqueued()
39 void ReferenceQueue::EnqueueReference(mirror::Reference* ref) { in EnqueueReference()
44 void ReferenceQueue::EnqueuePendingReference(mirror::Reference* ref) { in EnqueuePendingReference()
50 mirror::Reference* head = list_->GetPendingNext(); in EnqueuePendingReference()
64 mirror::Reference* ReferenceQueue::DequeuePendingReference() { in DequeuePendingReference()
66 mirror::Reference* head = list_->GetPendingNext(); in DequeuePendingReference()
68 mirror::Reference* ref; in DequeuePendingReference()
75 mirror::Reference* next = head->GetPendingNext(); in DequeuePendingReference()
92 mirror::Reference* cur = list_; in Dump()
95 mirror::Reference* pending_next = cur->GetPendingNext(); in Dump()
[all …]
Dreference_queue.h35 class Reference; variable
51 void AtomicEnqueueIfNotEnqueued(Thread* self, mirror::Reference* ref)
56 void EnqueueReference(mirror::Reference* ref) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
57 void EnqueuePendingReference(mirror::Reference* ref) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
58 mirror::Reference* DequeuePendingReference() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
83 mirror::Reference* GetList() { in GetList()
96 mirror::Reference* list_;
Dreference_processor.h33 class Reference; variable
58 mirror::Object* GetReferent(Thread* self, mirror::Reference* reference)
61 void DelayReferenceReferent(mirror::Class* klass, mirror::Reference* ref,
Dreference_processor.cc43 mirror::Reference::GetJavaLangRefReference()->SetSlowPath(true); in EnableSlowPath()
47 mirror::Reference::GetJavaLangRefReference()->SetSlowPath(false); in DisableSlowPath()
51 mirror::Object* ReferenceProcessor::GetReferent(Thread* self, mirror::Reference* reference) { in GetReferent()
185 void ReferenceProcessor::DelayReferenceReferent(mirror::Class* klass, mirror::Reference* ref, in DelayReferenceReferent()
Dreference_processor-inl.h26 return mirror::Reference::GetJavaLangRefReference()->GetSlowPathEnabled(); in SlowPathEnabled()
/art/runtime/native/
Djava_lang_ref_Reference.cc28 mirror::Reference* const ref = soa.Decode<mirror::Reference*>(javaThis); in Reference_getReferent()
35 NATIVE_METHOD(Reference, getReferent, "!()Ljava/lang/Object;"),
/art/runtime/
Dobject_callbacks.h34 class Reference; variable
44 typedef void (DelayReferenceReferentCallback)(mirror::Class* klass, mirror::Reference* ref, void* a…
Dclass_linker_test.cc582 struct ReferenceOffsets : public CheckOffsets<mirror::Reference> {
583 ReferenceOffsets() : CheckOffsets<mirror::Reference>(false, "Ljava/lang/ref/Reference;") { in ReferenceOffsets()
584 … offsets.push_back(CheckOffset(OFFSETOF_MEMBER(mirror::Reference, pending_next_), "pendingNext")); in ReferenceOffsets()
585 offsets.push_back(CheckOffset(OFFSETOF_MEMBER(mirror::Reference, queue_), "queue")); in ReferenceOffsets()
586 offsets.push_back(CheckOffset(OFFSETOF_MEMBER(mirror::Reference, queue_next_), "queueNext")); in ReferenceOffsets()
587 offsets.push_back(CheckOffset(OFFSETOF_MEMBER(mirror::Reference, referent_), "referent")); in ReferenceOffsets()
/art/patchoat/
Dpatchoat.h37 class Reference; variable
134 void operator() (mirror::Class* cls, mirror::Reference* ref) const
Dpatchoat.cc473 void PatchOat::PatchVisitor::operator() (mirror::Class* cls, mirror::Reference* ref) const { in operator ()()
474 MemberOffset off = mirror::Reference::ReferentOffset(); in operator ()()
/art/runtime/gc/collector/
Dmark_compact.cc307 void MarkCompact::DelayReferenceReferentCallback(mirror::Class* klass, mirror::Reference* ref, in DelayReferenceReferentCallback()
432 void operator()(mirror::Class* /*klass*/, mirror::Reference* ref) const in operator ()()
435 ref->GetFieldObjectReferenceAddr<kVerifyNone>(mirror::Reference::ReferentOffset())); in operator ()()
554 void MarkCompact::DelayReferenceReferent(mirror::Class* klass, mirror::Reference* reference) { in DelayReferenceReferent()
570 void operator()(mirror::Class* klass, mirror::Reference* ref) const in operator ()()
Dsemi_space.h148 static void DelayReferenceReferentCallback(mirror::Class* klass, mirror::Reference* ref,
156 void DelayReferenceReferent(mirror::Class* klass, mirror::Reference* reference)
Dmark_compact.h133 static void DelayReferenceReferentCallback(mirror::Class* klass, mirror::Reference* ref,
138 void DelayReferenceReferent(mirror::Class* klass, mirror::Reference* reference)
Dmark_sweep.h38 class Reference; variable
211 void DelayReferenceReferent(mirror::Class* klass, mirror::Reference* reference)
Dsemi_space.cc588 void SemiSpace::DelayReferenceReferentCallback(mirror::Class* klass, mirror::Reference* ref, in DelayReferenceReferentCallback()
663 void SemiSpace::DelayReferenceReferent(mirror::Class* klass, mirror::Reference* reference) { in DelayReferenceReferent()
679 void operator()(mirror::Class* klass, mirror::Reference* ref) const in operator ()()
Dmark_sweep.cc539 void operator()(mirror::Class* klass, mirror::Reference* ref) const in operator ()()
1127 void MarkSweep::DelayReferenceReferent(mirror::Class* klass, mirror::Reference* ref) { in DelayReferenceReferent()
/art/runtime/gc/accounting/
Dremembered_set.cc82 void operator()(mirror::Class* klass, mirror::Reference* ref) const in operator ()()
/art/compiler/
Dimage_writer.cc1014 void operator()(mirror::Class* /*klass*/, mirror::Reference* ref) const in operator ()()
1018 mirror::Reference::ReferentOffset(), image_writer_->GetImageAddress(ref->GetReferent())); in operator ()()
1042 void operator()(mirror::Class* /*klass*/, mirror::Reference* ref) const in operator ()()
/art/compiler/dex/quick/
Dgen_invoke.cc1146 type_idx = mirror::Reference::GetJavaLangRefReference()->GetDexTypeIndex(); in GenInlinedReferenceGetReferent()
1147 ref_dex_file = mirror::Reference::GetJavaLangRefReference()->GetDexCache()->GetDexFile(); in GenInlinedReferenceGetReferent()
1186 mirror::Class* reference_class = mirror::Reference::GetJavaLangRefReference(); in GenInlinedReferenceGetReferent()
1220 LoadRefDisp(rl_obj.reg, mirror::Reference::ReferentOffset().Int32Value(), rl_result.reg, in GenInlinedReferenceGetReferent()

12