Home
last modified time | relevance | path

Searched refs:card_addr (Results 1 – 7 of 7) sorted by relevance

/art/runtime/gc/accounting/
Dremembered_set.cc132 for (byte* const card_addr : dirty_cards_) { in UpdateAndMarkReferences()
134 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in UpdateAndMarkReferences()
142 remove_card_set.insert(card_addr); in UpdateAndMarkReferences()
148 for (byte* const card_addr : remove_card_set) { in UpdateAndMarkReferences()
149 DCHECK(dirty_cards_.find(card_addr) != dirty_cards_.end()); in UpdateAndMarkReferences()
150 dirty_cards_.erase(card_addr); in UpdateAndMarkReferences()
157 for (const byte* card_addr : dirty_cards_) { in Dump() local
158 auto start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
167 for (const byte* card_addr : dirty_cards_) { in AssertAllDirtyCardsAreWithinSpace() local
168 auto start = reinterpret_cast<byte*>(card_table->AddrFromCard(card_addr)); in AssertAllDirtyCardsAreWithinSpace()
Dcard_table-inl.h200 inline void* CardTable::AddrFromCard(const byte *card_addr) const { in AddrFromCard() argument
201 DCHECK(IsValidCard(card_addr)) in AddrFromCard()
202 << " card_addr: " << reinterpret_cast<const void*>(card_addr) in AddrFromCard()
205 uintptr_t offset = card_addr - biased_begin_; in AddrFromCard()
210 byte *card_addr = biased_begin_ + (reinterpret_cast<uintptr_t>(addr) >> kCardShift); in CardFromAddr() local
212 DCHECK(IsValidCard(card_addr)) << "addr: " << addr in CardFromAddr()
213 << " card_addr: " << reinterpret_cast<void*>(card_addr); in CardFromAddr()
214 return card_addr; in CardFromAddr()
Dcard_table.h121 void* AddrFromCard(const byte *card_addr) const ALWAYS_INLINE;
132 bool IsValidCard(const byte* card_addr) const { in IsValidCard() argument
135 return card_addr >= begin && card_addr < end; in IsValidCard()
Dmod_union_table.cc245 for (byte* card_addr : cleared_cards_) { in Dump()
246 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
252 const byte* card_addr = ref_pair.first; in Dump() local
253 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
318 for (const byte* card_addr : cleared_cards_) { in UpdateAndMarkReferences() local
319 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in UpdateAndMarkReferences()
328 for (const byte* card_addr : cleared_cards_) { in Dump() local
329 auto start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
Dcard_table_test.cc87 byte* card_addr = card_table_->CardFromAddr(addr); in TEST_F() local
88 EXPECT_EQ(*card_addr, gc::accounting::CardTable::kCardDirty); in TEST_F()
89 *card_addr = gc::accounting::CardTable::kCardClean; in TEST_F()
90 EXPECT_EQ(*card_addr, gc::accounting::CardTable::kCardClean); in TEST_F()
Dcard_table.cc110 byte* card_addr = biased_begin_ + ((uintptr_t)addr >> kCardShift); in CheckAddrIsInCardTable() local
117 << " card_addr: " << reinterpret_cast<void*>(card_addr) in CheckAddrIsInCardTable()
/art/runtime/gc/
Dheap.cc2349 byte* card_addr = card_table->CardFromAddr(obj); in VerifyReference() local
2351 << offset << "\n card value = " << static_cast<int>(*card_addr); in VerifyReference()
2380 void* cover_begin = card_table->AddrFromCard(card_addr); in VerifyReference()
2383 LOG(ERROR) << "Card " << reinterpret_cast<void*>(card_addr) << " covers " << cover_begin in VerifyReference()
2412 byte* byte_cover_begin = reinterpret_cast<byte*>(card_table->AddrFromCard(card_addr)); in VerifyReference()