Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 25 of 183) sorted by relevance

12345678

/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_local_cache.h28 void Destroy(SizeClassAllocator *allocator, AllocatorGlobalStats *s) { in Destroy()
29 Drain(allocator); in Destroy()
34 void *Allocate(SizeClassAllocator *allocator, uptr class_id) { in Allocate()
39 if (UNLIKELY(!Refill(c, allocator, class_id))) in Allocate()
45 return reinterpret_cast<void *>(allocator->CompactPtrToPointer( in Allocate()
46 allocator->GetRegionBeginBySizeClass(class_id), chunk)); in Allocate()
49 void Deallocate(SizeClassAllocator *allocator, uptr class_id, void *p) { in Deallocate()
57 DrainHalfMax(c, allocator, class_id); in Deallocate()
58 CompactPtrT chunk = allocator->PointerToCompactPtr( in Deallocate()
59 allocator->GetRegionBeginBySizeClass(class_id), in Deallocate()
[all …]
H A Dsanitizer_symbolizer_posix_libcdep.cpp272 LowLevelAllocator *allocator) in Addr2LinePool()
273 : addr2line_path_(addr2line_path), allocator_(allocator) { in Addr2LinePool()
409 static SymbolizerTool *ChooseExternalSymbolizer(LowLevelAllocator *allocator) {
426 return new(*allocator) LLVMSymbolizer(path, allocator); in ChooseExternalSymbolizer()
430 return new(*allocator) AtosSymbolizer(path, allocator); in ChooseExternalSymbolizer()
437 return new(*allocator) Addr2LinePool(path, allocator); in ChooseExternalSymbolizer()
450 return new(*allocator) AtosSymbolize in ChooseExternalSymbolizer()
271 Addr2LinePool(const char * addr2line_path,LowLevelAllocator * allocator) Addr2LinePool() argument
410 ChooseExternalSymbolizer(LowLevelAllocator * allocator) ChooseExternalSymbolizer() argument
468 ChooseSymbolizerTools(IntrusiveList<SymbolizerTool> * list,LowLevelAllocator * allocator) ChooseSymbolizerTools() argument
[all...]
H A Dsanitizer_symbolizer_win.cpp275 LowLevelAllocator *allocator) {
298 list->push_back(new (*allocator) LLVMSymbolizer(path, allocator)); in ChooseSymbolizerTools()
305 list->push_back(new(*allocator) WinSymbolizerTool()); in ChooseSymbolizerTools()
277 ChooseSymbolizerTools(IntrusiveList<SymbolizerTool> * list,LowLevelAllocator * allocator) ChooseSymbolizerTools() argument
/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Dallocator.h33 class allocator; variable
39 class _LIBCPP_TEMPLATE_VIS allocator<void> {
47 typedef allocator<_Up> other;
54 class _LIBCPP_TEMPLATE_VIS allocator<const void> {
62 typedef allocator<_Up> other;
94 class _LIBCPP_TEMPLATE_VIS allocator : private __non_trivial_if<!is_void<_Tp>::value, allocator<_Tp…
107 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 allocator() _NOEXCEPT = default;
110 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 allocator(const allocator<_Up>&) _NOEXCEPT {}
113 if (__n > allocator_traits<allocator>::max_size(*this))
145 typedef allocator<_Up> other;
[all …]
/freebsd/sys/contrib/ck/src/
H A Dck_array.c35 ck_array_create(struct ck_malloc *allocator, unsigned int length) in ck_array_create() argument
39 active = allocator->malloc(sizeof(struct _ck_array) + sizeof(void *) * length); in ck_array_create()
50 ck_array_init(struct ck_array *array, unsigned int mode, struct ck_malloc *allocator, unsigned int … in ck_array_init() argument
56 if (allocator->realloc == NULL || in ck_array_init()
57 allocator->malloc == NULL || in ck_array_init()
58 allocator->free == NULL || in ck_array_init()
62 active = ck_array_create(allocator, length); in ck_array_init()
67 array->allocator = allocator; in ck_array_init()
89 target = array->allocator->realloc(target, in ck_array_put()
112 target = array->allocator->realloc(target, in ck_array_put()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cpp28 static Allocator allocator; variable
72 return allocator.GetActuallyAllocatedSize(reinterpret_cast<void *>(block_)); in ActualSize()
76 return allocator.FromPrimary(reinterpret_cast<void *>(block_)); in FromSmallHeap()
120 allocator.GetStats(s); in GetAllocatorStats()
152 allocator.InitLinkerInitialized( in HwasanAllocatorInit()
165 void HwasanAllocatorLock() { allocator.ForceLock(); } in HwasanAllocatorLock()
167 void HwasanAllocatorUnlock() { allocator.ForceUnlock(); } in HwasanAllocatorUnlock()
169 void AllocatorThreadStart(AllocatorCache *cache) { allocator.InitCache(cache); } in AllocatorThreadStart()
172 allocator.SwallowCache(cache); in AllocatorThreadFinish()
173 allocator.DestroyCache(cache); in AllocatorThreadFinish()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp149 static Allocator allocator; variable
157 allocator.Init(common_flags()->allocator_release_to_os_interval_ms); in MsanAllocatorInit()
165 void LockAllocator() { allocator.ForceLock(); } in LockAllocator()
167 void UnlockAllocator() { allocator.ForceUnlock(); } in UnlockAllocator()
176 allocator.InitCache(GetAllocatorCache(this)); in Init()
180 allocator.SwallowCache(GetAllocatorCache(this)); in CommitBack()
181 allocator.DestroyCache(GetAllocatorCache(this)); in CommitBack()
204 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate()
208 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate()
218 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.cpp37 static Allocator allocator; variable
43 allocator.InitLinkerInitialized( in InitializeAllocator()
52 void AllocatorThreadStart() { allocator.InitCache(GetAllocatorCache()); } in AllocatorThreadStart()
55 allocator.SwallowCache(GetAllocatorCache()); in AllocatorThreadFinish()
56 allocator.DestroyCache(GetAllocatorCache()); in AllocatorThreadFinish()
60 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p)); in Metadata()
101 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate()
109 if (cleared && allocator.FromPrimary(p)) in Allocate()
127 allocator.Deallocate(GetAllocatorCache(), p); in Deallocate()
138 allocator.Reallocate(GetAllocatorCache(), p, new_size, alignment); in Reallocate()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp65 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()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp377 llvm::BumpPtrAllocator &allocator() { return Arena.getAllocator(); } in allocator() function in syntax::TreeBuilder
722 new (allocator()) syntax::UnknownDeclaration(), D); in VisitDecl()
766 syntax::Declaration *Result = new (allocator()) syntax::SimpleDeclaration; in handleFreeStandingTagDecl()
799 new (allocator()) syntax::CompoundStatement, S); in WalkUpFromCompoundStmt()
806 new (allocator()) syntax::UnknownStatement, S); in WalkUpFromStmt()
874 new (allocator()) syntax::UnknownExpression, E); in WalkUpFromExpr()
891 return new (allocator()) syntax::IntegerUserDefinedLiteralExpression; in buildUserDefinedLiteral()
893 return new (allocator()) syntax::FloatUserDefinedLiteralExpression; in buildUserDefinedLiteral()
895 return new (allocator()) syntax::CharUserDefinedLiteralExpression; in buildUserDefinedLiteral()
897 return new (allocator()) syntax::StringUserDefinedLiteralExpression; in buildUserDefinedLiteral()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_alloc.cpp1478 void __kmpc_destroy_allocator(int gtid, omp_allocator_handle_t allocator) { in __kmpc_destroy_allocator() argument
1479 if (allocator > kmp_max_mem_alloc) in __kmpc_destroy_allocator()
1480 __kmp_free(allocator); in __kmpc_destroy_allocator()
1483 void __kmpc_set_default_allocator(int gtid, omp_allocator_handle_t allocator) { in __kmpc_set_default_allocator() argument
1484 if (allocator == omp_null_allocator) in __kmpc_set_default_allocator()
1485 allocator = omp_default_mem_alloc; in __kmpc_set_default_allocator()
1486 __kmp_threads[gtid]->th.th_def_allocator = allocator; in __kmpc_set_default_allocator()
1498 kmp_allocator_t *allocator; // allocator member
1503 void *__kmpc_alloc(int gtid, size_t size, omp_allocator_handle_t allocator) { in __kmpc_alloc() argument
1504 KE_TRACE(25, ("__kmpc_alloc: T#%d (%d, %p)\n", gtid, (int)size, allocator)); in __kmpc_alloc()
[all …]
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dmemory.cppm
H A Dmemory.inc25 // [allocator.tag], allocator argument tag
29 // [allocator.uses], uses_allocator
32 // [allocator.uses.trait], uses_allocator
35 // [allocator.uses.construction], uses-allocator construction
41 // [allocator.traits], allocator traits
48 // [default.allocator], the default allocator
49 using std::allocator;
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_mman.cpp58 Allocator *allocator() { in allocator() function
125 allocator()->ForceLock(); in AllocatorLockBeforeFork()
133 allocator()->ForceUnlock(); in AllocatorUnlockAfterFork()
152 allocator()->Init(common_flags()->allocator_release_to_os_interval_ms); in InitializeAllocator()
164 allocator()->InitCache(&proc->alloc_cache); in AllocatorProcStart()
169 allocator()->DestroyCache(&proc->alloc_cache); in AllocatorProcFinish()
174 allocator()->PrintStats(); in AllocatorPrintStats()
209 void *p = allocator()->Allocate(&thr->proc()->alloc_cache, sz, align); in user_alloc_internal()
228 allocator()->Deallocate(&thr->proc()->alloc_cache, p); in user_free()
371 void *beg = allocator()->GetBlockBegin(p); in user_alloc_begin()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_allocator.cpp283 MemprofAllocator allocator; member
355 allocator.ForceLock(); in FinishAndWrite()
377 allocator.ForceUnlock(); in FinishAndWrite()
382 allocator.ForEachChunk( in InsertLiveBlocks()
399 allocator.InitLinkerInitialized( in InitLinkerInitialized()
451 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate()
455 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate()
538 allocator.Deallocate(cache, alloc_beg); in Deallocate()
542 allocator.Deallocate(cache, alloc_beg); in Deallocate()
575 if (ptr && allocator.FromPrimary(ptr)) in Calloc()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Diosfwd26 template<class T> class allocator;
35 template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
37 template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
39 template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
41 template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT> >
92 template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>>
98 template <class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>>
145 template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT>>
153 template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT>>
/freebsd/contrib/llvm-project/libcxx/include/__fwd/
H A Dsstream.h22 template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
25 template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
27 template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
29 template <class _CharT, class _Traits = char_traits<_CharT>, class _Allocator = allocator<_CharT> >
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_allocator.cpp354 AsanAllocator allocator; member
392 allocator.InitLinkerInitialized(options.release_to_os_interval_ms); in InitLinkerInitialized()
404 uptr allocated_size = allocator.GetActuallyAllocatedSize((void *)chunk); in RePoisonChunk()
428 allocator.SetReleaseToOSIntervalMs(options.release_to_os_interval_ms); in ReInitialize()
433 allocator.ForceLock(); in ReInitialize()
434 allocator.ForEachChunk( in ReInitialize()
439 allocator.ForceUnlock(); in ReInitialize()
452 options->release_to_os_interval_ms = allocator.ReleaseToOSIntervalMs(); in GetOptions()
582 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate()
586 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_profiling_flags.inc17 "Maximum size of any single per-thread allocator.")
19 "Maximum size of the global allocator for profile storage.")
21 "Maximum size of the traversal stack allocator.")
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DStringMapEntry.h126 static StringMapEntry *create(StringRef key, AllocatorTy &allocator, in create() argument
129 sizeof(StringMapEntry), alignof(StringMapEntry), key, allocator)) in create()
142 template <typename AllocatorTy> void Destroy(AllocatorTy &allocator) { in Destroy() argument
146 allocator.Deallocate(static_cast<void *>(this), AllocSize, in Destroy()
/freebsd/lib/libmemstat/
H A Dmemstat.c129 memstat_mtl_find(struct memory_type_list *list, int allocator, in memstat_mtl_find() argument
135 if ((mtp->mt_allocator == allocator || in memstat_mtl_find()
136 allocator == ALLOCATOR_ANY) && in memstat_mtl_find()
150 _memstat_mt_allocate(struct memory_type_list *list, int allocator, in _memstat_mt_allocate() argument
161 mtp->mt_allocator = allocator; in _memstat_mt_allocate()
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_ddict.c172 ZSTD_customMem const allocator = { NULL, NULL, NULL }; in ZSTD_createDDict() local
173 return ZSTD_createDDict_advanced(dict, dictSize, ZSTD_dlm_byCopy, ZSTD_dct_auto, allocator); in ZSTD_createDDict()
182 ZSTD_customMem const allocator = { NULL, NULL, NULL }; in ZSTD_createDDict_byReference() local
183 … return ZSTD_createDDict_advanced(dictBuffer, dictSize, ZSTD_dlm_byRef, ZSTD_dct_auto, allocator); in ZSTD_createDDict_byReference()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_ddict.c172 ZSTD_customMem const allocator = { NULL, NULL, NULL }; in ZSTD_createDDict() local
173 return ZSTD_createDDict_advanced(dict, dictSize, ZSTD_dlm_byCopy, ZSTD_dct_auto, allocator); in ZSTD_createDDict()
182 ZSTD_customMem const allocator = { NULL, NULL, NULL }; in ZSTD_createDDict_byReference() local
183 … return ZSTD_createDDict_advanced(dictBuffer, dictSize, ZSTD_dlm_byRef, ZSTD_dct_auto, allocator); in ZSTD_createDDict_byReference()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dmetaslab.c1223 int flags, uint64_t psize, int allocator, int d) in metaslab_group_allocatable() argument
1253 metaslab_group_allocator_t *mga = &mg->mg_allocator[allocator]; in metaslab_group_allocatable()
1304 &mgp->mg_allocator[allocator]; in metaslab_group_allocatable()
1677 spa_set_allocator(spa_t *spa, const char *allocator) in spa_set_allocator() argument
1679 int a = spa_find_allocator_byname(allocator); in spa_set_allocator()
1715 int allocator = spa_get_allocator(spa); in metaslab_allocator() local
1716 return (&metaslab_allocators[allocator]); in metaslab_allocator()
3341 int allocator, uint64_t activation_weight) in metaslab_activate_allocator() argument
3343 metaslab_group_allocator_t *mga = &mg->mg_allocator[allocator]; in metaslab_activate_allocator()
3369 msp->ms_allocator = allocator; in metaslab_activate_allocator()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__pstl/backends/
H A Dlibdispatch.h138 std::allocator<__merge_range_t>().deallocate(__ptr, __n_ranges);
146 return std::allocator<__merge_range_t>().allocate(__n_ranges);
223 std::allocator<_Value>().deallocate(__ptr, __count);
229 std::allocator<_Value>().allocate(__partitions.__chunk_count_), __destroy);
273 std::allocator<_Value>().deallocate(__ptr, __size);
277 …unique_ptr<_Value[], decltype(__destroy)> __values(std::allocator<_Value>().allocate(__size), __de…

12345678