Lines Matching full:allocator
11 // DataflowSanitizer allocator.
40 // Note: to ensure that the allocator is compatible with the application memory
42 // duplicated as MappingDesc::ALLOCATOR in dfsan_platform.h.
62 typedef CombinedAllocator<PrimaryAllocator> Allocator; typedef
63 typedef Allocator::AllocatorCache AllocatorCache;
65 static Allocator allocator; variable
73 allocator.Init(common_flags()->allocator_release_to_os_interval_ms); in dfsan_allocator_init()
88 allocator.SwallowCache(GetAllocatorCache(this)); in CommitBack()
111 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate()
115 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate()
125 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in DFsanAllocate()
138 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in dfsan_deallocate()
146 allocator.Deallocate(cache, p); in dfsan_deallocate()
150 allocator.Deallocate(cache, p); in dfsan_deallocate()
155 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(old_p)); in DFsanReallocate()
157 uptr actually_allocated_size = allocator.GetActuallyAllocatedSize(old_p); in DFsanReallocate()
187 void *beg = allocator.GetBlockBegin(p); in AllocationBegin()
190 Metadata *b = (Metadata *)allocator.GetMetaData(beg); in AllocationBegin()
201 const void *beg = allocator.GetBlockBegin(p); in AllocationSize()
204 Metadata *b = (Metadata *)allocator.GetMetaData(p); in AllocationSize()
209 return reinterpret_cast<Metadata *>(allocator.GetMetaData(p))->requested_size; in AllocationSizeFast()
304 allocator.GetStats(stats); in __sanitizer_get_current_allocated_bytes()
310 allocator.GetStats(stats); in __sanitizer_get_heap_size()