Home
last modified time | relevance | path

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

/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/lsan/
HDlsan_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-13-stable/contrib/llvm-project/compiler-rt/lib/memprof/
HDmemprof_allocator.cpp472 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-13-stable/contrib/llvm-project/compiler-rt/lib/asan/
HDasan_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()
759 uptr chunk_beg = p - kChunkHeaderSize; in Reallocate() local
760 AsanChunk *m = reinterpret_cast<AsanChunk *>(chunk_beg); in Reallocate()