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 (uint8_t* 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 (uint8_t* 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 uint8_t* card_addr : dirty_cards_) { in Dump() local
158 auto start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
167 for (const uint8_t* card_addr : dirty_cards_) { in AssertAllDirtyCardsAreWithinSpace() local
168 auto start = reinterpret_cast<uint8_t*>(card_table->AddrFromCard(card_addr)); in AssertAllDirtyCardsAreWithinSpace()
Dcard_table-inl.h210 inline void* CardTable::AddrFromCard(const uint8_t *card_addr) const { in AddrFromCard() argument
211 DCHECK(IsValidCard(card_addr)) in AddrFromCard()
212 << " card_addr: " << reinterpret_cast<const void*>(card_addr) in AddrFromCard()
215 uintptr_t offset = card_addr - biased_begin_; in AddrFromCard()
220 uint8_t *card_addr = biased_begin_ + (reinterpret_cast<uintptr_t>(addr) >> kCardShift); in CardFromAddr() local
222 DCHECK(IsValidCard(card_addr)) << "addr: " << addr in CardFromAddr()
223 << " card_addr: " << reinterpret_cast<void*>(card_addr); in CardFromAddr()
224 return card_addr; in CardFromAddr()
227 inline bool CardTable::IsValidCard(const uint8_t* card_addr) const { in IsValidCard() argument
230 return card_addr >= begin && card_addr < end; in IsValidCard()
Dcard_table_test.cc90 uint8_t* card_addr = card_table_->CardFromAddr(addr); in TEST_F() local
91 EXPECT_EQ(*card_addr, CardTable::kCardDirty); in TEST_F()
92 *card_addr = CardTable::kCardClean; in TEST_F()
93 EXPECT_EQ(*card_addr, CardTable::kCardClean); in TEST_F()
Dcard_table.h124 void* AddrFromCard(const uint8_t *card_addr) const ALWAYS_INLINE;
135 bool IsValidCard(const uint8_t* card_addr) const ALWAYS_INLINE;
Dcard_table.cc135 uint8_t* card_addr = biased_begin_ + ((uintptr_t)addr >> kCardShift); in CheckAddrIsInCardTable() local
142 << " card_addr: " << reinterpret_cast<void*>(card_addr) in CheckAddrIsInCardTable()
Dmod_union_table.cc290 for (uint8_t* card_addr : cleared_cards_) { in Dump()
291 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
297 const uint8_t* card_addr = ref_pair.first; in Dump() local
298 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
/art/runtime/gc/
Dheap.cc2651 uint8_t* card_addr = card_table->CardFromAddr(obj); in VerifyReference() local
2653 << offset << "\n card value = " << static_cast<int>(*card_addr); in VerifyReference()
2682 void* cover_begin = card_table->AddrFromCard(card_addr); in VerifyReference()
2685 LOG(ERROR) << "Card " << reinterpret_cast<void*>(card_addr) << " covers " << cover_begin in VerifyReference()
2714 uint8_t* byte_cover_begin = reinterpret_cast<uint8_t*>(card_table->AddrFromCard(card_addr)); in VerifyReference()