reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
80 if (size == 0) 81 size = 1; 82 if (size > kMaxAllowedMallocSize) 83 return ReportAllocationSizeTooBig(size, stack); 84 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); 89 ReportOutOfMemory(size, &stack); 93 memset(p, 0, size); 94 RegisterAllocation(stack, p, size); 95 if (&__sanitizer_malloc_hook) __sanitizer_malloc_hook(p, size); 96 RunMallocHooks(p, size);