| /src/sys/external/bsd/compiler_rt/dist/lib/xray/tests/unit/ |
| allocator_test.cc | 26 TEST(AllocatorTest, Construction) { Allocator<sizeof(TestData)> A(2 << 11); } 29 Allocator<sizeof(TestData)> A(2 << 11); 35 Allocator<sizeof(TestData)> A(sizeof(TestData)); 48 Allocator<sizeof(OddSizedData)> A(GetPageSizeCached()); 67 Allocator<sizeof(OddSizedData)> A(B.Data, B.Size);
|
| /src/sys/external/bsd/compiler_rt/dist/lib/xray/ |
| xray_allocator.h | 12 // Defines the allocator interface for an arena allocator, used primarily for 38 // internal allocator. This allows us to manage the memory directly, using 148 /// The Allocator type hands out fixed-sized chunks of memory that are 151 /// allocator also self-limits the peak memory usage to a dynamically defined 159 /// The Allocator instance will manage its own memory acquired through mmap. 165 template <size_t N> struct Allocator { 166 // The Allocator returns memory as Block instances. 187 Report("XRay Profiling: Failed to allocate memory for allocator.\n"); 226 explicit Allocator(size_t M) XRAY_NEVER_INSTRUMEN [all...] |
| xray_profile_collector.cc | 71 // We use a separate buffer queue for the backing store for the allocator used 274 // use a local allocator and an __xray::Array<...> to store the intermediary 334 TDAllocator->~Allocator();
|
| xray_segmented_array.h | 31 /// the Allocator type, in that all memory will be released when the Allocator 59 // - Request cacheline-multiple sized elements from the allocator. 68 using AllocatorType = Allocator<SegmentSize>; 346 AllocatorType &allocator() const XRAY_NEVER_INSTRUMENT {
|
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
| sanitizer_allocator_test.cc | 57 struct AP64 { // Allocator Params. Short name for shorter demangled names.. 193 template <class Allocator> 195 Allocator *a = new Allocator; 197 SizeClassAllocatorLocalCache<Allocator> cache; 218 uptr class_id0 = Allocator::SizeClassMapT::ClassID(size); 231 CHECK_EQ(class_id, Allocator::SizeClassMapT::ClassID(size)); 318 template <class Allocator> 320 Allocator *a = new Allocator; 825 AllocatorCache::Allocator *allocator; member in struct:NewThreadParams 839 AllocatorCache::Allocator allocator; local [all...] |
| sanitizer_allocator_testlib.cc | 56 SecondaryAllocator> Allocator; 58 static Allocator allocator; member in namespace:__anon4145 69 allocator.SwallowCache(&cache); 84 allocator.PrintStats(); 94 allocator.Init(false /*may_return_null*/); 107 void *p = allocator.Allocate(&cache, size, 8); 116 allocator.Deallocate(&cache, p); 123 void *p = allocator.Allocate(&cache, size, 8, false); 135 p = allocator.Reallocate(&cache, p, size, 8) [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
| sanitizer_allocator_local_cache.h | 10 // Part of the Sanitizer Allocator. 27 typedef SizeClassAllocator Allocator; 35 void Destroy(SizeClassAllocator *allocator, AllocatorGlobalStats *s) { 36 Drain(allocator); 41 void *Allocate(SizeClassAllocator *allocator, uptr class_id) { 46 if (UNLIKELY(!Refill(c, allocator, class_id))) 52 return reinterpret_cast<void *>(allocator->CompactPtrToPointer( 53 allocator->GetRegionBeginBySizeClass(class_id), chunk)); 56 void Deallocate(SizeClassAllocator *allocator, uptr class_id, void *p) { 59 // If the first allocator call on a new thread is a deallocation, the [all...] |
| sanitizer_malloc_mac.inc | 11 // implementation, which together replace the system allocator. 40 // Used to track changes to the allocator that will affect 46 // This represents the current allocator ABI version. 47 // This field should be incremented every time the Allocator 48 // ABI changes in a way that breaks allocator enumeration. 346 // Set current allocator enumeration version.
|
| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
| tsan_mman.cc | 65 static char allocator_placeholder[sizeof(Allocator)] ALIGNED(64); 66 Allocator *allocator() { function in namespace:__tsan 67 return reinterpret_cast<Allocator*>(&allocator_placeholder); 119 allocator()->Init(common_flags()->allocator_release_to_os_interval_ms); 127 allocator()->InitCache(&proc->alloc_cache); 132 allocator()->DestroyCache(&proc->alloc_cache); 137 allocator()->PrintStats(); 164 void *p = allocator()->Allocate(&thr->proc()->alloc_cache, sz, align); 183 allocator()->Deallocate(&thr->proc()->alloc_cache, p) [all...] |
| tsan_external.cc | 101 Allocator *a = allocator();
|
| tsan_debugging.cc | 200 Allocator *a = allocator(); 207 region_address = (uptr)allocator()->GetBlockBegin((void *)addr); 240 Allocator *a = allocator();
|
| tsan_rtl.h | 91 SecondaryAllocator> Allocator; 92 Allocator *allocator(); 347 // it should be tied to a CPU (this way we will have fewer allocator caches).
|
| tsan_rtl_report.cc | 329 Allocator *a = allocator(); 338 loc->heap_chunk_start = (uptr)allocator()->GetBlockBegin((void *)addr);
|
| /src/sys/external/bsd/compiler_rt/dist/lib/lsan/ |
| lsan_allocator.h | 11 // Allocator for standalone LSan. 115 using Allocator = AllocatorASVT<LocalAddressSpaceView>;
|
| lsan_allocator.cc | 38 static Allocator allocator; member in namespace:__lsan 42 allocator.InitLinkerInitialized( 47 allocator.SwallowCache(GetAllocatorCache()); 51 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p)); 85 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); 92 // Do not rely on the allocator to clear the memory (it's slow). 93 if (cleared && allocator.FromPrimary(p)) 115 allocator.Deallocate(GetAllocatorCache(), p); 122 allocator.Deallocate(GetAllocatorCache(), p) [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/msan/ |
| msan_allocator.cc | 12 // MemorySanitizer allocator. 123 SecondaryAllocator> Allocator; 125 static Allocator allocator; member in namespace:__msan 131 allocator.Init(common_flags()->allocator_release_to_os_interval_ms); 141 allocator.SwallowCache(GetAllocatorCache(this)); 157 allocated = allocator.Allocate(cache, size, alignment); 161 allocated = allocator.Allocate(cache, size, alignment); 170 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); 189 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)) [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/asan/ |
| asan_allocator.cc | 12 // Implementation of ASan's memory allocator, 2-nd version. 13 // This variant uses the allocator from sanitizer_common, i.e. the one shared 54 // The memory chunk allocated from the underlying allocator looks like this: 104 // Every chunk of memory allocated by this allocator can be in one of 3 states: 154 // Clear the magic value, as allocator internals may overwrite the 240 struct Allocator { 244 AsanAllocator allocator; member in struct:__asan::Allocator 258 explicit Allocator(LinkerInitialized) 282 allocator.InitLinkerInitialized(options.release_to_os_interval_ms); 298 uptr allocated_size = allocator.GetActuallyAllocatedSize((void *)ac) [all...] |