Lines Matching defs:Allocate
264 void *Allocate(uptr size) const {
265 void *res = get_allocator().Allocate(cache_, size, 1);
295 // poisoning that with non-zero just before unpoisoning by Allocate(). So just
296 // poison head/tail invisible to Allocate().
528 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack,
582 allocated = allocator.Allocate(cache, needed_size, 8);
586 allocated = allocator.Allocate(cache, needed_size, 8);
766 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true);
787 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false);
812 // get_allocator().Allocate(), or is being destroyed just before
1008 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true));
1028 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true));
1034 // Allocate a size of 1 if we shouldn't free() on Realloc to 0
1042 instance.Allocate(size, GetPageSizeCached(), stack, FROM_MALLOC, true));
1056 instance.Allocate(size, PageSize, stack, FROM_MALLOC, true));
1068 instance.Allocate(size, alignment, stack, alloc_type, true));
1079 instance.Allocate(size, alignment, stack, FROM_MALLOC, true));
1089 void *ptr = instance.Allocate(size, alignment, stack, FROM_MALLOC, true);
1091 // OOM error is already taken care of by Allocate.