Lines Matching defs:Allocator
296 struct Allocator { struct
297 static const uptr kMaxAllowedMallocSize =
300 AsanAllocator allocator;
301 AsanQuarantine quarantine;
302 StaticSpinMutex fallback_mutex;
303 AllocatorCache fallback_allocator_cache;
304 QuarantineCache fallback_quarantine_cache;
306 uptr max_user_defined_malloc_size;
309 atomic_uint16_t min_redzone;
310 atomic_uint16_t max_redzone;
311 atomic_uint8_t alloc_dealloc_mismatch;
314 explicit Allocator(LinkerInitialized) in Allocator() argument
318 void CheckOptions(const AllocatorOptions &options) const { in CheckOptions()
326 void SharedInitCode(const AllocatorOptions &options) { in SharedInitCode()
336 void InitLinkerInitialized(const AllocatorOptions &options) { in InitLinkerInitialized()
346 void RePoisonChunk(uptr chunk) { in RePoisonChunk()
372 void ReInitialize(const AllocatorOptions &options) { in ReInitialize()
389 void GetOptions(AllocatorOptions *options) const { in GetOptions()
401 uptr ComputeRZLog(uptr user_requested_size) { in ComputeRZLog()
416 static uptr ComputeUserRequestedAlignmentLog(uptr user_requested_alignment) { in ComputeUserRequestedAlignmentLog()
424 static uptr ComputeUserAlignment(uptr user_requested_alignment_log) { in ComputeUserAlignment()
431 AsanChunk *ChooseChunk(uptr addr, AsanChunk *left_chunk, in ChooseChunk()
461 bool UpdateAllocationStack(uptr addr, BufferedStackTrace *stack) { in UpdateAllocationStack()
473 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack, in Allocate()
606 bool AtomicallySetQuarantineFlagIfAllocated(AsanChunk *m, void *ptr, in AtomicallySetQuarantineFlagIfAllocated()
625 void QuarantineChunk(AsanChunk *m, void *ptr, BufferedStackTrace *stack) { in QuarantineChunk()
664 void Deallocate(void *ptr, uptr delete_size, uptr delete_alignment, in Deallocate()
705 void *Reallocate(void *old_ptr, uptr new_size, BufferedStackTrace *stack) { in Reallocate()
730 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { in Calloc()
744 void ReportInvalidFree(void *ptr, u8 chunk_state, BufferedStackTrace *stack) { in ReportInvalidFree()
751 void CommitBack(AsanThreadLocalMallocStorage *ms, BufferedStackTrace *stack) { in CommitBack()
763 AsanChunk *GetAsanChunk(void *alloc_beg) { in GetAsanChunk()
780 AsanChunk *GetAsanChunkByAddr(uptr p) { in GetAsanChunkByAddr()
786 AsanChunk *GetAsanChunkByAddrFastLocked(uptr p) { in GetAsanChunkByAddrFastLocked()
792 uptr AllocationSize(uptr p) { in AllocationSize()
801 AsanChunkView FindHeapChunkByAddress(uptr addr) { in FindHeapChunkByAddress()
820 void Purge(BufferedStackTrace *stack) { in Purge()
838 void PrintStats() { in PrintStats()
843 void ForceLock() SANITIZER_ACQUIRE(fallback_mutex) { in ForceLock()
848 void ForceUnlock() SANITIZER_RELEASE(fallback_mutex) { in ForceUnlock()