Home
last modified time | relevance | path

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

/art/runtime/gc/accounting/
Dremembered_set.cc142 for (uint8_t* const card_addr : dirty_cards_) { in UpdateAndMarkReferences()
144 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in UpdateAndMarkReferences()
152 remove_card_set.insert(card_addr); in UpdateAndMarkReferences()
158 for (uint8_t* const card_addr : remove_card_set) { in UpdateAndMarkReferences()
159 DCHECK(dirty_cards_.find(card_addr) != dirty_cards_.end()); in UpdateAndMarkReferences()
160 dirty_cards_.erase(card_addr); in UpdateAndMarkReferences()
167 for (const uint8_t* card_addr : dirty_cards_) { in Dump() local
168 auto start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
177 for (const uint8_t* card_addr : dirty_cards_) { in AssertAllDirtyCardsAreWithinSpace() local
178 auto start = reinterpret_cast<uint8_t*>(card_table->AddrFromCard(card_addr)); in AssertAllDirtyCardsAreWithinSpace()
Dcard_table-inl.h207 inline void* CardTable::AddrFromCard(const uint8_t *card_addr) const { in AddrFromCard() argument
208 DCHECK(IsValidCard(card_addr)) in AddrFromCard()
209 << " card_addr: " << reinterpret_cast<const void*>(card_addr) in AddrFromCard()
212 uintptr_t offset = card_addr - biased_begin_; in AddrFromCard()
217 uint8_t *card_addr = biased_begin_ + (reinterpret_cast<uintptr_t>(addr) >> kCardShift); in CardFromAddr() local
219 DCHECK(IsValidCard(card_addr)) << "addr: " << addr in CardFromAddr()
220 << " card_addr: " << reinterpret_cast<void*>(card_addr); in CardFromAddr()
221 return card_addr; in CardFromAddr()
224 inline bool CardTable::IsValidCard(const uint8_t* card_addr) const { in IsValidCard() argument
227 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.cc122 uint8_t* card_addr = biased_begin_ + ((uintptr_t)addr >> kCardShift); in CheckAddrIsInCardTable() local
129 << " card_addr: " << reinterpret_cast<void*>(card_addr) in CheckAddrIsInCardTable()
Dcard_table.h138 void* AddrFromCard(const uint8_t *card_addr) const ALWAYS_INLINE;
149 bool IsValidCard(const uint8_t* card_addr) const ALWAYS_INLINE;
Dmod_union_table.cc370 for (uint8_t* card_addr : cleared_cards_) { in Dump()
371 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
377 const uint8_t* card_addr = ref_pair.first; in Dump() local
378 uintptr_t start = reinterpret_cast<uintptr_t>(card_table->AddrFromCard(card_addr)); in Dump()
/art/runtime/gc/
Dheap.cc3009 uint8_t* card_addr = card_table->CardFromAddr(obj); in VerifyReference() local
3011 << offset << "\n card value = " << static_cast<int>(*card_addr); in VerifyReference()
3040 void* cover_begin = card_table->AddrFromCard(card_addr); in VerifyReference()
3043 LOG(ERROR) << "Card " << reinterpret_cast<void*>(card_addr) << " covers " << cover_begin in VerifyReference()
3072 uint8_t* byte_cover_begin = reinterpret_cast<uint8_t*>(card_table->AddrFromCard(card_addr)); in VerifyReference()