| /freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | tsd_exclusive.h | 27 template <class Allocator> void teardownThread(void *Ptr); 29 template <class Allocator> struct TSDRegistryExT { 30 using ThisT = TSDRegistryExT<Allocator>; 43 TSD<Allocator> &operator*() { return *CurrentTSD; } 45 TSD<Allocator> *operator->() { 51 TSD<Allocator> *CurrentTSD; 55 void init(Allocator *Instance) REQUIRES(Mutex) { in init() 58 CHECK_EQ(pthread_key_create(&PThreadKey, teardownThread<Allocator>), 0); in init() 63 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { in initOnceMaybe() 70 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) { in unmapTestOnly() [all …]
|
| H A D | wrappers_cpp.cpp | 39 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new() 44 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::NewArray); in operator new[]() 50 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new() 56 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::NewArray); 61 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::New, in operator delete[]() 67 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator delete[]() 74 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::New, in operator delete[]() 81 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator delete() 89 Allocator.deallocate(ptr, scudo::Chunk::Origin::New); in operator delete() 93 Allocator in operator delete[]() [all...] |
| H A D | tsd_shared.h | 27 template <class Allocator, u32 TSDsArraySize, u32 DefaultTSDCount> 29 using ThisT = TSDRegistrySharedT<Allocator, TSDsArraySize, DefaultTSDCount>; 39 TSD<Allocator> &operator*() { return *CurrentTSD; } 41 TSD<Allocator> *operator->() { 47 TSD<Allocator> *CurrentTSD; 50 void init(Allocator *Instance) REQUIRES(Mutex) { in init() 61 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { in initOnceMaybe() 68 void unmapTestOnly(Allocator *Instance) EXCLUDES(Mutex) { in unmapTestOnly() 78 void drainCaches(Allocator *Instance) { in drainCaches() 87 ALWAYS_INLINE void initThreadMaybe(Allocator *Instance, in initThreadMaybe() [all …]
|
| H A D | wrappers_c_bionic.cpp | 26 #define SCUDO_ALLOCATOR Allocator 30 static scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)> 39 INTERFACE void __scudo_print_stats(void) { Allocator.printStats(); } in __scudo_print_stats() 46 Allocator.getErrorInfo(error_info, fault_addr, stack_depot, stack_depot_size, in __scudo_get_error_info() 52 return Allocator.getStackDepotAddress(); in __scudo_get_stack_depot_addr() 56 return Allocator.getStackDepotSize(); in __scudo_get_stack_depot_size() 60 return Allocator.getRegionInfoArrayAddress(); in __scudo_get_region_info_addr() 64 return Allocator.getRegionInfoArraySize(); in __scudo_get_region_info_size() 68 return Allocator.getRingBufferAddress(); in __scudo_get_ring_buffer_addr() 72 return Allocator.getRingBufferSize(); in __scudo_get_ring_buffer_size()
|
| H A D | tsd.h | 27 template <class Allocator> struct alignas(SCUDO_CACHE_LINE_SIZE) TSD { 28 using ThisT = TSD<Allocator>; 31 void init(Allocator *Instance) NO_THREAD_SAFETY_ANALYSIS { in init() 56 void commitBack(Allocator *Instance) { Instance->commitBack(this); } in commitBack() 75 typename Allocator::SizeClassAllocatorT &getSizeClassAllocator() in getSizeClassAllocator() 79 typename Allocator::QuarantineCacheT &getQuarantineCache() REQUIRES(Mutex) { in getQuarantineCache() 87 typename Allocator::SizeClassAllocatorT SizeClassAllocator GUARDED_BY(Mutex); 88 typename Allocator::QuarantineCacheT QuarantineCache GUARDED_BY(Mutex);
|
| H A D | size_class_allocator.h | 30 Allocator = A; in init() 57 return Allocator->decompactPtr(ClassId, CompactP); in allocate() 71 Allocator->compactPtr(ClassId, reinterpret_cast<uptr>(P)); in deallocate() 147 SizeClassAllocator *Allocator = nullptr; member 166 Allocator->popBlocks(this, ClassId, C->Chunks, MaxRefill); in refill() 174 Allocator->pushBlocks(this, ClassId, &C->Chunks[0], Count); in drain() 190 Allocator = A; in init() 201 uptr NumBlocksPopped = Allocator->popBlocks(this, ClassId, &CompactPtr, 1U); in allocate() 208 return Allocator->decompactPtr(ClassId, CompactPtr); in allocate() 218 Allocator->compactPtr(ClassId, reinterpret_cast<uptr>(P)); in deallocate() [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/ |
| H A D | vector | 21 template <class T, class Allocator = allocator<T> > 26 typedef Allocator allocator_type; 47 constexpr vector(from_range_t, R&& rg, const Allocator& = Allocator()); // C++23 137 template <class Allocator = allocator<T> > 138 class vector<bool, Allocator> 142 typedef Allocator allocator_type; 179 constexpr vector(from_range_t, R&& rg, const Allocator& = Allocator()); 263 template <class InputIterator, class Allocator = allocator<typename iterator_traits<InputIterator>:… 264 vector(InputIterator, InputIterator, Allocator = Allocator()) 265 -> vector<typename iterator_traits<InputIterator>::value_type, Allocator>; // C++17 [all …]
|
| H A D | set | 21 class Allocator = allocator<Key>> 30 typedef Allocator allocator_type; 60 …set(from_range_t, R&& rg, const Compare& comp = Compare(), const Allocator& = Allocator()); // C++… 76 set(from_range_t, R&& rg, const Allocator& a)) 138 void merge(set<Key, C2, Allocator>& source); // C++17 140 void merge(set<Key, C2, Allocator>&& source); // C++17 142 void merge(multiset<Key, C2, Allocator>& source); // C++17 144 void merge(multiset<Key, C2, Allocator>&& source); // C++17 195 class Allocator = allocator<typename iterator_traits<InputIterator>::value_type>> 197 Compare = Compare(), Allocator = Allocator()) [all …]
|
| H A D | map | 21 class Allocator = allocator<pair<const Key, T>>> 30 typedef Allocator allocator_type; 74 …map(from_range_t, R&& rg, const Compare& comp = Compare(), const Allocator& = Allocator()); // C++… 89 map(from_range_t, R&& rg, const Allocator& a)) 179 void merge(map<Key, T, C2, Allocator>& source); // C++17 181 void merge(map<Key, T, C2, Allocator>&& source); // C++17 183 void merge(multimap<Key, T, C2, Allocator>& source); // C++17 185 void merge(multimap<Key, T, C2, Allocator>&& source); // C++17 235 class Allocator = allocator<iter_to_alloc_t<InputIterator>>> 236 map(InputIterator, InputIterator, Compare = Compare(), Allocator = Allocator()) [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/ |
| H A D | set | 21 class Allocator = allocator<Key>> 30 typedef Allocator allocator_type; 60 …set(from_range_t, R&& rg, const Compare& comp = Compare(), const Allocator& = Allocator()); // C++… 76 set(from_range_t, R&& rg, const Allocator& a)) 138 void merge(set<Key, C2, Allocator>& source); // C++17 140 void merge(set<Key, C2, Allocator>&& source); // C++17 142 void merge(multiset<Key, C2, Allocator>& source); // C++17 144 void merge(multiset<Key, C2, Allocator>&& source); // C++17 195 class Allocator = allocator<typename iterator_traits<InputIterator>::value_type>> 197 Compare = Compare(), Allocator = Allocator()) [all …]
|
| H A D | map | 21 class Allocator = allocator<pair<const Key, T>>> 30 typedef Allocator allocator_type; 74 …map(from_range_t, R&& rg, const Compare& comp = Compare(), const Allocator& = Allocator()); // C++… 89 map(from_range_t, R&& rg, const Allocator& a)) 179 void merge(map<Key, T, C2, Allocator>& source); // C++17 181 void merge(map<Key, T, C2, Allocator>&& source); // C++17 183 void merge(multimap<Key, T, C2, Allocator>& source); // C++17 185 void merge(multimap<Key, T, C2, Allocator>&& source); // C++17 235 class Allocator = allocator<iter_to_alloc_t<InputIterator>>> 236 map(InputIterator, InputIterator, Compare = Compare(), Allocator = Allocator()) [all …]
|
| H A D | unordered_set | 69 unordered_set(const unordered_set&, const Allocator&); 75 unordered_set(unordered_set&&, const Allocator&); 144 void merge(unordered_set<Key, H2, P2, Allocator>& source); // C++17 146 void merge(unordered_set<Key, H2, P2, Allocator>&& source); // C++17 148 void merge(unordered_multiset<Key, H2, P2, Allocator>& source); // C++17 150 void merge(unordered_multiset<Key, H2, P2, Allocator>&& source); // C++17 153 noexcept(allocator_traits<Allocator>::is_always_equal::value && 202 class Allocator = allocator<typename iterator_traits<InputIterator>::value_type>> 204 Hash = Hash(), Pred = Pred(), Allocator = Allocator()) 206 Hash, Pred, Allocator>; // C++17 [all …]
|
| H A D | unordered_map | 69 unordered_map(const unordered_map&, const Allocator&); 75 unordered_map(unordered_map&&, const Allocator&); 169 void merge(unordered_map<Key, T, H2, P2, Allocator>& source); // C++17 171 void merge(unordered_map<Key, T, H2, P2, Allocator>&& source); // C++17 173 void merge(unordered_multimap<Key, T, H2, P2, Allocator>& source); // C++17 175 void merge(unordered_multimap<Key, T, H2, P2, Allocator>&& source); // C++17 234 class Allocator = allocator<iter_to_alloc_t<InputIterator>>> 236 Hash = Hash(), Pred = Pred(), Allocator = Allocator()) 238 Allocator>; // C++17 242 class Allocator = allocator<range-to-alloc-type<R>>> [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/ |
| H A D | TypePool.h | 46 create(llvm::parallel::PerThreadBumpPtrAllocator &Allocator) { in create() argument 47 TypeEntryBody *Result = Allocator.Allocate<TypeEntryBody>(); in create() 48 new (Result) TypeEntryBody(Allocator); in create() 77 TypeEntryBody(llvm::parallel::PerThreadBumpPtrAllocator &Allocator) in TypeEntryBody() argument 78 : Children(&Allocator) {} in TypeEntryBody() 101 llvm::parallel::PerThreadBumpPtrAllocator &Allocator) { in create() argument 102 return TypeEntry::create(Key, Allocator); in create() 116 TypeEntryInfo>(Allocator) { in TypePool() 117 Root = TypeEntry::create("", Allocator); in TypePool() 118 Root->getValue().store(TypeEntryBody::create(Allocator)); in TypePool() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/ |
| H A D | MappedBlockStream.h | 44 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator); 48 uint32_t StreamIndex, BumpPtrAllocator &Allocator); 52 BumpPtrAllocator &Allocator); 56 BumpPtrAllocator &Allocator); 69 BumpPtrAllocator &getAllocator() { return Allocator; } in getAllocator() 79 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator); 102 BumpPtrAllocator &Allocator; variable 110 WritableBinaryStreamRef MsfData, BumpPtrAllocator &Allocator); 114 uint32_t StreamIndex, BumpPtrAllocator &Allocator); 119 BumpPtrAllocator &Allocator); [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | RecyclingAllocator.h | 34 AllocatorType Allocator; variable 37 ~RecyclingAllocator() { Base.clear(Allocator); } in ~RecyclingAllocator() 43 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() 45 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() 51 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate() 54 Allocator.PrintStats(); in PrintStats() 64 T, Size, Align> &Allocator) { in new() argument 66 return Allocator.Allocate(); in new()
|
| H A D | Allocator.h | 82 BumpPtrAllocatorImpl(T &&Allocator) in BumpPtrAllocatorImpl() argument 83 : AllocTy(std::forward<T &&>(Allocator)) {} in BumpPtrAllocatorImpl() 391 BumpPtrAllocator Allocator; variable 397 Allocator.setRedZoneSize(0); in SpecificBumpPtrAllocator() 400 : Allocator(std::move(Old.Allocator)) {} in SpecificBumpPtrAllocator() 404 Allocator = std::move(RHS.Allocator); 418 for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end(); I != E; in DestroyAll() 421 std::distance(Allocator.Slabs.begin(), I)); in DestroyAll() 423 char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr in DestroyAll() 429 for (auto &PtrAndSize : Allocator.CustomSizedSlabs) { in DestroyAll() [all …]
|
| H A D | Recycler.h | 74 void clear(AllocatorType &Allocator) { in clear() argument 77 Allocator.Deallocate(t, Size, Align); in clear() 89 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() argument 97 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate() 101 T *Allocate(AllocatorType &Allocator) { in Allocate() argument 102 return Allocate<T>(Allocator); in Allocate()
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/MSF/ |
| H A D | MappedBlockStream.cpp | 46 BumpPtrAllocator &Allocator) in MappedBlockStream() 48 Allocator(Allocator) {} in MappedBlockStream() 52 BumpPtrAllocator &Allocator) { in createStream() 54 BlockSize, Layout, MsfData, Allocator); in createStream() 59 BumpPtrAllocator &Allocator) { in createIndexedStream() 65 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream() 71 BumpPtrAllocator &Allocator) { in createDirectoryStream() 75 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createDirectoryStream() 81 BumpPtrAllocator &Allocator) { in createFpmStream() 47 MappedBlockStream(uint32_t BlockSize,const MSFStreamLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) MappedBlockStream() argument 53 createStream(uint32_t BlockSize,const MSFStreamLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createStream() argument 60 createIndexedStream(const MSFLayout & Layout,BinaryStreamRef MsfData,uint32_t StreamIndex,BumpPtrAllocator & Allocator) createIndexedStream() argument 72 createDirectoryStream(const MSFLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createDirectoryStream() argument 82 createFpmStream(const MSFLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createFpmStream() argument 311 WritableMappedBlockStream(uint32_t BlockSize,const MSFStreamLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) WritableMappedBlockStream() argument 319 createStream(uint32_t BlockSize,const MSFStreamLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createStream() argument 328 createIndexedStream(const MSFLayout & Layout,WritableBinaryStreamRef MsfData,uint32_t StreamIndex,BumpPtrAllocator & Allocator) createIndexedStream() argument 339 createDirectoryStream(const MSFLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createDirectoryStream() argument 349 createFpmStream(const MSFLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator,bool AltFpm) createFpmStream() argument [all...] |
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | PagedVector.h | 54 PointerIntPair<BumpPtrAllocator *, 1, bool> Allocator; variable 61 PagedVector() : Allocator(new BumpPtrAllocator, true) {} in PagedVector() 62 explicit PagedVector(BumpPtrAllocator *A) : Allocator(A, false) { in PagedVector() 69 if (Allocator.getInt()) in ~PagedVector() 70 delete Allocator.getPointer(); in ~PagedVector() 88 PagePtr = Allocator.getPointer()->template Allocate<T>(PageSize); 138 Allocator.getPointer()->Deallocate(Page); in resize() 157 if (!Allocator.getInt()) in clear() 158 Allocator.getPointer()->Deallocate(Page); in clear() 161 if (Allocator.getInt()) in clear() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DWARFLinkerParallel/ |
| H A D | StringPool.h | |
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | PartialDiagnostic.h | 51 Allocator = Other.Allocator; in PartialDiagnostic() 76 Allocator = Other.Allocator; in PartialDiagnostic() 84 Allocator = reinterpret_cast<DiagStorageAllocator *>(~uintptr_t(0)); in PartialDiagnostic() 92 Allocator = &Allocator_; in PartialDiagnostic() 129 Allocator = Other.Allocator; 138 std::swap(Allocator, PD.Allocator); in swap()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
| H A D | xray_allocator.h | 164 template <size_t N> struct Allocator { struct 225 explicit Allocator(size_t M) XRAY_NEVER_INSTRUMENT in Allocator() argument 233 explicit Allocator(void *P, size_t M) XRAY_NEVER_INSTRUMENT in Allocator() function 241 Allocator(const Allocator &) = delete; 242 Allocator &operator=(const Allocator &) = delete; argument 244 Allocator(Allocator &&O) XRAY_NEVER_INSTRUMENT { in Allocator() function 259 Allocator &operator=(Allocator &&O) XRAY_NEVER_INSTRUMENT { 279 ~Allocator() NOEXCEPT XRAY_NEVER_INSTRUMENT { in ~Allocator() argument
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | NativeSession.cpp | 65 std::unique_ptr<BumpPtrAllocator> Allocator) in NativeSession() argument 66 : Pdb(std::move(PdbFile)), Allocator(std::move(Allocator)), in NativeSession() 77 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromPdb() local 78 auto File = std::make_unique<PDBFile>(Path, std::move(Stream), *Allocator); in createFromPdb() 85 std::make_unique<NativeSession>(std::move(File), std::move(Allocator)); in createFromPdb() 91 loadPdbFile(StringRef PdbPath, std::unique_ptr<BumpPtrAllocator> &Allocator) { in loadPdbFile() argument 108 auto File = std::make_unique<PDBFile>(PdbPath, std::move(Stream), *Allocator); in loadPdbFile() 120 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromPdbPath() local 121 auto PdbFile = loadPdbFile(PdbPath, Allocator); in createFromPdbPath() 126 std::move(Allocator)); in createFromPdbPath() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Frontend/HLSL/ |
| H A D | RootSignatureValidations.cpp | 261 ResourceRange::MapT::Allocator Allocator; in findOverlappingRanges() local 263 ResourceRange(Allocator), // All in findOverlappingRanges() 264 ResourceRange(Allocator), // Vertex in findOverlappingRanges() 265 ResourceRange(Allocator), // Hull in findOverlappingRanges() 266 ResourceRange(Allocator), // Domain in findOverlappingRanges() 267 ResourceRange(Allocator), // Geometry in findOverlappingRanges() 268 ResourceRange(Allocator), // Pixel in findOverlappingRanges() 269 ResourceRange(Allocator), // Amplification in findOverlappingRanges() 270 ResourceRange(Allocator), // Mesh in findOverlappingRanges()
|