Home
last modified time | relevance | path

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

/llvm-project-15.0.7/compiler-rt/lib/lsan/
H A Dlsan_common.h192 static inline bool IsItaniumABIArrayCookie(uptr chunk_beg, uptr chunk_size, in IsItaniumABIArrayCookie() argument
194 return chunk_size == sizeof(uptr) && chunk_beg + chunk_size == addr && in IsItaniumABIArrayCookie()
195 *reinterpret_cast<uptr *>(chunk_beg) == 0; in IsItaniumABIArrayCookie()
203 static inline bool IsARMABIArrayCookie(uptr chunk_beg, uptr chunk_size, in IsARMABIArrayCookie() argument
205 return chunk_size == 2 * sizeof(uptr) && chunk_beg + chunk_size == addr && in IsARMABIArrayCookie()
206 *reinterpret_cast<uptr *>(chunk_beg + sizeof(uptr)) == 0; in IsARMABIArrayCookie()
213 inline bool IsSpecialCaseOfOperatorNew0(uptr chunk_beg, uptr chunk_size, in IsSpecialCaseOfOperatorNew0() argument
216 return IsARMABIArrayCookie(chunk_beg, chunk_size, addr); in IsSpecialCaseOfOperatorNew0()
218 return IsItaniumABIArrayCookie(chunk_beg, chunk_size, addr); in IsSpecialCaseOfOperatorNew0()
/llvm-project-15.0.7/compiler-rt/lib/memprof/
H A Dmemprof_allocator.cpp404 uptr chunk_beg = user_beg - kChunkHeaderSize; in Allocate() local
405 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Allocate()
406 m->from_memalign = alloc_beg != chunk_beg; in Allocate()
429 if (alloc_beg != chunk_beg) { in Allocate()
430 CHECK_LE(alloc_beg + sizeof(LargeChunkHeader), chunk_beg); in Allocate()
445 uptr chunk_beg = p - kChunkHeaderSize; in Deallocate() local
446 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Deallocate()
486 uptr chunk_beg = p - kChunkHeaderSize; in Reallocate() local
487 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Reallocate()
/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_allocator.cpp555 uptr chunk_beg = user_beg - kChunkHeaderSize; in Allocate() local
556 AsanChunk *m = reinterpret_cast<AsanChunk *>(chunk_beg); in Allocate()
596 if (alloc_beg != chunk_beg) { in Allocate()
597 CHECK_LE(alloc_beg + sizeof(LargeChunkHeader), chunk_beg); in Allocate()
669 uptr chunk_beg = p - kChunkHeaderSize; in Deallocate() local
670 AsanChunk *m = reinterpret_cast<AsanChunk *>(chunk_beg); in Deallocate()
708 uptr chunk_beg = p - kChunkHeaderSize; in Reallocate() local
709 AsanChunk *m = reinterpret_cast<AsanChunk *>(chunk_beg); in Reallocate()