Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_common.h291 static inline bool IsItaniumABIArrayCookie(uptr chunk_beg, uptr chunk_size, in IsItaniumABIArrayCookie() argument
293 return chunk_size == sizeof(uptr) && chunk_beg + chunk_size == addr && in IsItaniumABIArrayCookie()
294 *reinterpret_cast<uptr *>(chunk_beg) == 0; in IsItaniumABIArrayCookie()
302 static inline bool IsARMABIArrayCookie(uptr chunk_beg, uptr chunk_size, in IsARMABIArrayCookie() argument
304 return chunk_size == 2 * sizeof(uptr) && chunk_beg + chunk_size == addr && in IsARMABIArrayCookie()
305 *reinterpret_cast<uptr *>(chunk_beg + sizeof(uptr)) == 0; in IsARMABIArrayCookie()
312 inline bool IsSpecialCaseOfOperatorNew0(uptr chunk_beg, uptr chunk_size, in IsSpecialCaseOfOperatorNew0() argument
315 return IsARMABIArrayCookie(chunk_beg, chunk_size, addr); in IsSpecialCaseOfOperatorNew0()
317 return IsItaniumABIArrayCookie(chunk_beg, chunk_size, addr); in IsSpecialCaseOfOperatorNew0()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.cpp406 uptr chunk_beg = user_beg - kChunkHeaderSize; in Allocate() local
407 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Allocate()
408 m->from_memalign = alloc_beg != chunk_beg; in Allocate()
431 if (alloc_beg != chunk_beg) { in Allocate()
432 CHECK_LE(alloc_beg + sizeof(LargeChunkHeader), chunk_beg); in Allocate()
447 uptr chunk_beg = p - kChunkHeaderSize; in Deallocate() local
448 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Deallocate()
487 uptr chunk_beg = p - kChunkHeaderSize; in Reallocate() local
488 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Reallocate()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_allocator.cpp602 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()
751 uptr chunk_beg = p - kChunkHeaderSize; in Reallocate() local
752 AsanChunk *m = reinterpret_cast<AsanChunk *>(chunk_beg); in Reallocate()