Lines Matching refs:allocator

149 static Allocator allocator;  variable
157 allocator.Init(common_flags()->allocator_release_to_os_interval_ms); in MsanAllocatorInit()
165 void LockAllocator() { allocator.ForceLock(); } in LockAllocator()
167 void UnlockAllocator() { allocator.ForceUnlock(); } in UnlockAllocator()
176 allocator.InitCache(GetAllocatorCache(this)); in Init()
180 allocator.SwallowCache(GetAllocatorCache(this)); in CommitBack()
181 allocator.DestroyCache(GetAllocatorCache(this)); in CommitBack()
204 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate()
208 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate()
218 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate()
221 if (allocator.FromPrimary(allocated)) in MsanAllocate()
243 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in MsanDeallocate()
249 if (flags()->poison_in_free && allocator.FromPrimary(p)) { in MsanDeallocate()
260 allocator.Deallocate(cache, p); in MsanDeallocate()
264 allocator.Deallocate(cache, p); in MsanDeallocate()
270 Metadata *meta = reinterpret_cast<Metadata*>(allocator.GetMetaData(old_p)); in MsanReallocate()
272 uptr actually_allocated_size = allocator.GetActuallyAllocatedSize(old_p); in MsanReallocate()
306 void *beg = allocator.GetBlockBegin(p); in AllocationBegin()
309 Metadata *b = (Metadata *)allocator.GetMetaData(beg); in AllocationBegin()
320 const void *beg = allocator.GetBlockBegin(p); in AllocationSize()
322 Metadata *b = (Metadata *)allocator.GetMetaData(p); in AllocationSize()
327 return reinterpret_cast<Metadata *>(allocator.GetMetaData(p))->requested_size; in AllocationSizeFast()
423 allocator.GetStats(stats); in __sanitizer_get_current_allocated_bytes()
429 allocator.GetStats(stats); in __sanitizer_get_heap_size()
454 void __sanitizer_purge_allocator() { allocator.ForceReleaseToOS(); } in __sanitizer_purge_allocator()