Home
last modified time | relevance | path

Searched refs:bitmap (Results 1 – 20 of 20) sorted by relevance

/art/runtime/gc/accounting/
Dheap_bitmap-inl.h30 for (const auto& bitmap : continuous_space_bitmaps_) { in Visit() local
31 bitmap->VisitMarkedRange(bitmap->HeapBegin(), bitmap->HeapLimit(), visitor); in Visit()
33 for (const auto& bitmap : large_object_bitmaps_) { in Visit() local
34 bitmap->VisitMarkedRange(bitmap->HeapBegin(), bitmap->HeapLimit(), visitor); in Visit()
39 ContinuousSpaceBitmap* bitmap = GetContinuousSpaceBitmap(obj); in Test() local
40 if (LIKELY(bitmap != nullptr)) { in Test()
41 return bitmap->Test(obj); in Test()
43 for (const auto& bitmap : large_object_bitmaps_) { in Test() local
44 if (LIKELY(bitmap->HasAddress(obj))) { in Test()
45 return bitmap->Test(obj); in Test()
[all …]
Dheap_bitmap.cc43 void HeapBitmap::AddContinuousSpaceBitmap(accounting::ContinuousSpaceBitmap* bitmap) { in AddContinuousSpaceBitmap() argument
44 DCHECK(bitmap != nullptr); in AddContinuousSpaceBitmap()
47 CHECK(bitmap->HeapBegin() >= cur_bitmap->HeapLimit() || in AddContinuousSpaceBitmap()
48 bitmap->HeapLimit() <= cur_bitmap->HeapBegin()) in AddContinuousSpaceBitmap()
49 << "Bitmap " << bitmap->Dump() << " overlaps with existing bitmap " in AddContinuousSpaceBitmap()
52 continuous_space_bitmaps_.push_back(bitmap); in AddContinuousSpaceBitmap()
55 void HeapBitmap::RemoveContinuousSpaceBitmap(accounting::ContinuousSpaceBitmap* bitmap) { in RemoveContinuousSpaceBitmap() argument
56 DCHECK(bitmap != nullptr); in RemoveContinuousSpaceBitmap()
57 auto it = std::find(continuous_space_bitmaps_.begin(), continuous_space_bitmaps_.end(), bitmap); in RemoveContinuousSpaceBitmap()
62 void HeapBitmap::AddLargeObjectBitmap(LargeObjectBitmap* bitmap) { in AddLargeObjectBitmap() argument
[all …]
Dheap_bitmap.h65 void AddContinuousSpaceBitmap(ContinuousSpaceBitmap* bitmap);
66 void RemoveContinuousSpaceBitmap(ContinuousSpaceBitmap* bitmap);
67 void AddLargeObjectBitmap(LargeObjectBitmap* bitmap);
68 void RemoveLargeObjectBitmap(LargeObjectBitmap* bitmap);
Dcard_table-inl.h52 inline size_t CardTable::Scan(ContinuousSpaceBitmap* bitmap, byte* scan_begin, byte* scan_end, in Scan() argument
54 DCHECK_GE(scan_begin, reinterpret_cast<byte*>(bitmap->HeapBegin())); in Scan()
56 DCHECK_LE(scan_end, reinterpret_cast<byte*>(bitmap->HeapLimit())); in Scan()
67 bitmap->VisitMarkedRange(start, start + kCardSize, visitor); in Scan()
96 bitmap->VisitMarkedRange(start, start + kCardSize, visitor); in Scan()
110 bitmap->VisitMarkedRange(start, start + kCardSize, visitor); in Scan()
Dspace_bitmap-inl.h178 inline std::ostream& operator << (std::ostream& stream, const SpaceBitmap<kAlignment>& bitmap) {
180 << bitmap.GetName() << "["
181 << "begin=" << reinterpret_cast<const void*>(bitmap.HeapBegin())
182 << ",end=" << reinterpret_cast<const void*>(bitmap.HeapLimit())
Dspace_bitmap.h105 explicit ClearVisitor(SpaceBitmap* const bitmap) in ClearVisitor() argument
106 : bitmap_(bitmap) { in ClearVisitor()
234 std::ostream& operator << (std::ostream& stream, const SpaceBitmap<kAlignment>& bitmap);
Dspace_bitmap_test.cc42 BitmapVerify(ContinuousSpaceBitmap* bitmap, const mirror::Object* begin, in BitmapVerify() argument
44 : bitmap_(bitmap), in BitmapVerify()
Dremembered_set.cc130 ContinuousSpaceBitmap* bitmap = space_->GetLiveBitmap(); in UpdateAndMarkReferences() local
136 bitmap->VisitMarkedRange(start, start + CardTable::kCardSize, obj_visitor); in UpdateAndMarkReferences()
Dcard_table.h105 size_t Scan(SpaceBitmap<kObjectAlignment>* bitmap, byte* scan_begin, byte* scan_end,
Dmod_union_table.cc317 ContinuousSpaceBitmap* bitmap = space_->GetLiveBitmap(); in UpdateAndMarkReferences() local
321 bitmap->VisitMarkedRange(start, start + CardTable::kCardSize, scan_visitor); in UpdateAndMarkReferences()
/art/patchoat/
Dpatchoat.h64 PatchOat(InstructionSet isa, MemMap* image, gc::accounting::ContinuousSpaceBitmap* bitmap, in PatchOat() argument
66 : image_(image), bitmap_(bitmap), heap_(heap), in PatchOat()
69 gc::accounting::ContinuousSpaceBitmap* bitmap, MemMap* heap, off_t delta, in PatchOat() argument
71 : oat_file_(oat_file), image_(image), bitmap_(bitmap), heap_(heap), in PatchOat()
/art/runtime/gc/
Dheap_test.cc67 std::unique_ptr<accounting::ContinuousSpaceBitmap> bitmap( in TEST_F() local
71 bitmap->Set(fake_end_of_heap_object); in TEST_F()
Dheap.cc2385 accounting::ContinuousSpaceBitmap* bitmap = in VerifyReference() local
2388 if (bitmap == nullptr) { in VerifyReference()
2395 if (bitmap->Test(obj)) { in VerifyReference()
2413 card_table->Scan(bitmap, byte_cover_begin, in VerifyReference()
/art/runtime/gc/space/
Dzygote_space.cc113 accounting::ContinuousSpaceBitmap* bitmap = zygote_space->GetLiveBitmap(); in SweepCallback() local
115 bitmap->Clear(ptrs[i]); in SweepCallback()
Dmalloc_space.cc238 accounting::ContinuousSpaceBitmap* bitmap = space->GetLiveBitmap(); in SweepCallback() local
240 bitmap->Clear(ptrs[i]); in SweepCallback()
Dimage_space.cc679 std::unique_ptr<accounting::ContinuousSpaceBitmap> bitmap( in Init() local
683 if (bitmap.get() == nullptr) { in Init()
689 map.release(), bitmap.release())); in Init()
Dlarge_object_space.cc499 accounting::LargeObjectBitmap* bitmap = space->GetLiveBitmap(); in SweepCallback() local
501 bitmap->Clear(ptrs[i]); in SweepCallback()
/art/runtime/gc/collector/
Dmark_sweep.cc305 accounting::ContinuousSpaceBitmap* bitmap = space->GetMarkBitmap(); in FindDefaultSpaceBitmap() local
307 if (bitmap != nullptr && in FindDefaultSpaceBitmap()
309 current_space_bitmap_ = bitmap; in FindDefaultSpaceBitmap()
683 accounting::ContinuousSpaceBitmap* bitmap, in CardScanTask() argument
687 bitmap_(bitmap), in CardScanTask()
818 accounting::ContinuousSpaceBitmap* bitmap, uintptr_t begin, uintptr_t end) in RecursiveMarkTask() argument
819 : MarkStackTask<false>(thread_pool, mark_sweep, 0, NULL), bitmap_(bitmap), begin_(begin), in RecursiveMarkTask()
Dmark_compact.cc357 accounting::ContinuousSpaceBitmap* bitmap = space->GetLiveBitmap(); in UpdateReferences() local
358 if (bitmap != nullptr) { in UpdateReferences()
360 bitmap->VisitMarkedRange(reinterpret_cast<uintptr_t>(space->Begin()), in UpdateReferences()
Dsemi_space.cc547 accounting::ContinuousSpaceBitmap* bitmap = fallback_space_->GetLiveBitmap(); in MarkNonForwardedObject() local
548 if (bitmap != nullptr) { in MarkNonForwardedObject()
549 bitmap->Set(forward_address); in MarkNonForwardedObject()