• Home
  • Raw
  • Download

Lines Matching refs:ptr

289 size_t RosAlloc::FreePages(Thread* self, void* ptr, bool already_zero) {  in FreePages()  argument
291 size_t pm_idx = ToPageMapIndex(ptr); in FreePages()
306 << reinterpret_cast<intptr_t>(ptr); in FreePages()
322 const uword* word_ptr = reinterpret_cast<uword*>(ptr); in FreePages()
328 memset(ptr, 0, byte_size); in FreePages()
332 LOG(INFO) << __PRETTY_FUNCTION__ << " : 0x" << std::hex << reinterpret_cast<intptr_t>(ptr) in FreePages()
333 << "-0x" << (reinterpret_cast<intptr_t>(ptr) + byte_size) in FreePages()
338 FreePageRun* fpr = reinterpret_cast<FreePageRun*>(ptr); in FreePages()
485 size_t RosAlloc::FreeInternal(Thread* self, void* ptr) { in FreeInternal() argument
486 DCHECK_LE(base_, ptr); in FreeInternal()
487 DCHECK_LT(ptr, base_ + footprint_); in FreeInternal()
488 size_t pm_idx = RoundDownToPageMapIndex(ptr); in FreeInternal()
495 … LOG(INFO) << "RosAlloc::FreeInternal() : " << std::hex << ptr << ", pm_idx=" << std::dec << pm_idx in FreeInternal()
500 return FreePages(self, ptr, false); in FreeInternal()
527 return FreeFromRun(self, ptr, run); in FreeInternal()
530 size_t RosAlloc::Free(Thread* self, void* ptr) { in Free() argument
532 return FreeInternal(self, ptr); in Free()
741 size_t RosAlloc::FreeFromRun(Thread* self, void* ptr, Run* run) { in FreeFromRun() argument
743 DCHECK_LT(run, ptr); in FreeFromRun()
744 DCHECK_LT(ptr, run->End()); in FreeFromRun()
753 LOG(INFO) << "RosAlloc::FreeFromRun() : 0x" << std::hex << reinterpret_cast<intptr_t>(ptr); in FreeFromRun()
760 run->MarkThreadLocalFreeBitMap(ptr); in FreeFromRun()
769 run->FreeSlot(ptr); in FreeFromRun()
891 void RosAlloc::Run::FreeSlot(void* ptr) { in FreeSlot() argument
895 const size_t offset_from_slot_base = reinterpret_cast<byte*>(ptr) in FreeSlot()
914 memset(ptr, 0, bracket_size); in FreeSlot()
916 LOG(INFO) << "RosAlloc::Run::FreeSlot() : 0x" << std::hex << reinterpret_cast<intptr_t>(ptr) in FreeSlot()
994 inline void RosAlloc::Run::MarkThreadLocalFreeBitMap(void* ptr) { in MarkThreadLocalFreeBitMap() argument
996 MarkFreeBitMapShared(ptr, ThreadLocalFreeBitMap(), "MarkThreadLocalFreeBitMap"); in MarkThreadLocalFreeBitMap()
999 inline size_t RosAlloc::Run::MarkBulkFreeBitMap(void* ptr) { in MarkBulkFreeBitMap() argument
1000 return MarkFreeBitMapShared(ptr, BulkFreeBitMap(), "MarkFreeBitMap"); in MarkBulkFreeBitMap()
1003 inline size_t RosAlloc::Run::MarkFreeBitMapShared(void* ptr, uint32_t* free_bit_map_base, in MarkFreeBitMapShared() argument
1006 const size_t offset_from_slot_base = reinterpret_cast<byte*>(ptr) in MarkFreeBitMapShared()
1009 memset(ptr, 0, bracket_size); in MarkFreeBitMapShared()
1026 << reinterpret_cast<intptr_t>(ptr) in MarkFreeBitMapShared()
1166 void* ptr = ptrs[i]; in BulkFree() local
1167 DCHECK_LE(base_, ptr); in BulkFree()
1168 DCHECK_LT(ptr, base_ + footprint_); in BulkFree()
1169 size_t pm_idx = RoundDownToPageMapIndex(ptr); in BulkFree()
1175 LOG(INFO) << "RosAlloc::BulkFree() : " << std::hex << ptr << ", pm_idx=" in BulkFree()
1191 freed_bytes += FreePages(self, ptr, false); in BulkFree()
1202 LOG(INFO) << "RosAlloc::BulkFree() : " << std::hex << ptr << ", pm_idx=" in BulkFree()
1217 freed_bytes += FreePages(self, ptr, false); in BulkFree()
1226 freed_bytes += run->MarkBulkFreeBitMap(ptr); in BulkFree()
1440 size_t RosAlloc::UsableSize(void* ptr) { in UsableSize() argument
1441 DCHECK_LE(base_, ptr); in UsableSize()
1442 DCHECK_LT(ptr, base_ + footprint_); in UsableSize()
1443 size_t pm_idx = RoundDownToPageMapIndex(ptr); in UsableSize()
1450 << std::hex << reinterpret_cast<intptr_t>(ptr); in UsableSize()
1464 << std::hex << reinterpret_cast<intptr_t>(ptr); in UsableSize()
1477 size_t offset_from_slot_base = reinterpret_cast<byte*>(ptr) in UsableSize()