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