/art/runtime/gc/ |
D | reference_queue.cc | 32 void ReferenceQueue::AtomicEnqueueIfNotEnqueued(Thread* self, mirror::Reference* ref) { in AtomicEnqueueIfNotEnqueued() argument 33 DCHECK(ref != nullptr); in AtomicEnqueueIfNotEnqueued() 35 if (!ref->IsEnqueued()) { in AtomicEnqueueIfNotEnqueued() 36 EnqueuePendingReference(ref); in AtomicEnqueueIfNotEnqueued() 40 void ReferenceQueue::EnqueueReference(mirror::Reference* ref) { in EnqueueReference() argument 41 CHECK(ref->IsEnqueuable()); in EnqueueReference() 42 EnqueuePendingReference(ref); in EnqueueReference() 45 void ReferenceQueue::EnqueuePendingReference(mirror::Reference* ref) { in EnqueuePendingReference() argument 46 DCHECK(ref != nullptr); in EnqueuePendingReference() 49 list_ = ref; in EnqueuePendingReference() [all …]
|
D | reference_queue.h | 51 void AtomicEnqueueIfNotEnqueued(Thread* self, mirror::Reference* ref) 57 void EnqueueReference(mirror::Reference* ref) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); 60 void EnqueuePendingReference(mirror::Reference* ref) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
|
D | reference_processor.cc | 190 void ReferenceProcessor::DelayReferenceReferent(mirror::Class* klass, mirror::Reference* ref, in DelayReferenceReferent() argument 196 mirror::HeapReference<mirror::Object>* referent = ref->GetReferentReferenceAddr(); in DelayReferenceReferent() 203 soft_reference_queue_.AtomicEnqueueIfNotEnqueued(self, ref); in DelayReferenceReferent() 205 weak_reference_queue_.AtomicEnqueueIfNotEnqueued(self, ref); in DelayReferenceReferent() 207 finalizer_reference_queue_.AtomicEnqueueIfNotEnqueued(self, ref); in DelayReferenceReferent() 209 phantom_reference_queue_.AtomicEnqueueIfNotEnqueued(self, ref); in DelayReferenceReferent()
|
/art/runtime/ |
D | read_barrier-inl.h | 44 MirrorType* ref = ref_addr->AsMirrorPtr(); in Barrier() local 47 ref = reinterpret_cast<MirrorType*>(Mark(ref)); in Barrier() 52 AssertToSpaceInvariant(obj, offset, ref); in Barrier() 53 return ref; in Barrier() 58 MirrorType* ref = ref_addr->AsMirrorPtr(); in Barrier() local 59 MirrorType* old_ref = ref; in Barrier() 63 ref = reinterpret_cast<MirrorType*>(Mark(old_ref)); in Barrier() 66 offset, old_ref, ref); in Barrier() 68 AssertToSpaceInvariant(obj, offset, ref); in Barrier() 69 return ref; in Barrier() [all …]
|
D | reference_table.cc | 166 mirror::Object* ref = entries[idx].Read(); in Dump() local 167 if (ref == nullptr) { in Dump() 170 if (runtime->IsClearedJniWeakGlobal(ref)) { in Dump() 174 if (ref->GetClass() == nullptr) { in Dump() 176 size_t size = ref->SizeOf(); in Dump() 177 os << StringPrintf(" %5d: %p (raw) (%zd bytes)\n", idx, ref, size); in Dump() 181 std::string className(PrettyTypeOf(ref)); in Dump() 184 size_t element_count = GetElementCount(ref); in Dump() 187 } else if (ref->GetClass()->IsStringClass()) { in Dump() 188 mirror::String* s = ref->AsString(); in Dump() [all …]
|
D | jni_env_ext-inl.h | 28 IndirectRef ref = locals.Add(local_ref_cookie, obj); in AddLocalReference() local 42 return reinterpret_cast<T>(ref); in AddLocalReference()
|
D | gc_root-inl.h | 35 inline GcRoot<MirrorType>::GcRoot(MirrorType* ref) in GcRoot() argument 36 : root_(mirror::CompressedReference<mirror::Object>::FromMirrorPtr(ref)) { } in GcRoot()
|
D | java_vm_ext.h | 125 mirror::Object* DecodeGlobal(Thread* self, IndirectRef ref) 128 void UpdateGlobal(Thread* self, IndirectRef ref, mirror::Object* result) 132 mirror::Object* DecodeWeakGlobal(Thread* self, IndirectRef ref) 135 void UpdateWeakGlobal(Thread* self, IndirectRef ref, mirror::Object* result)
|
D | read_barrier.h | 70 static void AssertToSpaceInvariant(mirror::Object* ref) in AssertToSpaceInvariant() argument 72 AssertToSpaceInvariant(nullptr, MemberOffset(0), ref); in AssertToSpaceInvariant() 76 mirror::Object* ref)
|
D | object_callbacks.h | 43 typedef void (MarkHeapReferenceCallback)(mirror::HeapReference<mirror::Object>* ref, void* arg); 44 typedef void (DelayReferenceReferentCallback)(mirror::Class* klass, mirror::Reference* ref,
|
/art/compiler/dex/ |
D | verification_results.cc | 50 MethodReference ref = method_verifier->GetMethodReference(); in ProcessVerifiedMethod() local 51 bool compile = IsCandidateForCompilation(ref, method_verifier->GetAccessFlags()); in ProcessVerifiedMethod() 59 auto it = verified_methods_.find(ref); in ProcessVerifiedMethod() 63 << PrettyMethod(ref.dex_method_index, *ref.dex_file); in ProcessVerifiedMethod() 75 verified_methods_.Put(ref, verified_method); in ProcessVerifiedMethod() 76 DCHECK(verified_methods_.find(ref) != verified_methods_.end()); in ProcessVerifiedMethod() 80 const VerifiedMethod* VerificationResults::GetVerifiedMethod(MethodReference ref) { in GetVerifiedMethod() argument 82 auto it = verified_methods_.find(ref); in GetVerifiedMethod() 86 void VerificationResults::RemoveVerifiedMethod(MethodReference ref) { in RemoveVerifiedMethod() argument 88 auto it = verified_methods_.find(ref); in RemoveVerifiedMethod() [all …]
|
D | quick_compiler_callbacks.cc | 28 MethodReference ref = verifier->GetMethodReference(); in MethodVerified() local 29 method_inliner_map_->GetMethodInliner(ref.dex_file) in MethodVerified() 35 void QuickCompilerCallbacks::ClassRejected(ClassReference ref) { in ClassRejected() argument 36 verification_results_->AddRejectedClass(ref); in ClassRejected()
|
D | verification_results.h | 49 const VerifiedMethod* GetVerifiedMethod(MethodReference ref) 51 void RemoveVerifiedMethod(MethodReference ref) LOCKS_EXCLUDED(verified_methods_lock_); 53 void AddRejectedClass(ClassReference ref) LOCKS_EXCLUDED(rejected_classes_lock_); 54 bool IsClassRejected(ClassReference ref) LOCKS_EXCLUDED(rejected_classes_lock_);
|
/art/runtime/gc/collector/ |
D | concurrent_copying.cc | 496 void operator()(mirror::Object* ref) const in operator ()() 498 if (ref == nullptr) { in operator ()() 502 collector_->AssertToSpaceInvariant(nullptr, MemberOffset(0), ref); in operator ()() 504 if (collector_->RegionSpace()->IsInToSpace(ref)) { in operator ()() 505 CHECK(ref->GetReadBarrierPointer() == nullptr) in operator ()() 506 << "To-space ref " << ref << " " << PrettyTypeOf(ref) in operator ()() 507 << " has non-white rb_ptr " << ref->GetReadBarrierPointer(); in operator ()() 509 CHECK(ref->GetReadBarrierPointer() == ReadBarrier::BlackPtr() || in operator ()() 510 (ref->GetReadBarrierPointer() == ReadBarrier::WhitePtr() && in operator ()() 511 collector_->IsOnAllocStack(ref))) in operator ()() [all …]
|
D | concurrent_copying.h | 105 mirror::Object* ref = slot->LoadSequentiallyConsistent(); in Dequeue() local 106 while (ref == nullptr) { in Dequeue() 108 ref = slot->LoadSequentiallyConsistent(); in Dequeue() 112 return ref; in Dequeue() 170 void AssertToSpaceInvariant(mirror::Object* obj, MemberOffset offset, mirror::Object* ref) 172 bool IsInToSpace(mirror::Object* ref) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in IsInToSpace() argument 173 DCHECK(ref != nullptr); in IsInToSpace() 174 return IsMarked(ref) == ref; in IsInToSpace() 232 bool IsOnAllocStack(mirror::Object* ref) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
|
D | semi_space.cc | 294 mirror::Object* ref = obj->GetFieldObject<mirror::Object>(offset); in operator ()() local 295 if (from_space_->HasAddress(ref)) { in operator ()() 297 LOG(FATAL) << ref << " found in from space"; in operator ()() 591 auto ref = StackReference<mirror::Object>::FromMirrorPtr(root); in MarkObjectCallback() local 592 reinterpret_cast<SemiSpace*>(arg)->MarkObject(&ref); in MarkObjectCallback() 593 return ref.AsMirrorPtr(); in MarkObjectCallback() 601 void SemiSpace::DelayReferenceReferentCallback(mirror::Class* klass, mirror::Reference* ref, in DelayReferenceReferentCallback() argument 603 reinterpret_cast<SemiSpace*>(arg)->DelayReferenceReferent(klass, ref); in DelayReferenceReferentCallback() 610 auto ref = StackReference<mirror::Object>::FromMirrorPtr(*root); in VisitRoots() local 611 MarkObject(&ref); in VisitRoots() [all …]
|
/art/runtime/gc/space/ |
D | region_space.h | 171 bool IsInFromSpace(mirror::Object* ref) { in IsInFromSpace() argument 172 if (HasAddress(ref)) { in IsInFromSpace() 173 Region* r = RefToRegionUnlocked(ref); in IsInFromSpace() 179 bool IsInUnevacFromSpace(mirror::Object* ref) { in IsInUnevacFromSpace() argument 180 if (HasAddress(ref)) { in IsInUnevacFromSpace() 181 Region* r = RefToRegionUnlocked(ref); in IsInUnevacFromSpace() 187 bool IsInToSpace(mirror::Object* ref) { in IsInToSpace() argument 188 if (HasAddress(ref)) { in IsInToSpace() 189 Region* r = RefToRegionUnlocked(ref); in IsInToSpace() 195 RegionType GetRegionType(mirror::Object* ref) { in GetRegionType() argument [all …]
|
/art/runtime/gc/accounting/ |
D | mod_union_table.cc | 111 mirror::Object* ref = obj_ptr->AsMirrorPtr(); in operator ()() local 112 if (ref != nullptr && !from_space_->HasAddress(ref) && !immune_space_->HasAddress(ref)) { in operator ()() 176 mirror::Object* ref = ref_ptr->AsMirrorPtr(); in operator ()() local 178 if (ref != nullptr && mod_union_table_->ShouldAddReference(ref)) { in operator ()() 220 mirror::Object* ref = obj->GetFieldObject<mirror::Object>(offset); in operator ()() local 221 if (ref != nullptr && mod_union_table_->ShouldAddReference(ref) && in operator ()() 222 references_.find(ref) == references_.end()) { in operator ()() 225 space::ContinuousSpace* to_space = heap->FindContinuousSpaceFromObject(ref, false); in operator ()() 227 << ")" << "References " << reinterpret_cast<const void*>(ref) << "(" << PrettyTypeOf(ref) in operator ()() 265 for (mirror::HeapReference<Object>* ref : ref_pair.second) { in Verify() [all …]
|
D | mod_union_table-inl.h | 35 bool ShouldAddReference(const mirror::Object* ref) const OVERRIDE ALWAYS_INLINE { in ShouldAddReference() argument 36 return !space_->HasAddress(ref); in ShouldAddReference()
|
/art/runtime/entrypoints/quick/ |
D | quick_alloc_entrypoints.cc | 196 extern "C" void* art_quick_alloc_array##suffix(uint32_t, int32_t, ArtMethod* ref); \ 197 … "C" void* art_quick_alloc_array_resolved##suffix(mirror::Class* klass, int32_t, ArtMethod* ref); \ 198 extern "C" void* art_quick_alloc_array_with_access_check##suffix(uint32_t, int32_t, ArtMethod* ref)… 199 extern "C" void* art_quick_alloc_object##suffix(uint32_t type_idx, ArtMethod* ref); \ 200 extern "C" void* art_quick_alloc_object_resolved##suffix(mirror::Class* klass, ArtMethod* ref); \ 201 extern "C" void* art_quick_alloc_object_initialized##suffix(mirror::Class* klass, ArtMethod* ref); \ 202 extern "C" void* art_quick_alloc_object_with_access_check##suffix(uint32_t type_idx, ArtMethod* ref… 203 extern "C" void* art_quick_check_and_alloc_array##suffix(uint32_t, int32_t, ArtMethod* ref); \ 204 …id* art_quick_check_and_alloc_array_with_access_check##suffix(uint32_t, int32_t, ArtMethod* ref); \ 208 extern "C" void* art_quick_alloc_array##suffix##_instrumented(uint32_t, int32_t, ArtMethod* ref); \ [all …]
|
/art/test/079-phantom/src/ |
D | Bitmap.java | 17 import java.lang.ref.ReferenceQueue; 18 import java.lang.ref.PhantomReference; 138 PhantomWrapper ref = (PhantomWrapper) mQueue.remove(); in run() local 141 Bitmap.freeNativeStorage(ref.mNativeData); in run()
|
/art/runtime/base/ |
D | debug_stack.h | 66 explicit DebugStackIndirectTopRefImpl(DebugStackReferenceImpl<false>* ref) { UNUSED(ref); } in DebugStackIndirectTopRefImpl() argument 112 explicit DebugStackIndirectTopRefImpl(DebugStackReferenceImpl<kIsDebug>* ref) in DebugStackIndirectTopRefImpl() argument 113 : ref_(ref) { in DebugStackIndirectTopRefImpl()
|
/art/runtime/native/ |
D | java_lang_ref_FinalizerReference.cc | 30 mirror::FinalizerReference* const ref = soa.Decode<mirror::FinalizerReference*>(javaThis); in FinalizerReference_makeCircularListIfUnenqueued() local 31 return Runtime::Current()->GetHeap()->GetReferenceProcessor()->MakeCircularListIfUnenqueued(ref); in FinalizerReference_makeCircularListIfUnenqueued()
|
D | java_lang_ref_Reference.cc | 30 mirror::Reference* const ref = soa.Decode<mirror::Reference*>(javaThis); in Reference_getReferent() local 32 Runtime::Current()->GetHeap()->GetReferenceProcessor()->GetReferent(soa.Self(), ref); in Reference_getReferent()
|
/art/compiler/dex/quick/ |
D | gen_loadstore.cc | 50 DCHECK(!rl_src.ref || (mir_graph_->ConstantValue(rl_src) == 0)); in LoadValueDirect() 57 if (rl_src.ref) { in LoadValueDirect() 110 DCHECK(!rl_src.ref || op_kind == kRefReg); in LoadValue() 157 rl_dest = EvalLoc(rl_dest, rl_dest.ref || rl_src.ref ? kRefReg : kAnyReg, false); in StoreValue() 166 rl_dest = EvalLoc(rl_dest, rl_dest.ref ? kRefReg : kAnyReg, false); in StoreValue() 179 if (rl_dest.ref) { in StoreValue() 186 if (!rl_dest.ref) { in StoreValue() 302 if (!rl_dest.ref) { in StoreFinalValue()
|