Searched refs:chunk_beg (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/ |
H A D | lsan_common.h | 291 static inline bool IsItaniumABIArrayCookie(uptr chunk_beg, uptr chunk_size, in IsItaniumABIArrayCookie() 293 return chunk_size == sizeof(uptr) && chunk_beg + chunk_size == addr && 294 *reinterpret_cast<uptr *>(chunk_beg) == 0; 302 static inline bool IsARMABIArrayCookie(uptr chunk_beg, uptr chunk_size, in IsARMABIArrayCookie() 304 return chunk_size == 2 * sizeof(uptr) && chunk_beg + chunk_size == addr && 305 *reinterpret_cast<uptr *>(chunk_beg + sizeof(uptr)) == 0; 312 inline bool IsSpecialCaseOfOperatorNew0(uptr chunk_beg, uptr chunk_size, in IsSpecialCaseOfOperatorNew0() 315 return IsARMABIArrayCookie(chunk_beg, chunk_size, addr); in IsSpecialCaseOfOperatorNew0() 317 return IsItaniumABIArrayCookie(chunk_beg, chunk_size, addr); 287 IsItaniumABIArrayCookie(uptr chunk_beg,uptr chunk_size,uptr addr) IsItaniumABIArrayCookie() argument 298 IsARMABIArrayCookie(uptr chunk_beg,uptr chunk_size,uptr addr) IsARMABIArrayCookie() argument 308 IsSpecialCaseOfOperatorNew0(uptr chunk_beg,uptr chunk_size,uptr addr) IsSpecialCaseOfOperatorNew0() argument
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_allocator.cpp | 472 uptr chunk_beg = user_beg - kChunkHeaderSize; in Allocate() local 473 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Allocate() 474 m->from_memalign = alloc_beg != chunk_beg; in Allocate() 497 if (alloc_beg != chunk_beg) { in Allocate() 498 CHECK_LE(alloc_beg + sizeof(LargeChunkHeader), chunk_beg); in Allocate() 513 uptr chunk_beg = p - kChunkHeaderSize; in Deallocate() local 514 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Deallocate() 549 uptr chunk_beg = p - kChunkHeaderSize; in Reallocate() local 550 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Reallocate()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_allocator.cpp | 602 uptr chunk_beg = user_beg - kChunkHeaderSize; in Allocate() local 603 AsanChunk *m = reinterpret_cast<AsanChunk *>(chunk_beg); in Allocate() 654 if (alloc_beg != chunk_beg) { in Allocate() 655 CHECK_LE(alloc_beg + sizeof(LargeChunkHeader), chunk_beg); in Allocate() 708 uptr chunk_beg = p - kChunkHeaderSize; in Deallocate() local 709 AsanChunk *m = reinterpret_cast<AsanChunk *>(chunk_beg); in Deallocate() 759 uptr chunk_beg = p - kChunkHeaderSize; in Reallocate() local 760 AsanChunk *m = reinterpret_cast<AsanChunk *>(chunk_beg); in Reallocate()
|