Lines Matching full:allocate
84 Report("WARNING: LeakSanitizer failed to allocate 0x%zx bytes\n", size); in ReportAllocationSizeTooBig()
90 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() function
101 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate()
122 return Allocate(stack, size, 1, true); in Calloc()
186 void *ptr = Allocate(stack, size, alignment, kAlwaysClearMemory); in lsan_posix_memalign()
188 // OOM error is already taken care of by Allocate. in lsan_posix_memalign()
202 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_aligned_alloc()
212 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_memalign()
216 return SetErrnoOnNull(Allocate(stack, size, 1, kAlwaysClearMemory)); in lsan_malloc()
244 Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory)); in lsan_valloc()
255 // pvalloc(0) should allocate one page. in lsan_pvalloc()
257 return SetErrnoOnNull(Allocate(stack, size, PageSize, kAlwaysClearMemory)); in lsan_pvalloc()