Home
last modified time | relevance | path

Searched refs:alloc_beg (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_allocator.cpp570 uptr alloc_beg = reinterpret_cast<uptr>(allocated); in Allocate() local
571 uptr alloc_end = alloc_beg + needed_size; in Allocate()
572 uptr beg_plus_header = alloc_beg + kChunkHeaderSize; in Allocate()
580 m->from_memalign = alloc_beg != chunk_beg; in Allocate()
603 if (alloc_beg != chunk_beg) { in Allocate()
604 CHECK_LE(alloc_beg + sizeof(LargeChunkHeader), chunk_beg); in Allocate()
605 reinterpret_cast<LargeChunkHeader *>(alloc_beg)->Set(m); in Allocate()
641 void *alloc_beg = m->AllocBeg(); in Deallocate() local
642 if (alloc_beg != m) { in Deallocate()
645 reinterpret_cast<LargeChunkHeader *>(alloc_beg)->Set(nullptr); in Deallocate()
[all …]
/external/compiler-rt/lib/asan/
Dasan_allocator.cc388 uptr alloc_beg = reinterpret_cast<uptr>(allocated); in Allocate() local
389 uptr alloc_end = alloc_beg + needed_size; in Allocate()
390 uptr beg_plus_redzone = alloc_beg + rz_size; in Allocate()
405 if (alloc_beg != chunk_beg) { in Allocate()
406 CHECK_LE(alloc_beg+ 2 * sizeof(uptr), chunk_beg); in Allocate()
407 reinterpret_cast<uptr *>(alloc_beg)[0] = kAllocBegMagic; in Allocate()
408 reinterpret_cast<uptr *>(alloc_beg)[1] = chunk_beg; in Allocate()
591 AsanChunk *GetAsanChunk(void *alloc_beg) { in GetAsanChunk()
592 if (!alloc_beg) return nullptr; in GetAsanChunk()
593 if (!allocator.FromPrimary(alloc_beg)) { in GetAsanChunk()
[all …]
/external/llvm-project/compiler-rt/lib/asan/
Dasan_allocator.cpp559 uptr alloc_beg = reinterpret_cast<uptr>(allocated); in Allocate() local
560 uptr alloc_end = alloc_beg + needed_size; in Allocate()
561 uptr user_beg = alloc_beg + rz_size; in Allocate()
607 if (alloc_beg != chunk_beg) { in Allocate()
608 CHECK_LE(alloc_beg + sizeof(LargeChunkHeader), chunk_beg); in Allocate()
609 reinterpret_cast<LargeChunkHeader *>(alloc_beg)->Set(m); in Allocate()
775 AsanChunk *GetAsanChunk(void *alloc_beg) { in GetAsanChunk()
776 if (!alloc_beg) in GetAsanChunk()
778 AsanChunk *p = reinterpret_cast<LargeChunkHeader *>(alloc_beg)->Get(); in GetAsanChunk()
780 if (!allocator.FromPrimary(alloc_beg)) in GetAsanChunk()
[all …]