Lines Matching refs:allocator

28 static Allocator allocator;  variable
72 return allocator.GetActuallyAllocatedSize(reinterpret_cast<void *>(block_)); in ActualSize()
76 return allocator.FromPrimary(reinterpret_cast<void *>(block_)); in FromSmallHeap()
120 allocator.GetStats(s); in GetAllocatorStats()
152 allocator.InitLinkerInitialized( in HwasanAllocatorInit()
165 void HwasanAllocatorLock() { allocator.ForceLock(); } in HwasanAllocatorLock()
167 void HwasanAllocatorUnlock() { allocator.ForceUnlock(); } in HwasanAllocatorUnlock()
169 void AllocatorThreadStart(AllocatorCache *cache) { allocator.InitCache(cache); } in AllocatorThreadStart()
172 allocator.SwallowCache(cache); in AllocatorThreadFinish()
173 allocator.DestroyCache(cache); in AllocatorThreadFinish()
207 allocated = allocator.Allocate(t->allocator_cache(), size, alignment); in HwasanAllocate()
211 allocated = allocator.Allocate(cache, size, alignment); in HwasanAllocate()
222 if (allocator.FromPrimary(allocated)) in HwasanAllocate()
257 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in HwasanAllocate()
299 reinterpret_cast<Metadata *>(allocator.GetMetaData(aligned_ptr)); in HwasanDeallocate()
344 allocator.FromPrimary(untagged_ptr) /* Secondary 0-tag and unmap.*/) { in HwasanDeallocate()
364 allocator.Deallocate(t->allocator_cache(), aligned_ptr); in HwasanDeallocate()
372 allocator.Deallocate(cache, aligned_ptr); in HwasanDeallocate()
385 reinterpret_cast<Metadata *>(allocator.GetMetaData(untagged_ptr_old)); in HwasanReallocate()
404 if (!allocator.PointerIsMine(reinterpret_cast<void *>(address))) in FindHeapChunkByAddress()
406 void *block = allocator.GetBlockBegin(reinterpret_cast<void*>(address)); in FindHeapChunkByAddress()
410 reinterpret_cast<Metadata*>(allocator.GetMetaData(block)); in FindHeapChunkByAddress()
419 const void *beg = allocator.GetBlockBegin(untagged_ptr); in AllocationBegin()
423 Metadata *b = (Metadata *)allocator.GetMetaData(beg); in AllocationBegin()
434 const void *beg = allocator.GetBlockBegin(untagged_ptr); in AllocationSize()
437 Metadata *b = (Metadata *)allocator.GetMetaData(beg); in AllocationSize()
446 reinterpret_cast<Metadata *>(allocator.GetMetaData(aligned_ptr)); in AllocationSizeFast()
550 *begin = (uptr)&__hwasan::allocator; in GetAllocatorGlobalRange()
551 *end = *begin + sizeof(__hwasan::allocator); in GetAllocatorGlobalRange()
558 reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBeginFastLocked(p)); in PointsIntoChunk()
562 __hwasan::allocator.GetMetaData(reinterpret_cast<void *>(chunk))); in PointsIntoChunk()
574 void *block = __hwasan::allocator.GetBlockBeginFastLocked( in GetUserBegin()
579 __hwasan::allocator.GetMetaData(block)); in GetUserBegin()
596 chunk ? __hwasan::allocator.GetMetaData(reinterpret_cast<void *>(chunk)) in LsanMetadata()
628 __hwasan::allocator.ForEachChunk(callback, arg); in ForEachChunk()
634 uptr chunk = reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBegin(p)); in IgnoreObject()
638 __hwasan::allocator.GetMetaData(reinterpret_cast<void *>(chunk))); in IgnoreObject()
664 allocator.GetStats(stats); in __sanitizer_get_current_allocated_bytes()
670 allocator.GetStats(stats); in __sanitizer_get_heap_size()
695 void __sanitizer_purge_allocator() { allocator.ForceReleaseToOS(); } in __sanitizer_purge_allocator()