Lines Matching refs:allocator

28 static Allocator allocator;  variable
67 return allocator.GetActuallyAllocatedSize(reinterpret_cast<void *>(block_)); in ActualSize()
71 return allocator.FromPrimary(reinterpret_cast<void *>(block_)); in FromSmallHeap()
110 allocator.GetStats(s); in GetAllocatorStats()
142 allocator.Init(common_flags()->allocator_release_to_os_interval_ms, in HwasanAllocatorInit()
148 void HwasanAllocatorLock() { allocator.ForceLock(); } in HwasanAllocatorLock()
150 void HwasanAllocatorUnlock() { allocator.ForceUnlock(); } in HwasanAllocatorUnlock()
153 allocator.SwallowCache(cache); in AllocatorSwallowThreadLocalCache()
184 allocated = allocator.Allocate(t->allocator_cache(), size, alignment); in HwasanAllocate()
188 allocated = allocator.Allocate(cache, size, alignment); in HwasanAllocate()
236 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in HwasanAllocate()
282 reinterpret_cast<Metadata *>(allocator.GetMetaData(aligned_ptr)); in HwasanDeallocate()
339 allocator.Deallocate(t->allocator_cache(), aligned_ptr); in HwasanDeallocate()
346 allocator.Deallocate(cache, aligned_ptr); in HwasanDeallocate()
362 reinterpret_cast<Metadata *>(allocator.GetMetaData(untagged_ptr_old)); in HwasanReallocate()
381 if (!allocator.PointerIsMine(reinterpret_cast<void *>(address))) in FindHeapChunkByAddress()
383 void *block = allocator.GetBlockBegin(reinterpret_cast<void*>(address)); in FindHeapChunkByAddress()
387 reinterpret_cast<Metadata*>(allocator.GetMetaData(block)); in FindHeapChunkByAddress()
394 const void *beg = allocator.GetBlockBegin(untagged_ptr); in AllocationSize()
395 Metadata *b = (Metadata *)allocator.GetMetaData(untagged_ptr); in AllocationSize()
500 *begin = (uptr)&__hwasan::allocator; in GetAllocatorGlobalRange()
501 *end = *begin + sizeof(__hwasan::allocator); in GetAllocatorGlobalRange()
508 reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBeginFastLocked(p)); in PointsIntoChunk()
512 __hwasan::allocator.GetMetaData(reinterpret_cast<void *>(chunk))); in PointsIntoChunk()
525 void *block = __hwasan::allocator.GetBlockBeginFastLocked( in GetUserBegin()
530 __hwasan::allocator.GetMetaData(block)); in GetUserBegin()
541 chunk ? __hwasan::allocator.GetMetaData(reinterpret_cast<void *>(chunk)) in LsanMetadata()
573 __hwasan::allocator.ForEachChunk(callback, arg); in ForEachChunk()
580 reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBeginFastLocked(p)); in IgnoreObjectLocked()
584 __hwasan::allocator.GetMetaData(reinterpret_cast<void *>(chunk))); in IgnoreObjectLocked()
610 allocator.GetStats(stats); in __sanitizer_get_current_allocated_bytes()
616 allocator.GetStats(stats); in __sanitizer_get_heap_size()