Lines Matching refs:obj

339   for (auto& obj : temp) {  in ResizeMarkStack()  local
340 mark_stack_->PushBack(obj.AsMirrorPtr()); in ResizeMarkStack()
344 inline void MarkSweep::MarkObjectNonNullParallel(Object* obj) { in MarkObjectNonNullParallel() argument
345 DCHECK(obj != nullptr); in MarkObjectNonNullParallel()
346 if (MarkObjectParallel(obj)) { in MarkObjectNonNullParallel()
352 mark_stack_->PushBack(obj); in MarkObjectNonNullParallel()
356 mirror::Object* MarkSweep::MarkObjectCallback(mirror::Object* obj, void* arg) { in MarkObjectCallback() argument
358 mark_sweep->MarkObject(obj); in MarkObjectCallback()
359 return obj; in MarkObjectCallback()
377 void operator()(const Object* obj) const ALWAYS_INLINE NO_THREAD_SAFETY_ANALYSIS { in operator ()()
384 if (UNLIKELY(obj == nullptr || !IsAligned<kPageSize>(obj) || in operator ()()
386 !large_object_space->Contains(obj)))) { in operator ()()
387 LOG(INTERNAL_FATAL) << "Tried to mark " << obj << " not contained by any spaces"; in operator ()()
453 inline void MarkSweep::MarkObjectNonNull(Object* obj, Object* holder, MemberOffset offset) { in MarkObjectNonNull() argument
454 DCHECK(obj != nullptr); in MarkObjectNonNull()
457 obj->AssertReadBarrierPointer(); in MarkObjectNonNull()
459 if (immune_region_.ContainsObject(obj)) { in MarkObjectNonNull()
463 DCHECK(mark_bitmap_->Test(obj)); in MarkObjectNonNull()
464 } else if (LIKELY(current_space_bitmap_->HasAddress(obj))) { in MarkObjectNonNull()
468 if (UNLIKELY(!current_space_bitmap_->Set(obj))) { in MarkObjectNonNull()
469 PushOnMarkStack(obj); // This object was not previously marked. in MarkObjectNonNull()
478 if (!mark_bitmap_->Set(obj, visitor)) { in MarkObjectNonNull()
479 PushOnMarkStack(obj); // Was not already marked, push. in MarkObjectNonNull()
484 inline void MarkSweep::PushOnMarkStack(Object* obj) { in PushOnMarkStack() argument
491 mark_stack_->PushBack(obj); in PushOnMarkStack()
494 inline bool MarkSweep::MarkObjectParallel(const Object* obj) { in MarkObjectParallel() argument
495 DCHECK(obj != nullptr); in MarkObjectParallel()
498 obj->AssertReadBarrierPointer(); in MarkObjectParallel()
500 if (immune_region_.ContainsObject(obj)) { in MarkObjectParallel()
501 DCHECK(IsMarked(obj)); in MarkObjectParallel()
507 if (LIKELY(object_bitmap->HasAddress(obj))) { in MarkObjectParallel()
508 return !object_bitmap->AtomicTestAndSet(obj); in MarkObjectParallel()
511 return !mark_bitmap_->AtomicTestAndSet(obj, visitor); in MarkObjectParallel()
515 inline void MarkSweep::MarkObject(Object* obj, Object* holder, MemberOffset offset) { in MarkObject() argument
516 if (obj != nullptr) { in MarkObject()
517 MarkObjectNonNull(obj, holder, offset); in MarkObject()
602 void operator()(Object* obj) const ALWAYS_INLINE SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) in operator ()()
608 mark_sweep_->ScanObject(obj); in operator ()()
658 void operator()(Object* obj, MemberOffset offset, bool /* static */) const ALWAYS_INLINE in operator ()() argument
660 mirror::Object* ref = obj->GetFieldObject<mirror::Object>(offset); in operator ()()
684 void operator()(Object* obj) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) in operator ()()
689 mark_sweep->ScanObjectVisit(obj, mark_visitor, ref_visitor); in operator ()()
711 ALWAYS_INLINE void MarkStackPush(Object* obj) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in MarkStackPush() argument
719 DCHECK(obj != nullptr); in MarkStackPush()
721 mark_stack_[mark_stack_pos_++].Assign(obj); in MarkStackPush()
737 Object* obj = nullptr; in Run() local
748 obj = prefetch_fifo.front(); in Run()
754 obj = mark_stack_[--mark_stack_pos_].AsMirrorPtr(); in Run()
756 DCHECK(obj != nullptr); in Run()
757 visitor(obj); in Run()
1021 mirror::Object* MarkSweep::VerifySystemWeakIsLiveCallback(Object* obj, void* arg) { in VerifySystemWeakIsLiveCallback() argument
1022 reinterpret_cast<MarkSweep*>(arg)->VerifyIsLive(obj); in VerifySystemWeakIsLiveCallback()
1024 return obj; in VerifySystemWeakIsLiveCallback()
1027 void MarkSweep::VerifyIsLive(const Object* obj) { in VerifyIsLive() argument
1028 if (!heap_->GetLiveBitmap()->Test(obj)) { in VerifyIsLive()
1030 CHECK(!heap_->allocation_stack_->Contains(obj)) in VerifyIsLive()
1031 << "Found dead object " << obj << "\n" << heap_->DumpSpaces(); in VerifyIsLive()
1155 Object* const obj = objects[i].AsMirrorPtr(); in SweepArray() local
1156 if (kUseThreadLocalAllocationStack && obj == nullptr) { in SweepArray()
1159 if (space->HasAddress(obj)) { in SweepArray()
1162 if (!mark_bitmap->Test(obj)) { in SweepArray()
1169 chunk_free_buffer[chunk_free_pos++] = obj; in SweepArray()
1172 (out++)->Assign(obj); in SweepArray()
1194 Object* const obj = objects[i].AsMirrorPtr(); in SweepArray() local
1196 if (kUseThreadLocalAllocationStack && obj == nullptr) { in SweepArray()
1199 if (!large_mark_objects->Test(obj)) { in SweepArray()
1201 freed_los.bytes += large_object_space->Free(self, obj); in SweepArray()
1262 void operator()(Object* obj, MemberOffset offset, bool /* is_static */) const in operator ()() argument
1269 mark_sweep_->MarkObject(obj->GetFieldObject<mirror::Object>(offset), obj, offset); in operator ()()
1278 void MarkSweep::ScanObject(Object* obj) { in ScanObject() argument
1281 ScanObjectVisit(obj, mark_visitor, ref_visitor); in ScanObject()
1322 Object* obj = nullptr; in ProcessMarkStack() local
1333 obj = prefetch_fifo.front(); in ProcessMarkStack()
1339 obj = mark_stack_->PopBack(); in ProcessMarkStack()
1341 DCHECK(obj != nullptr); in ProcessMarkStack()
1342 ScanObject(obj); in ProcessMarkStack()