Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp226 uintptr_t UserPtr; in allocate() local
230 UserPtr = alignUp(SlotStart, Alignment); in allocate()
232 UserPtr = alignDown(SlotEnd - Size, Alignment); in allocate()
234 assert(UserPtr >= SlotStart); in allocate()
235 assert(UserPtr + Size <= SlotEnd); in allocate()
242 reinterpret_cast<void *>(getPageAddr(UserPtr, PageSize)), in allocate()
245 Meta->RecordAllocation(UserPtr, Size); in allocate()
251 return reinterpret_cast<void *>(UserPtr); in allocate()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_allocator.cpp372 uptr UserPtr = reinterpret_cast<uptr>(BackendPtr) + Chunk::getHeaderSize(); in allocate() local
373 if (UNLIKELY(!IsAligned(UserPtr, Alignment))) { in allocate()
378 const uptr AlignedUserPtr = RoundUpTo(UserPtr, Alignment); in allocate()
379 Header.Offset = (AlignedUserPtr - UserPtr) >> MinAlignmentLog; in allocate()
380 UserPtr = AlignedUserPtr; in allocate()
382 DCHECK_LE(UserPtr + Size, reinterpret_cast<uptr>(BackendPtr) + BackendSize); in allocate()
393 const uptr TrailingBytes = (UserPtr + Size) & (PageSize - 1); in allocate()
397 void *Ptr = reinterpret_cast<void *>(UserPtr); in allocate()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dcombined.h373 const uptr UserPtr = roundUpTo(UnalignedUserPtr, Alignment); variable
375 void *Ptr = reinterpret_cast<void *>(UserPtr);
429 PrevUserPtr == UserPtr &&
430 (TaggedUserPtr = loadTag(UserPtr)) != UserPtr) {
478 if (UNLIKELY(UnalignedUserPtr != UserPtr)) {
479 const uptr Offset = UserPtr - UnalignedUserPtr;
493 (ClassId ? Size : SecondaryBlockEnd - (UserPtr + Size)) &