Lines Matching full:allocator

37 static Allocator allocator;  variable
43 allocator.InitLinkerInitialized( in InitializeAllocator()
52 void AllocatorThreadStart() { allocator.InitCache(GetAllocatorCache()); } in AllocatorThreadStart()
55 allocator.SwallowCache(GetAllocatorCache()); in AllocatorThreadFinish()
56 allocator.DestroyCache(GetAllocatorCache()); in AllocatorThreadFinish()
60 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p)); in Metadata()
101 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate()
108 // Do not rely on the allocator to clear the memory (it's slow). in Allocate()
109 if (cleared && allocator.FromPrimary(p)) in Allocate()
127 allocator.Deallocate(GetAllocatorCache(), p); in Deallocate()
138 allocator.Reallocate(GetAllocatorCache(), p, new_size, alignment); in Reallocate()
154 void *beg = allocator.GetBlockBegin(p); in GetMallocBegin()
267 allocator.ForceLock(); in LockAllocator()
271 allocator.ForceUnlock(); in UnlockAllocator()
275 *begin = (uptr)&allocator; in GetAllocatorGlobalRange()
276 *end = *begin + sizeof(allocator); in GetAllocatorGlobalRange()
281 uptr chunk = reinterpret_cast<uptr>(allocator.GetBlockBeginFastLocked(p)); in PointsIntoChunk()
331 allocator.ForEachChunk(callback, arg); in ForEachChunk()
335 void *chunk = allocator.GetBlockBegin(p); in IgnoreObject()
357 allocator.GetStats(stats); in __sanitizer_get_current_allocated_bytes()
364 allocator.GetStats(stats); in __sanitizer_get_heap_size()
401 void __sanitizer_purge_allocator() { allocator.ForceReleaseToOS(); } in __sanitizer_purge_allocator()