Lines Matching refs:alignment
82 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() argument
88 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate()
122 uptr alignment) { in Reallocate() argument
128 p = allocator.Reallocate(GetAllocatorCache(), p, new_size, alignment); in Reallocate()
144 int lsan_posix_memalign(void **memptr, uptr alignment, uptr size, in lsan_posix_memalign() argument
146 if (UNLIKELY(!CheckPosixMemalignAlignment(alignment))) { in lsan_posix_memalign()
149 ReportInvalidPosixMemalignAlignment(alignment, &stack); in lsan_posix_memalign()
151 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); in lsan_posix_memalign()
155 CHECK(IsAligned((uptr)ptr, alignment)); in lsan_posix_memalign()
160 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack) { in lsan_aligned_alloc() argument
161 if (UNLIKELY(!CheckAlignedAllocAlignmentAndSize(alignment, size))) { in lsan_aligned_alloc()
165 ReportInvalidAlignedAllocAlignment(size, alignment, &stack); in lsan_aligned_alloc()
167 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_aligned_alloc()
170 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack) { in lsan_memalign() argument
171 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in lsan_memalign()
175 ReportInvalidAllocationAlignment(alignment, &stack); in lsan_memalign()
177 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_memalign()