Lines Matching defs:Allocator
297 struct Allocator { struct
298 static const uptr kMaxAllowedMallocSize =
301 AsanAllocator allocator;
302 AsanQuarantine quarantine;
303 StaticSpinMutex fallback_mutex;
304 AllocatorCache fallback_allocator_cache;
305 QuarantineCache fallback_quarantine_cache;
307 uptr max_user_defined_malloc_size;
308 atomic_uint8_t rss_limit_exceeded;
311 atomic_uint16_t min_redzone;
312 atomic_uint16_t max_redzone;
313 atomic_uint8_t alloc_dealloc_mismatch;
316 explicit Allocator(LinkerInitialized) in Allocator() argument
320 void CheckOptions(const AllocatorOptions &options) const { in CheckOptions()
328 void SharedInitCode(const AllocatorOptions &options) { in SharedInitCode()
338 void InitLinkerInitialized(const AllocatorOptions &options) { in InitLinkerInitialized()
348 bool RssLimitExceeded() { in RssLimitExceeded()
352 void SetRssLimitExceeded(bool limit_exceeded) { in SetRssLimitExceeded()
356 void RePoisonChunk(uptr chunk) { in RePoisonChunk()
382 void ReInitialize(const AllocatorOptions &options) { in ReInitialize()
399 void GetOptions(AllocatorOptions *options) const { in GetOptions()
411 uptr ComputeRZLog(uptr user_requested_size) { in ComputeRZLog()
426 static uptr ComputeUserRequestedAlignmentLog(uptr user_requested_alignment) { in ComputeUserRequestedAlignmentLog()
434 static uptr ComputeUserAlignment(uptr user_requested_alignment_log) { in ComputeUserAlignment()
441 AsanChunk *ChooseChunk(uptr addr, AsanChunk *left_chunk, in ChooseChunk()
471 bool UpdateAllocationStack(uptr addr, BufferedStackTrace *stack) { in UpdateAllocationStack()
483 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack, in Allocate()
616 bool AtomicallySetQuarantineFlagIfAllocated(AsanChunk *m, void *ptr, in AtomicallySetQuarantineFlagIfAllocated()
635 void QuarantineChunk(AsanChunk *m, void *ptr, BufferedStackTrace *stack) { in QuarantineChunk()
675 void Deallocate(void *ptr, uptr delete_size, uptr delete_alignment, in Deallocate()
716 void *Reallocate(void *old_ptr, uptr new_size, BufferedStackTrace *stack) { in Reallocate()
741 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { in Calloc()
755 void ReportInvalidFree(void *ptr, u8 chunk_state, BufferedStackTrace *stack) { in ReportInvalidFree()
762 void CommitBack(AsanThreadLocalMallocStorage *ms, BufferedStackTrace *stack) { in CommitBack()
774 AsanChunk *GetAsanChunk(void *alloc_beg) { in GetAsanChunk()
791 AsanChunk *GetAsanChunkByAddr(uptr p) { in GetAsanChunkByAddr()
797 AsanChunk *GetAsanChunkByAddrFastLocked(uptr p) { in GetAsanChunkByAddrFastLocked()
803 uptr AllocationSize(uptr p) { in AllocationSize()
812 AsanChunkView FindHeapChunkByAddress(uptr addr) { in FindHeapChunkByAddress()
831 void Purge(BufferedStackTrace *stack) { in Purge()
849 void PrintStats() { in PrintStats()
854 void ForceLock() ACQUIRE(fallback_mutex) { in ForceLock()
859 void ForceUnlock() RELEASE(fallback_mutex) { in ForceUnlock()