Lines Matching refs:alignment
90 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() argument
101 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate()
131 uptr alignment) { in Reallocate() argument
138 allocator.Reallocate(GetAllocatorCache(), p, new_size, alignment); in Reallocate()
179 int lsan_posix_memalign(void **memptr, uptr alignment, uptr size, in lsan_posix_memalign() argument
181 if (UNLIKELY(!CheckPosixMemalignAlignment(alignment))) { in lsan_posix_memalign()
184 ReportInvalidPosixMemalignAlignment(alignment, &stack); in lsan_posix_memalign()
186 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); in lsan_posix_memalign()
190 CHECK(IsAligned((uptr)ptr, alignment)); in lsan_posix_memalign()
195 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack) { in lsan_aligned_alloc() argument
196 if (UNLIKELY(!CheckAlignedAllocAlignmentAndSize(alignment, size))) { in lsan_aligned_alloc()
200 ReportInvalidAlignedAllocAlignment(size, alignment, &stack); in lsan_aligned_alloc()
202 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_aligned_alloc()
205 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack) { in lsan_memalign() argument
206 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in lsan_memalign()
210 ReportInvalidAllocationAlignment(alignment, &stack); in lsan_memalign()
212 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_memalign()