Home
last modified time | relevance | path

Searched refs:Allocator (Results 1 – 25 of 329) sorted by relevance

12345678910>>...14

/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dtsd_exclusive.h29 template <class Allocator> struct TSDRegistryExT {
30 void init(Allocator *Instance) REQUIRES(Mutex) { in init()
62 void drainCaches(Allocator *Instance) { in drainCaches()
82 ALWAYS_INLINE TSD<Allocator> *
143 TSD<Allocator> FallbackTSD;
146 static thread_local TSD<Allocator> ThreadTSD;
151 template <class Allocator>
152 thread_local TSD<Allocator> TSDRegistryExT<Allocator>::ThreadTSD;
153 template <class Allocator>
156 template <class Allocator>
[all …]
H A Dwrappers_cpp.cpp39 void *Ptr = Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new()
89 Allocator.deallocate(ptr, scudo::Chunk::Origin::New); in operator delete()
93 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray); in operator delete[]()
98 Allocator.deallocate(ptr, scudo::Chunk::Origin::New); in operator delete()
103 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray); in operator delete[]()
107 Allocator.deallocate(ptr, scudo::Chunk::Origin::New, size); in operator delete()
116 Allocator.deallocate(ptr, scudo::Chunk::Origin::New, 0, in operator delete()
122 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray, 0, in operator delete[]()
128 Allocator.deallocate(ptr, scudo::Chunk::Origin::New, 0, in operator delete()
134 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray, 0, in operator delete[]()
[all …]
H A Dwrappers_c_bionic.cpp26 #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()
47 Allocator.getErrorInfo(error_info, fault_addr, stack_depot, region_info, in __scudo_get_error_info()
53 return Allocator.getStackDepotAddress(); in __scudo_get_stack_depot_addr()
61 return Allocator.getRegionInfoArrayAddress(); in __scudo_get_region_info_addr()
65 return Allocator.getRegionInfoArraySize(); in __scudo_get_region_info_size()
69 return Allocator.getRingBufferAddress(); in __scudo_get_ring_buffer_addr()
73 return Allocator.getRingBufferSize(); in __scudo_get_ring_buffer_size()
H A Dtsd_shared.h29 void init(Allocator *Instance) REQUIRES(Mutex) { in init()
40 void initOnceMaybe(Allocator *Instance) EXCLUDES(Mutex) { in initOnceMaybe()
57 void drainCaches(Allocator *Instance) { in drainCaches()
66 ALWAYS_INLINE void initThreadMaybe(Allocator *Instance, in initThreadMaybe()
75 ALWAYS_INLINE TSD<Allocator> *
77 TSD<Allocator> *TSD = getCurrentTSD(); in getTSDAndLock()
144 static_assert(alignof(TSD<Allocator>) >= 2, "");
151 ALWAYS_INLINE TSD<Allocator> *getCurrentTSD() { in getCurrentTSD()
196 NOINLINE TSD<Allocator> *getTSDAndLockSlow(TSD<Allocator> *CurrentTSD) in getTSDAndLockSlow()
212 TSD<Allocator> *CandidateTSD = nullptr; in getTSDAndLockSlow()
[all …]
H A Dtsd.h27 template <class Allocator> struct alignas(SCUDO_CACHE_LINE_SIZE) TSD { in alignas()
28 using ThisT = TSD<Allocator>; in alignas()
31 void init(Allocator *Instance) NO_THREAD_SAFETY_ANALYSIS { in alignas()
56 void commitBack(Allocator *Instance) { Instance->commitBack(this); } in alignas()
75 typename Allocator::CacheT &getCache() REQUIRES(Mutex) { return Cache; } in alignas()
76 typename Allocator::QuarantineCacheT &getQuarantineCache() REQUIRES(Mutex) { in alignas()
84 typename Allocator::CacheT Cache GUARDED_BY(Mutex); in alignas()
85 typename Allocator::QuarantineCacheT QuarantineCache GUARDED_BY(Mutex); in alignas()
H A Dwrappers_c.cpp25 #define SCUDO_ALLOCATOR Allocator
31 scudo::Allocator<scudo::Config, SCUDO_PREFIX(malloc_postinit)> SCUDO_ALLOCATOR;
38 extern "C" INTERFACE void __scudo_print_stats(void) { Allocator.printStats(); } in __scudo_print_stats()
/freebsd-14.2/contrib/llvm-project/llvm/lib/DWARFLinker/Parallel/
H A DDIEGenerator.h24 DIEGenerator(BumpPtrAllocator &Allocator, DwarfUnit &CU) in DIEGenerator() argument
25 : Allocator(Allocator), CU(CU) {} in DIEGenerator()
27 DIEGenerator(DIE *OutputDIE, BumpPtrAllocator &Allocator, DwarfUnit &CU) in DIEGenerator() argument
28 : Allocator(Allocator), CU(CU), OutputDIE(OutputDIE) {} in DIEGenerator()
32 OutputDIE = DIE::get(Allocator, DieTag); in createDIE()
60 DIELoc *Loc = new (Allocator) DIELoc; in addLocationAttribute()
63 Allocator, static_cast<dwarf::Attribute>(0), dwarf::DW_FORM_data1, in addLocationAttribute()
82 DIEBlock *Block = new (Allocator) DIEBlock; in addBlockAttribute()
118 DIEBlock *Block = new (Allocator) DIEBlock; in addInplaceString()
125 Allocator, static_cast<dwarf::Attribute>(0), dwarf::DW_FORM_data1, in addInplaceString()
[all …]
H A DTypePool.h46 create(llvm::parallel::PerThreadBumpPtrAllocator &Allocator) { in create() argument
47 TypeEntryBody *Result = Allocator.Allocate<TypeEntryBody>(); in create()
48 new (Result) TypeEntryBody(Allocator); in create()
78 : Children(&Allocator) {} in TypeEntryBody()
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()
137 TypeEntryBody *NewDIE = TypeEntryBody::create(Allocator); in getOrCreateTypeEntryBody()
162 return Allocator.getThreadLocalAllocator(); in getThreadLocalAllocator()
[all …]
H A DArrayList.h25 ArrayList(llvm::parallel::PerThreadBumpPtrAllocator *Allocator) in ArrayList() argument
26 : Allocator(Allocator) {} in ArrayList()
30 assert(Allocator); in add()
135 ItemsGroup *NewGroup = Allocator->Allocate<ItemsGroup>(); in allocateNewGroup()
160 llvm::parallel::PerThreadBumpPtrAllocator *Allocator = nullptr; variable
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/
H A DMappedBlockStream.h43 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator);
47 uint32_t StreamIndex, BumpPtrAllocator &Allocator);
51 BumpPtrAllocator &Allocator);
55 BumpPtrAllocator &Allocator);
68 BumpPtrAllocator &getAllocator() { return Allocator; } in getAllocator()
78 BinaryStreamRef MsfData, BumpPtrAllocator &Allocator);
101 BumpPtrAllocator &Allocator; variable
113 uint32_t StreamIndex, BumpPtrAllocator &Allocator);
118 BumpPtrAllocator &Allocator);
122 BumpPtrAllocator &Allocator, bool AltFpm = false);
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DRecyclingAllocator.h34 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 DAllocator.h81 BumpPtrAllocatorImpl(T &&Allocator) in BumpPtrAllocatorImpl() argument
82 : AllocTy(std::forward<T &&>(Allocator)) {} in BumpPtrAllocatorImpl()
383 BumpPtrAllocator Allocator; variable
389 Allocator.setRedZoneSize(0); in SpecificBumpPtrAllocator()
392 : Allocator(std::move(Old.Allocator)) {} in SpecificBumpPtrAllocator()
396 Allocator = std::move(RHS.Allocator);
410 for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end(); I != E; in DestroyAll()
413 std::distance(Allocator.Slabs.begin(), I)); in DestroyAll()
415 char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr in DestroyAll()
421 for (auto &PtrAndSize : Allocator.CustomSizedSlabs) { in DestroyAll()
[all …]
H A DRecycler.h68 void clear(AllocatorType &Allocator) { in clear() argument
71 Allocator.Deallocate(t); in clear()
83 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() argument
89 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate()
93 T *Allocate(AllocatorType &Allocator) { in Allocate() argument
94 return Allocate<T>(Allocator); in Allocate()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DWARFLinker/
H A DStringPool.h45 llvm::parallel::PerThreadBumpPtrAllocator &Allocator) { in create() argument
46 return StringEntry::create(Key, Allocator); in create()
58 StringPoolEntryInfo>(Allocator) {} in StringPool()
63 StringPoolEntryInfo>(Allocator, InitialSize) {} in StringPool()
66 return Allocator; in getAllocatorRef()
69 void clear() { Allocator.Reset(); } in clear()
72 llvm::parallel::PerThreadBumpPtrAllocator Allocator;
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp46 BumpPtrAllocator &Allocator) in MappedBlockStream() argument
48 Allocator(Allocator) {} in MappedBlockStream()
52 BumpPtrAllocator &Allocator) { in createStream() argument
54 BlockSize, Layout, MsfData, Allocator); in createStream()
59 BumpPtrAllocator &Allocator) { in createIndexedStream() argument
65 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
75 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createDirectoryStream()
81 BumpPtrAllocator &Allocator) { in createFpmStream() argument
311 : ReadInterface(BlockSize, Layout, MsfData, Allocator), in WritableMappedBlockStream()
320 BlockSize, Layout, MsfData, Allocator); in createStream()
[all …]
H A DMSFBuilder.cpp41 BumpPtrAllocator &Allocator) in MSFBuilder() argument
42 : Allocator(Allocator), IsGrowable(CanGrow), in MSFBuilder()
51 Expected<MSFBuilder> MSFBuilder::create(BumpPtrAllocator &Allocator, in create() argument
60 CanGrow, Allocator); in create()
254 SuperBlock *SB = Allocator.Allocate<SuperBlock>(); in generateLayout()
296 ulittle32_t *Sizes = Allocator.Allocate<ulittle32_t>(StreamData.size()); in generateLayout()
302 Allocator.Allocate<ulittle32_t>(StreamData[I].second.size()); in generateLayout()
316 BumpPtrAllocator &Allocator) { in commitFpm() argument
321 WritableMappedBlockStream::createFpmStream(Layout, MsfBuffer, Allocator, in commitFpm()
395 commitFpm(Buffer, Layout, Allocator); in commit()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DPagedVector.h54 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 …]
H A DScopedHashTable.h67 AllocatorTy &Allocator) { in Create() argument
68 ScopedHashTableVal *New = Allocator.template Allocate<ScopedHashTableVal>(); in Create()
76 template <typename AllocatorTy> void Destroy(AllocatorTy &Allocator) { in Destroy() argument
79 Allocator.Deallocate(this); in Destroy()
226 template <typename K, typename V, typename KInfo, typename Allocator>
227 ScopedHashTableScope<K, V, KInfo, Allocator>::
228 ScopedHashTableScope(ScopedHashTable<K, V, KInfo, Allocator> &ht) : HT(ht) { in ScopedHashTableScope()
234 template <typename K, typename V, typename KInfo, typename Allocator>
235 ScopedHashTableScope<K, V, KInfo, Allocator>::~ScopedHashTableScope() { in ~ScopedHashTableScope()
/freebsd-14.2/contrib/llvm-project/libcxx/include/
H A Dset197 Compare = Compare(), Allocator = Allocator())
202 set(from_range_t, R&&, Compare = Compare(), Allocator = Allocator())
206 set(initializer_list<Key>, Compare = Compare(), Allocator = Allocator())
219 set(initializer_list<Key>, Allocator) -> set<Key, less<Key>, Allocator>; // C++17
258 swap(set<Key, Compare, Allocator>& x, set<Key, Compare, Allocator>& y)
305 const Compare& comp = Compare(), const Allocator& = Allocator()); // C++23
443 Compare = Compare(), Allocator = Allocator())
448 multiset(from_range_t, R&&, Compare = Compare(), Allocator = Allocator())
452 multiset(initializer_list<Key>, Compare = Compare(), Allocator = Allocator())
465 multiset(initializer_list<Key>, Allocator) -> multiset<Key, less<Key>, Allocator>; // C++17
[all …]
H A Dmap236 map(InputIterator, InputIterator, Compare = Compare(), Allocator = Allocator())
241 map(from_range_t, R&&, Compare = Compare(), Allocator = Allocator())
246 map(initializer_list<pair<const Key, T>>, Compare = Compare(), Allocator = Allocator())
252 Allocator>; // C++17
255 map(from_range_t, R&&, Allocator)
259 map(initializer_list<pair<const Key, T>>, Allocator) -> map<Key, T, less<Key>, Allocator>; // C++17
299 swap(map<Key, T, Compare, Allocator>& x, map<Key, T, Compare, Allocator>& y)
359 const Compare& comp = Compare(), const Allocator& = Allocator()); // C++23
498 multimap(InputIterator, InputIterator, Compare = Compare(), Allocator = Allocator())
503 multimap(from_range_t, R&&, Compare = Compare(), Allocator = Allocator())
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DPartialDiagnostic.h51 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-14.2/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_allocator.h164 template <size_t N> struct Allocator { struct
225 explicit Allocator(size_t M) XRAY_NEVER_INSTRUMENT in Allocator() function
233 explicit Allocator(void *P, size_t M) XRAY_NEVER_INSTRUMENT in Allocator() argument
241 Allocator(const Allocator &) = delete;
242 Allocator &operator=(const Allocator &) = delete; argument
244 Allocator(Allocator &&O) XRAY_NEVER_INSTRUMENT { in Allocator() argument
259 Allocator &operator=(Allocator &&O) XRAY_NEVER_INSTRUMENT {
279 ~Allocator() NOEXCEPT XRAY_NEVER_INSTRUMENT { in ~Allocator() argument
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeSession.cpp68 : Pdb(std::move(PdbFile)), Allocator(std::move(Allocator)), in NativeSession()
79 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromPdb() local
122 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromPdbPath() local
123 auto PdbFile = loadPdbFile(PdbPath, Allocator); in createFromPdbPath()
128 std::move(Allocator)); in createFromPdbPath()
162 auto Allocator = std::make_unique<BumpPtrAllocator>(); in createFromExe() local
163 auto File = loadPdbFile(PdbPath.get(), Allocator); in createFromExe()
168 std::move(Allocator)); in createFromExe()
189 auto Allocator = std::make_unique<BumpPtrAllocator>(); in searchForPdb() local
191 if (auto File = loadPdbFile(PdbPath, Allocator)) in searchForPdb()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineFunction.cpp273 OperandRecycler.clear(Allocator); in clear()
279 Allocator.Deallocate(RegInfo); in clear()
283 Allocator.Deallocate(MFInfo); in clear()
287 Allocator.Deallocate(FrameInfo); in clear()
290 Allocator.Deallocate(ConstantPool); in clear()
299 Allocator.Deallocate(WinEHInfo); in clear()
318 JumpTableInfo = new (Allocator) in getOrCreateJumpTableInfo()
490 return new (Allocator) in getMachineMemOperand()
500 return new (Allocator) in getMachineMemOperand()
507 return new (Allocator) in getMachineMemOperand()
[all …]
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_local_cache.h19 typedef SizeClassAllocator Allocator; typedef
20 typedef MemoryMapper<Allocator> MemoryMapperT;
74 typedef typename Allocator::SizeClassMapT SizeClassMap;
76 typedef typename Allocator::CompactPtrT CompactPtrT;
92 const uptr size = Allocator::ClassIdToSize(i); in InitCache()
129 typedef SizeClassAllocator Allocator; typedef
130 typedef typename Allocator::TransferBatch TransferBatch;
196 typedef typename Allocator::SizeClassMapT SizeClassMap;
204 Allocator::kUseSeparateSizeClassForBatch;
222 const uptr size = Allocator::ClassIdToSize(i); in InitCache()

12345678910>>...14