Lines Matching defs:Allocator
224 struct Allocator { struct
225 static const uptr kMaxAllowedMallocSize =
227 static const uptr kMaxThreadLocalQuarantine =
230 AsanAllocator allocator;
231 AsanQuarantine quarantine;
232 StaticSpinMutex fallback_mutex;
233 AllocatorCache fallback_allocator_cache;
234 QuarantineCache fallback_quarantine_cache;
237 atomic_uint16_t min_redzone;
238 atomic_uint16_t max_redzone;
239 atomic_uint8_t alloc_dealloc_mismatch;
242 explicit Allocator(LinkerInitialized) in Allocator() argument
246 void CheckOptions(const AllocatorOptions &options) const { in CheckOptions()
254 void SharedInitCode(const AllocatorOptions &options) { in SharedInitCode()
264 void Initialize(const AllocatorOptions &options) { in Initialize()
269 void ReInitialize(const AllocatorOptions &options) { in ReInitialize()
274 void GetOptions(AllocatorOptions *options) const { in GetOptions()
284 uptr ComputeRZLog(uptr user_requested_size) { in ComputeRZLog()
299 AsanChunk *ChooseChunk(uptr addr, AsanChunk *left_chunk, in ChooseChunk()
323 void *Allocate(uptr size, uptr alignment, BufferedStackTrace *stack, in Allocate()
461 void AtomicallySetQuarantineFlag(AsanChunk *m, void *ptr, in AtomicallySetQuarantineFlag()
473 void QuarantineChunk(AsanChunk *m, void *ptr, BufferedStackTrace *stack, in QuarantineChunk()
513 void Deallocate(void *ptr, uptr delete_size, BufferedStackTrace *stack, in Deallocate()
530 void *Reallocate(void *old_ptr, uptr new_size, BufferedStackTrace *stack) { in Reallocate()
555 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { in Calloc()
566 void ReportInvalidFree(void *ptr, u8 chunk_state, BufferedStackTrace *stack) { in ReportInvalidFree()
573 void CommitBack(AsanThreadLocalMallocStorage *ms) { in CommitBack()
582 AsanChunk *GetAsanChunk(void *alloc_beg) { in GetAsanChunk()
595 AsanChunk *GetAsanChunkByAddr(uptr p) { in GetAsanChunkByAddr()
601 AsanChunk *GetAsanChunkByAddrFastLocked(uptr p) { in GetAsanChunkByAddrFastLocked()
607 uptr AllocationSize(uptr p) { in AllocationSize()
615 AsanChunkView FindHeapChunkByAddress(uptr addr) { in FindHeapChunkByAddress()
635 void PrintStats() { in PrintStats()
639 void ForceLock() { in ForceLock()
644 void ForceUnlock() { in ForceUnlock()