Lines Matching refs:allocator
62 static Allocator allocator; variable
70 allocator.Init(common_flags()->allocator_release_to_os_interval_ms); in dfsan_allocator_init()
85 allocator.SwallowCache(GetAllocatorCache(this)); in CommitBack()
108 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate()
112 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate()
122 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in DFsanAllocate()
135 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in dfsan_deallocate()
143 allocator.Deallocate(cache, p); in dfsan_deallocate()
147 allocator.Deallocate(cache, p); in dfsan_deallocate()
152 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(old_p)); in DFsanReallocate()
154 uptr actually_allocated_size = allocator.GetActuallyAllocatedSize(old_p); in DFsanReallocate()
184 void *beg = allocator.GetBlockBegin(p); in AllocationBegin()
187 Metadata *b = (Metadata *)allocator.GetMetaData(beg); in AllocationBegin()
198 const void *beg = allocator.GetBlockBegin(p); in AllocationSize()
201 Metadata *b = (Metadata *)allocator.GetMetaData(p); in AllocationSize()
206 return reinterpret_cast<Metadata *>(allocator.GetMetaData(p))->requested_size; in AllocationSizeFast()
301 allocator.GetStats(stats); in __sanitizer_get_current_allocated_bytes()
307 allocator.GetStats(stats); in __sanitizer_get_heap_size()