Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/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()
/openbsd/gnu/llvm/compiler-rt/lib/memprof/
H A Dmemprof_allocator.cpp402 uptr chunk_beg = user_beg - kChunkHeaderSize; in Allocate() local
403 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Allocate()
404 m->from_memalign = alloc_beg != chunk_beg; in Allocate()
427 if (alloc_beg != chunk_beg) { in Allocate()
428 CHECK_LE(alloc_beg + sizeof(LargeChunkHeader), chunk_beg); in Allocate()
443 uptr chunk_beg = p - kChunkHeaderSize; in Deallocate() local
444 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Deallocate()
484 uptr chunk_beg = p - kChunkHeaderSize; in Reallocate() local
485 MemprofChunk *m = reinterpret_cast<MemprofChunk *>(chunk_beg); in Reallocate()
/openbsd/gnu/llvm/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()