• Home
  • Raw
  • Download

Lines Matching defs:Allocator

298 struct Allocator {  struct
299 static const uptr kMaxAllowedMallocSize =
302 AsanAllocator allocator;
303 AsanQuarantine quarantine;
304 StaticSpinMutex fallback_mutex;
305 AllocatorCache fallback_allocator_cache;
306 QuarantineCache fallback_quarantine_cache;
308 uptr max_user_defined_malloc_size;
309 atomic_uint8_t rss_limit_exceeded;
312 atomic_uint16_t min_redzone;
313 atomic_uint16_t max_redzone;
314 atomic_uint8_t alloc_dealloc_mismatch;
317 explicit Allocator(LinkerInitialized) in Allocator() argument
321 void CheckOptions(const AllocatorOptions &options) const { in CheckOptions()
329 void SharedInitCode(const AllocatorOptions &options) { in SharedInitCode()
339 void InitLinkerInitialized(const AllocatorOptions &options) { in InitLinkerInitialized()
349 bool RssLimitExceeded() { in RssLimitExceeded()
353 void SetRssLimitExceeded(bool limit_exceeded) { in SetRssLimitExceeded()
357 void RePoisonChunk(uptr chunk) { in RePoisonChunk()
383 void ReInitialize(const AllocatorOptions &options) { in ReInitialize()
400 void GetOptions(AllocatorOptions *options) const { in GetOptions()
412 uptr ComputeRZLog(uptr user_requested_size) { in ComputeRZLog()
427 static uptr ComputeUserRequestedAlignmentLog(uptr user_requested_alignment) { in ComputeUserRequestedAlignmentLog()
435 static uptr ComputeUserAlignment(uptr user_requested_alignment_log) { in ComputeUserAlignment()
442 AsanChunk *ChooseChunk(uptr addr, AsanChunk *left_chunk, in ChooseChunk()
472 bool UpdateAllocationStack(uptr addr, BufferedStackTrace *stack) { in UpdateAllocationStack()
484 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack, in Allocate()
617 bool AtomicallySetQuarantineFlagIfAllocated(AsanChunk *m, void *ptr, in AtomicallySetQuarantineFlagIfAllocated()
636 void QuarantineChunk(AsanChunk *m, void *ptr, BufferedStackTrace *stack) { in QuarantineChunk()
676 void Deallocate(void *ptr, uptr delete_size, uptr delete_alignment, in Deallocate()
717 void *Reallocate(void *old_ptr, uptr new_size, BufferedStackTrace *stack) { in Reallocate()
742 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { in Calloc()
756 void ReportInvalidFree(void *ptr, u8 chunk_state, BufferedStackTrace *stack) { in ReportInvalidFree()
763 void CommitBack(AsanThreadLocalMallocStorage *ms, BufferedStackTrace *stack) { in CommitBack()
775 AsanChunk *GetAsanChunk(void *alloc_beg) { in GetAsanChunk()
792 AsanChunk *GetAsanChunkByAddr(uptr p) { in GetAsanChunkByAddr()
798 AsanChunk *GetAsanChunkByAddrFastLocked(uptr p) { in GetAsanChunkByAddrFastLocked()
804 uptr AllocationSize(uptr p) { in AllocationSize()
813 AsanChunkView FindHeapChunkByAddress(uptr addr) { in FindHeapChunkByAddress()
832 void Purge(BufferedStackTrace *stack) { in Purge()
850 void PrintStats() { in PrintStats()
855 void ForceLock() { in ForceLock()
860 void ForceUnlock() { in ForceUnlock()