Home
last modified time | relevance | path

Searched refs:ref (Results 1 – 25 of 197) sorted by relevance

12345678

/art/runtime/
Dread_barrier-inl.h55 MirrorType* ref = ref_addr->template AsMirrorPtr<kIsVolatile>(); in Barrier() local
56 MirrorType* old_ref = ref; in Barrier()
59 ref = reinterpret_cast<MirrorType*>(Mark(ref)); in Barrier()
62 if (kAlwaysUpdateField && ref != old_ref) { in Barrier()
65 ref, in Barrier()
70 AssertToSpaceInvariant(obj, offset, ref); in Barrier()
71 return ref; in Barrier()
73 MirrorType* ref = ref_addr->template AsMirrorPtr<kIsVolatile>(); in Barrier() local
74 MirrorType* old_ref = ref; in Barrier()
78 ref = reinterpret_cast<MirrorType*>(Mark(old_ref)); in Barrier()
[all …]
Dreference_table.cc173 ObjPtr<mirror::Object> ref = entries[idx].Read(); in Dump() local
174 if (ref == nullptr) { in Dump()
177 if (runtime->IsClearedJniWeakGlobal(ref)) { in Dump()
181 if (ref->GetClass() == nullptr) { in Dump()
183 size_t size = ref->SizeOf(); in Dump()
184 os << StringPrintf(" %5d: %p (raw) (%zd bytes)\n", idx, ref.Ptr(), size); in Dump()
188 std::string className(ref->PrettyTypeOf()); in Dump()
191 size_t element_count = GetElementCount(ref); in Dump()
194 } else if (ref->GetClass()->IsStringClass()) { in Dump()
195 ObjPtr<mirror::String> s = ref->AsString(); in Dump()
[all …]
Dread_barrier.h76 ALWAYS_INLINE static MirrorType* IsMarked(MirrorType* ref)
82 static void AssertToSpaceInvariant(mirror::Object* ref) in AssertToSpaceInvariant() argument
84 AssertToSpaceInvariant(nullptr, MemberOffset(0), ref); in AssertToSpaceInvariant()
88 mirror::Object* ref)
91 static void AssertToSpaceInvariant(GcRootSource* gc_root_source, mirror::Object* ref)
95 static void MaybeAssertToSpaceInvariant(mirror::Object* ref) in MaybeAssertToSpaceInvariant() argument
98 AssertToSpaceInvariant(ref); in MaybeAssertToSpaceInvariant()
Dgc_root-inl.h37 inline GcRoot<MirrorType>::GcRoot(MirrorType* ref) in GcRoot() argument
38 : root_(mirror::CompressedReference<mirror::Object>::FromMirrorPtr(ref)) { } in GcRoot()
41 inline GcRoot<MirrorType>::GcRoot(ObjPtr<MirrorType> ref) in GcRoot() argument
42 : GcRoot(ref.Ptr()) { } in GcRoot()
Dcompiler_callbacks.h50 virtual void AddUncompilableMethod(MethodReference ref) = 0;
51 virtual void ClassRejected(ClassReference ref) = 0;
58 virtual ClassStatus GetPreviousClassState(ClassReference ref ATTRIBUTE_UNUSED) { in GetPreviousClassState()
69 virtual void UpdateClassState(ClassReference ref ATTRIBUTE_UNUSED, in UpdateClassState()
/art/runtime/gc/
Dreference_queue.cc34 void ReferenceQueue::AtomicEnqueueIfNotEnqueued(Thread* self, ObjPtr<mirror::Reference> ref) { in AtomicEnqueueIfNotEnqueued() argument
35 DCHECK(ref != nullptr); in AtomicEnqueueIfNotEnqueued()
37 if (ref->IsUnprocessed()) { in AtomicEnqueueIfNotEnqueued()
38 EnqueueReference(ref); in AtomicEnqueueIfNotEnqueued()
42 void ReferenceQueue::EnqueueReference(ObjPtr<mirror::Reference> ref) { in EnqueueReference() argument
43 DCHECK(ref != nullptr); in EnqueueReference()
44 CHECK(ref->IsUnprocessed()); in EnqueueReference()
47 list_ = ref.Ptr(); in EnqueueReference()
53 ref->SetPendingNext(head); in EnqueueReference()
56 list_->SetPendingNext(ref); in EnqueueReference()
[all …]
/art/libartbase/base/
Dintrusive_forward_list_test.cc169 std::forward_list<int> ref({ 1, 2, 7 }); in ConstructRange() local
170 std::vector<ValueType> storage(ref.begin(), ref.end()); in ConstructRange()
172 ASSERT_LISTS_EQUAL(ref, ifl); in ConstructRange()
206 std::forward_list<int> ref; in PushPop() local
208 ASSERT_LISTS_EQUAL(ref, ifl); in PushPop()
209 ref.push_front(3); in PushPop()
211 ASSERT_LISTS_EQUAL(ref, ifl); in PushPop()
213 ref.push_front(7); in PushPop()
215 ASSERT_LISTS_EQUAL(ref, ifl); in PushPop()
217 ref.pop_front(); in PushPop()
[all …]
Dtransform_iterator_test.cc238 auto ref = [](const ValueHolder& h) -> const int& { return h.value; }; in TEST() local
242 using vector_titer = decltype(MakeTransformIterator(input.begin(), ref)); in TEST()
248 using vector_ctiter = decltype(MakeTransformIterator(input.cbegin(), ref)); in TEST()
254 using vector_rtiter = decltype(MakeTransformIterator(input.rbegin(), ref)); in TEST()
260 using vector_crtiter = decltype(MakeTransformIterator(input.crbegin(), ref)); in TEST()
266 std::copy(MakeTransformIterator(input.begin(), ref), in TEST()
267 MakeTransformIterator(input.end(), ref), in TEST()
272 std::copy(MakeTransformIterator(input.cbegin(), ref), in TEST()
273 MakeTransformIterator(input.cend(), ref), in TEST()
278 std::copy(MakeTransformIterator(input.rbegin(), ref), in TEST()
[all …]
/art/compiler/dex/
Dverification_results.cc37 void VerificationResults::AddRejectedClass(ClassReference ref) { in AddRejectedClass() argument
40 rejected_classes_.insert(ref); in AddRejectedClass()
42 DCHECK(IsClassRejected(ref)); in AddRejectedClass()
45 bool VerificationResults::IsClassRejected(ClassReference ref) const { in IsClassRejected()
47 return rejected_classes_.find(ref) != rejected_classes_.end(); in IsClassRejected()
50 void VerificationResults::AddUncompilableMethod(MethodReference ref) { in AddUncompilableMethod() argument
53 uncompilable_methods_.insert(ref); in AddUncompilableMethod()
55 DCHECK(IsUncompilableMethod(ref)); in AddUncompilableMethod()
58 bool VerificationResults::IsUncompilableMethod(MethodReference ref) const { in IsUncompilableMethod()
60 return uncompilable_methods_.find(ref) != uncompilable_methods_.end(); in IsUncompilableMethod()
Dverification_results.h39 void AddRejectedClass(ClassReference ref) REQUIRES(!rejected_classes_lock_);
40 bool IsClassRejected(ClassReference ref) const REQUIRES(!rejected_classes_lock_);
42 void AddUncompilableMethod(MethodReference ref) REQUIRES(!uncompilable_methods_lock_);
43 bool IsUncompilableMethod(MethodReference ref) const REQUIRES(!uncompilable_methods_lock_);
/art/runtime/gc/collector/
Dconcurrent_copying-inl.h37 mirror::Object* ref, in MarkUnevacFromSpaceRegion() argument
42 DCHECK(!young_gen_ || region_space_bitmap_->Test(ref) || region_space_->IsLargeObject(ref)) in MarkUnevacFromSpaceRegion()
43 << ref << " " in MarkUnevacFromSpaceRegion()
44 << ref->GetClass<kVerifyNone, kWithoutReadBarrier>()->PrettyClass(); in MarkUnevacFromSpaceRegion()
48 if (ref->AtomicSetReadBarrierState(ReadBarrier::NonGrayState(), ReadBarrier::GrayState())) { in MarkUnevacFromSpaceRegion()
53 PushOntoMarkStack(self, ref); in MarkUnevacFromSpaceRegion()
55 DCHECK_EQ(ref->GetReadBarrierState(), ReadBarrier::GrayState()); in MarkUnevacFromSpaceRegion()
56 return ref; in MarkUnevacFromSpaceRegion()
68 if (bitmap->Test(ref)) { in MarkUnevacFromSpaceRegion()
69 return ref; in MarkUnevacFromSpaceRegion()
[all …]
Dconcurrent_copying.cc503 mirror::Object* ref = *root; in VisitRoots() local
504 if (ref != nullptr) { in VisitRoots()
505 mirror::Object* to_ref = concurrent_copying_->Mark(self, ref); in VisitRoots()
506 if (to_ref != ref) { in VisitRoots()
521 mirror::Object* ref = root->AsMirrorPtr(); in VisitRoots() local
522 mirror::Object* to_ref = concurrent_copying_->Mark(self, ref); in VisitRoots()
523 if (to_ref != ref) { in VisitRoots()
617 void operator()(ObjPtr<mirror::Class> klass, ObjPtr<mirror::Reference> ref) const in operator ()()
620 CheckReference(ref->GetReferent<kWithoutReadBarrier>(), in operator ()()
621 ref, in operator ()()
[all …]
/art/dex2oat/dex/
Dquick_compiler_callbacks.cc25 void QuickCompilerCallbacks::AddUncompilableMethod(MethodReference ref) { in AddUncompilableMethod() argument
27 verification_results_->AddUncompilableMethod(ref); in AddUncompilableMethod()
31 void QuickCompilerCallbacks::ClassRejected(ClassReference ref) { in ClassRejected() argument
33 verification_results_->AddRejectedClass(ref); in ClassRejected()
37 ClassStatus QuickCompilerCallbacks::GetPreviousClassState(ClassReference ref) { in GetPreviousClassState() argument
47 return compiler_driver_->GetClassStatus(ref); in GetPreviousClassState()
50 void QuickCompilerCallbacks::UpdateClassState(ClassReference ref, ClassStatus status) { in UpdateClassState() argument
53 compiler_driver_->RecordClassStatus(ref, status); in UpdateClassState()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatInstance.java428 for (AhatInstance ref : getReverseReferences()) { in getHardReverseReferences()
429 if (ref.getReachability() == Reachability.STRONG && ref.getReferent() != this) { in getHardReverseReferences()
430 refs.add(ref); in getHardReverseReferences()
446 for (AhatInstance ref : getReverseReferences()) { in getSoftReverseReferences()
447 if (ref.getReachability() != Reachability.STRONG || ref.getReferent() == this) { in getSoftReverseReferences()
448 refs.add(ref); in getSoftReverseReferences()
725 for (Reference ref : root.getReferences()) { in computeReachability()
726 queues.get(Reachability.STRONG).add(ref); in computeReachability()
732 Reference ref = queue.poll(); in computeReachability() local
733 if (ref.ref.mReachability == Reachability.UNREACHABLE) { in computeReachability()
[all …]
DReference.java28 public final AhatInstance ref; field in Reference
31 public Reference(AhatInstance src, String field, AhatInstance ref, Reachability reachability) { in Reference() argument
34 this.ref = ref; in Reference()
DDominatorReferenceIterator.java41 Reference ref = mIter.next(); in hasNext() local
42 if (ref.reachability.notWeakerThan(mRetained)) { in hasNext()
43 mNext = ref.ref; in hasNext()
/art/benchmark/jobject-benchmark/
Djobject_benchmark.cc32 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeAddRemoveLocal() local
33 soa.Env()->DeleteLocalRef(ref); in Java_JObjectBenchmark_timeAddRemoveLocal()
42 jobject ref = soa.Env()->AddLocalReference<jobject>(obj); in Java_JObjectBenchmark_timeDecodeLocal() local
44 CHECK_EQ(soa.Decode<mirror::Object>(ref), obj); in Java_JObjectBenchmark_timeDecodeLocal()
46 soa.Env()->DeleteLocalRef(ref); in Java_JObjectBenchmark_timeDecodeLocal()
55 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeAddRemoveGlobal() local
56 soa.Vm()->DeleteGlobalRef(soa.Self(), ref); in Java_JObjectBenchmark_timeAddRemoveGlobal()
65 jobject ref = soa.Vm()->AddGlobalRef(soa.Self(), obj); in Java_JObjectBenchmark_timeDecodeGlobal() local
67 CHECK_EQ(soa.Decode<mirror::Object>(ref), obj); in Java_JObjectBenchmark_timeDecodeGlobal()
69 soa.Vm()->DeleteGlobalRef(soa.Self(), ref); in Java_JObjectBenchmark_timeDecodeGlobal()
[all …]
/art/runtime/gc/space/
Dregion_space.h238 bool IsInFromSpace(mirror::Object* ref) { in IsInFromSpace() argument
239 if (HasAddress(ref)) { in IsInFromSpace()
240 Region* r = RefToRegionUnlocked(ref); in IsInFromSpace()
251 bool IsInNewlyAllocatedRegion(mirror::Object* ref) { in IsInNewlyAllocatedRegion() argument
252 if (HasAddress(ref)) { in IsInNewlyAllocatedRegion()
253 Region* r = RefToRegionUnlocked(ref); in IsInNewlyAllocatedRegion()
259 bool IsInUnevacFromSpace(mirror::Object* ref) { in IsInUnevacFromSpace() argument
260 if (HasAddress(ref)) { in IsInUnevacFromSpace()
261 Region* r = RefToRegionUnlocked(ref); in IsInUnevacFromSpace()
267 bool IsLargeObject(mirror::Object* ref) { in IsLargeObject() argument
[all …]
/art/test/1004-checker-volatile-ref-load/
DAndroid.bp3 // Build rules for ART run-test `1004-checker-volatile-ref-load`.
16 name: "art-run-test-1004-checker-volatile-ref-load",
21 ":art-run-test-1004-checker-volatile-ref-load-expected-stdout",
22 ":art-run-test-1004-checker-volatile-ref-load-expected-stderr",
31 name: "art-run-test-1004-checker-volatile-ref-load-expected-stdout",
32 out: ["art-run-test-1004-checker-volatile-ref-load-expected-stdout.txt"],
39 name: "art-run-test-1004-checker-volatile-ref-load-expected-stderr",
40 out: ["art-run-test-1004-checker-volatile-ref-load-expected-stderr.txt"],
/art/libdexfile/dex/
Ddex_file_reference.h61 size_t operator()(const art::DexFileReference& ref) const {
62 return hash<decltype(ref.dex_file)>()(ref.dex_file) ^
63 hash<decltype(ref.index)>()(ref.index);
/art/profman/
Dboot_image_profile.cc42 static std::string GetTypeDescriptor(const TypeReference& ref) { in GetTypeDescriptor() argument
43 const dex::TypeId& type_id = ref.dex_file->GetTypeId(ref.TypeIndex()); in GetTypeDescriptor()
44 return ref.dex_file->GetTypeDescriptor(type_id); in GetTypeDescriptor()
48 static std::string BootImageRepresentation(const MethodReference& ref) { in BootImageRepresentation() argument
49 const DexFile* dex_file = ref.dex_file; in BootImageRepresentation()
50 const dex::MethodId& id = ref.GetMethodId(); in BootImageRepresentation()
61 static std::string BootImageRepresentation(const TypeReference& ref) { in BootImageRepresentation() argument
62 return GetTypeDescriptor(ref); in BootImageRepresentation()
66 static std::string PreloadedClassesRepresentation(const TypeReference& ref) { in PreloadedClassesRepresentation() argument
67 std::string descriptor = GetTypeDescriptor(ref); in PreloadedClassesRepresentation()
[all …]
/art/runtime/native/
Djava_lang_ref_Reference.cc33 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in Reference_getReferent() local
35 Runtime::Current()->GetHeap()->GetReferenceProcessor()->GetReferent(soa.Self(), ref); in Reference_getReferent()
45 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in Reference_refersTo0() local
47 const ObjPtr<mirror::Object> referent = ref->template GetReferent<kWithoutReadBarrier>(); in Reference_refersTo0()
72 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in Reference_clearReferent() local
73 Runtime::Current()->GetHeap()->GetReferenceProcessor()->ClearReferent(ref); in Reference_clearReferent()
Djava_lang_ref_FinalizerReference.cc33 const ObjPtr<mirror::FinalizerReference> ref = soa.Decode<mirror::FinalizerReference>(javaThis); in FinalizerReference_makeCircularListIfUnenqueued() local
34 return Runtime::Current()->GetHeap()->GetReferenceProcessor()->MakeCircularListIfUnenqueued(ref); in FinalizerReference_makeCircularListIfUnenqueued()
39 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in FinalizerReference_getReferent() local
41 Runtime::Current()->GetHeap()->GetReferenceProcessor()->GetReferent(soa.Self(), ref); in FinalizerReference_getReferent()
/art/compiler/utils/
Datomic_dex_ref_map-inl.h53 AtomicDexRefMap<DexFileReferenceType, Value>::Insert(const DexFileReferenceType& ref, in Insert() argument
56 ElementArray* const array = GetArray(ref.dex_file); in Insert()
60 DCHECK_LT(ref.index, array->size()); in Insert()
61 return (*array)[ref.index].CompareAndSetStrongSequentiallyConsistent(expected, desired) in Insert()
67 inline bool AtomicDexRefMap<DexFileReferenceType, Value>::Get(const DexFileReferenceType& ref, in Get() argument
69 const ElementArray* const array = GetArray(ref.dex_file); in Get()
73 *out = (*array)[ref.index].load(std::memory_order_relaxed); in Get()
78 inline bool AtomicDexRefMap<DexFileReferenceType, Value>::Remove(const DexFileReferenceType& ref, in Remove() argument
80 ElementArray* const array = GetArray(ref.dex_file); in Remove()
84 *out = (*array)[ref.index].exchange(nullptr, std::memory_order_seq_cst); in Remove()
/art/tools/veridex/
Dprecise_hidden_api_finder.cc52 MethodReference ref) { in AddUsesAt() argument
55 concrete_uses_[ref].push_back(info); in AddUsesAt()
57 abstract_uses_[ref].push_back(info); in AddUsesAt()
97 MethodReference ref = it.first; in Dump() local
102 named_uses[full_name].push_back(ref); in Dump()
115 for (const MethodReference& ref : it.second) { in Dump() local
116 os << kPrefix << HiddenApi::GetApiMethodName(ref) << std::endl; in Dump()

12345678