Lines Matching refs:alignment
85 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() argument
96 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate()
128 uptr alignment) { in Reallocate() argument
135 allocator.Reallocate(GetAllocatorCache(), p, new_size, alignment); in Reallocate()
156 int lsan_posix_memalign(void **memptr, uptr alignment, uptr size, in lsan_posix_memalign() argument
158 if (UNLIKELY(!CheckPosixMemalignAlignment(alignment))) { in lsan_posix_memalign()
161 ReportInvalidPosixMemalignAlignment(alignment, &stack); in lsan_posix_memalign()
163 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); in lsan_posix_memalign()
167 CHECK(IsAligned((uptr)ptr, alignment)); in lsan_posix_memalign()
172 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack) { in lsan_aligned_alloc() argument
173 if (UNLIKELY(!CheckAlignedAllocAlignmentAndSize(alignment, size))) { in lsan_aligned_alloc()
177 ReportInvalidAlignedAllocAlignment(size, alignment, &stack); in lsan_aligned_alloc()
179 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_aligned_alloc()
182 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack) { in lsan_memalign() argument
183 if (UNLIKELY(!IsPowerOfTwo(alignment))) { in lsan_memalign()
187 ReportInvalidAllocationAlignment(alignment, &stack); in lsan_memalign()
189 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_memalign()