Home
last modified time | relevance | path

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

12345678

/art/runtime/
Dread_barrier-inl.h58 MirrorType* ref = ref_addr->template AsMirrorPtr<kIsVolatile>(); in Barrier() local
59 MirrorType* old_ref = ref; in Barrier()
62 ref = reinterpret_cast<MirrorType*>(Mark(ref)); in Barrier()
65 if (kAlwaysUpdateField && ref != old_ref) { in Barrier()
68 ref, in Barrier()
73 AssertToSpaceInvariant(obj, offset, ref); in Barrier()
74 return ref; in Barrier()
79 MirrorType* ref = ref_addr->template AsMirrorPtr<kIsVolatile>(); in Barrier() local
80 MirrorType* old_ref = ref; in Barrier()
84 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 …]
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()
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()
/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.cc248 auto ref = [](const ValueHolder& h) -> const int& { return h.value; }; in TEST() local
252 using vector_titer = decltype(MakeTransformIterator(input.begin(), ref)); in TEST()
259 using vector_ctiter = decltype(MakeTransformIterator(input.cbegin(), ref)); in TEST()
266 using vector_rtiter = decltype(MakeTransformIterator(input.rbegin(), ref)); in TEST()
273 using vector_crtiter = decltype(MakeTransformIterator(input.crbegin(), ref)); in TEST()
280 std::copy(MakeTransformIterator(input.begin(), ref), in TEST()
281 MakeTransformIterator(input.end(), ref), in TEST()
286 std::copy(MakeTransformIterator(input.cbegin(), ref), in TEST()
287 MakeTransformIterator(input.cend(), ref), in TEST()
292 std::copy(MakeTransformIterator(input.rbegin(), ref), in TEST()
[all …]
/art/compiler/dex/
Dverification_results.cc41 atomic_verified_methods_.Visit([](const DexFileReference& ref ATTRIBUTE_UNUSED, in ~VerificationResults()
49 MethodReference ref = method_verifier->GetMethodReference(); in ProcessVerifiedMethod() local
55 AtomicMap::InsertResult result = atomic_verified_methods_.Insert(ref, in ProcessVerifiedMethod()
64 CHECK(atomic_verified_methods_.Get(ref, &existing)); in ProcessVerifiedMethod()
69 auto it = verified_methods_.find(ref); in ProcessVerifiedMethod()
72 verified_methods_.Put(ref, verified_method.get()); in ProcessVerifiedMethod()
73 DCHECK(verified_methods_.find(ref) != verified_methods_.end()); in ProcessVerifiedMethod()
80 DCHECK_EQ(GetVerifiedMethod(ref), verified_method.get()); in ProcessVerifiedMethod()
84 LOG(WARNING) << "Method processed more than once: " << ref.PrettyMethod(); in ProcessVerifiedMethod()
99 const VerifiedMethod* VerificationResults::GetVerifiedMethod(MethodReference ref) const { in GetVerifiedMethod()
[all …]
Dverification_results.h51 void CreateVerifiedMethodFor(MethodReference ref)
54 const VerifiedMethod* GetVerifiedMethod(MethodReference ref) const
57 void AddRejectedClass(ClassReference ref) REQUIRES(!rejected_classes_lock_);
58 bool IsClassRejected(ClassReference ref) const REQUIRES(!rejected_classes_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.cc477 mirror::Object* ref = *root; in VisitRoots() local
478 if (ref != nullptr) { in VisitRoots()
479 mirror::Object* to_ref = concurrent_copying_->Mark(self, ref); in VisitRoots()
480 if (to_ref != ref) { in VisitRoots()
495 mirror::Object* ref = root->AsMirrorPtr(); in VisitRoots() local
496 mirror::Object* to_ref = concurrent_copying_->Mark(self, ref); in VisitRoots()
497 if (to_ref != ref) { in VisitRoots()
590 void operator()(ObjPtr<mirror::Class> klass, ObjPtr<mirror::Reference> ref) const in operator ()()
593 CheckReference(ref->GetReferent<kWithoutReadBarrier>(), in operator ()()
594 ref, in operator ()()
[all …]
/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/dex2oat/dex/
Dquick_compiler_callbacks.cc31 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/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/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()
41 const ObjPtr<mirror::Reference> ref = soa.Decode<mirror::Reference>(javaThis); in Reference_clearReferent() local
42 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()
/art/test/004-NativeAllocations/src-art/
DMain.java18 import java.lang.ref.ReferenceQueue;
19 import java.lang.ref.PhantomReference;
30 static PhantomReference ref = null; field in Main
55 ref = allocPhantom(queue); in checkRegisterNativeAllocation()
57 for (int i = 0; !ref.isEnqueued() && i < allocationCount; ++i) { in checkRegisterNativeAllocation()
/art/runtime/jni/
Djni_env_ext-inl.h29 IndirectRef ref = locals_.Add(local_ref_cookie_, obj, &error_msg); in AddLocalReference() local
30 if (UNLIKELY(ref == nullptr)) { in AddLocalReference()
49 return reinterpret_cast<T>(ref); in AddLocalReference()
/art/test/036-finalizer/src/
DMain.java17 import java.lang.ref.Reference;
18 import java.lang.ref.WeakReference;
41 WeakReference<FinalizerTest> ref = new WeakReference<FinalizerTest>(ft); in makeRef() local
43 return ref; in makeRef()
56 FinalizerTest ref = wimp.get(); in wimpString()
57 if (ref != null) { in wimpString()
58 s[0] = ref.toString(); in wimpString()

12345678