| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator_local_cache.h | 28 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 D | sanitizer_symbolizer_posix_libcdep.cpp | 277 LowLevelAllocator *allocator) in Addr2LinePool() argument 278 : addr2line_path_(addr2line_path), allocator_(allocator) { in Addr2LinePool() 412 static SymbolizerTool *ChooseExternalSymbolizer(LowLevelAllocator *allocator) { in ChooseExternalSymbolizer() argument 429 return new (*allocator) LLVMSymbolizer(path, allocator); in ChooseExternalSymbolizer() 433 return new (*allocator) AtosSymbolizer(path, allocator); in ChooseExternalSymbolizer() 440 return new (*allocator) Addr2LinePool(path, allocator); in ChooseExternalSymbolizer() 461 return new (*allocator) AtosSymbolizer(found_path, allocator); in ChooseExternalSymbolizer() 466 return new (*allocator) LLVMSymbolizer(found_path, allocator); in ChooseExternalSymbolizer() 471 return new (*allocator) Addr2LinePool(found_path, allocator); in ChooseExternalSymbolizer() 479 LowLevelAllocator *allocator) { in ChooseSymbolizerTools() argument [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/__memory/ |
| H A D | allocator.h | 33 class allocator; variable 36 class _LIBCPP_TEMPLATE_VIS allocator<void> { 44 typedef allocator<_Up> other; 51 class _LIBCPP_TEMPLATE_VIS allocator<const void> { 59 typedef allocator<_Up> other; 90 class _LIBCPP_TEMPLATE_VIS allocator : private __non_trivial_if<!is_void<_Tp>::value, allocator<_Tp… 101 _LIBCPP_HIDE_FROM_ABI allocator() _NOEXCEPT = default; 104 _LIBCPP_HIDE_FROM_ABI allocator(const allocator<_Up>&) _NOEXCEPT {} 107 if (__n > allocator_traits<allocator>::max_size(*this)) 132 typedef allocator<_Up> other; [all …]
|
| /freebsd/contrib/xz/src/liblzma/common/ |
| H A D | common.c | 39 lzma_alloc(size_t size, const lzma_allocator *allocator) in lzma_alloc() argument 47 if (allocator != NULL && allocator->alloc != NULL) in lzma_alloc() 48 ptr = allocator->alloc(allocator->opaque, 1, size); in lzma_alloc() 58 lzma_alloc_zero(size_t size, const lzma_allocator *allocator) in lzma_alloc_zero() argument 66 if (allocator != NULL && allocator->alloc != NULL) { in lzma_alloc_zero() 67 ptr = allocator->alloc(allocator->opaque, 1, size); in lzma_alloc_zero() 79 lzma_free(void *ptr, const lzma_allocator *allocator) in lzma_free() argument 81 if (allocator != NULL && allocator->free != NULL) in lzma_free() 82 allocator->free(allocator->opaque, ptr); in lzma_free() 123 lzma_next_filter_init(lzma_next_coder *next, const lzma_allocator *allocator, in lzma_next_filter_init() argument [all …]
|
| H A D | stream_encoder_mt.c | 73 const lzma_allocator *allocator; member 245 thr->allocator, &thr->block_options); in worker_encode() 295 thr->block_encoder.coder, thr->allocator, in worker_encode() 432 lzma_filters_free(thr->filters, thr->allocator); in worker_start() 437 lzma_next_end(&thr->block_encoder, thr->allocator); in worker_start() 438 lzma_free(thr->in, thr->allocator); in worker_start() 474 threads_end(lzma_stream_coder *coder, const lzma_allocator *allocator) in threads_end() argument 489 lzma_free(coder->threads, allocator); in threads_end() 497 const lzma_allocator *allocator) in initialize_new_thread() argument 501 thr->in = lzma_alloc(coder->block_size, allocator); in initialize_new_thread() [all …]
|
| H A D | stream_decoder_mt.c | 65 const lzma_allocator *allocator; member 353 lzma_free(thr->in, thr->allocator); in worker_decoder() 354 lzma_next_end(&thr->block_decoder, thr->allocator); in worker_decoder() 394 thr->block_decoder.coder, thr->allocator, in worker_decoder() 454 lzma_free(thr->in, thr->allocator); in worker_decoder() 499 threads_end(struct lzma_stream_coder *coder, const lzma_allocator *allocator) in threads_end() argument 511 lzma_free(coder->threads, allocator); in threads_end() 550 const lzma_allocator *allocator) in initialize_new_thread() argument 559 allocator); in initialize_new_thread() 579 thr->allocator = allocator; in initialize_new_thread() [all …]
|
| H A D | index_decoder.c | 56 index_decode(void *coder_ptr, const lzma_allocator *allocator, in index_decode() argument 139 coder->index, allocator, in index_decode() 218 index_decoder_end(void *coder_ptr, const lzma_allocator *allocator) in index_decoder_end() argument 221 lzma_index_end(coder->index, allocator); in index_decoder_end() 222 lzma_free(coder, allocator); in index_decoder_end() 248 index_decoder_reset(lzma_index_coder *coder, const lzma_allocator *allocator, in index_decoder_reset() argument 259 coder->index = lzma_index_init(allocator); in index_decoder_reset() 275 lzma_index_decoder_init(lzma_next_coder *next, const lzma_allocator *allocator, in lzma_index_decoder_init() argument 278 lzma_next_coder_init(&lzma_index_decoder_init, next, allocator); in lzma_index_decoder_init() 285 coder = lzma_alloc(sizeof(lzma_index_coder), allocator); in lzma_index_decoder_init() [all …]
|
| H A D | stream_decoder.c | 86 stream_decoder_reset(lzma_stream_coder *coder, const lzma_allocator *allocator) in stream_decoder_reset() argument 89 coder->index_hash = lzma_index_hash_init(coder->index_hash, allocator); in stream_decoder_reset() 102 stream_decode(void *coder_ptr, const lzma_allocator *allocator, in stream_decode() argument 209 allocator, coder->buffer)); in stream_decode() 238 allocator, in stream_decode() 245 lzma_filters_free(filters, allocator); in stream_decode() 259 coder->block_decoder.coder, allocator, in stream_decode() 369 return_if_error(stream_decoder_reset(coder, allocator)); in stream_decode() 382 stream_decoder_end(void *coder_ptr, const lzma_allocator *allocator) in stream_decoder_end() argument 385 lzma_next_end(&coder->block_decoder, allocator); in stream_decoder_end() [all …]
|
| H A D | auto_decoder.c | 35 auto_decode(void *coder_ptr, const lzma_allocator *allocator, in auto_decode() argument 59 &coder->next, allocator, in auto_decode() 64 &coder->next, allocator, in auto_decode() 69 allocator, coder->memlimit, true)); in auto_decode() 86 coder->next.coder, allocator, in auto_decode() 114 auto_decoder_end(void *coder_ptr, const lzma_allocator *allocator) in auto_decoder_end() argument 117 lzma_next_end(&coder->next, allocator); in auto_decoder_end() 118 lzma_free(coder, allocator); in auto_decoder_end() 165 auto_decoder_init(lzma_next_coder *next, const lzma_allocator *allocator, in auto_decoder_init() argument 168 lzma_next_coder_init(&auto_decoder_init, next, allocator); in auto_decoder_init() [all …]
|
| H A D | block_encoder.c | 47 block_encode(void *coder_ptr, const lzma_allocator *allocator, in block_encode() argument 64 allocator, in, in_pos, in_size, in block_encode() 139 block_encoder_end(void *coder_ptr, const lzma_allocator *allocator) in block_encoder_end() argument 142 lzma_next_end(&coder->next, allocator); in block_encoder_end() 143 lzma_free(coder, allocator); in block_encoder_end() 149 block_encoder_update(void *coder_ptr, const lzma_allocator *allocator, in block_encoder_update() argument 159 &coder->next, allocator, reversed_filters); in block_encoder_update() 164 lzma_block_encoder_init(lzma_next_coder *next, const lzma_allocator *allocator, in lzma_block_encoder_init() argument 167 lzma_next_coder_init(&lzma_block_encoder_init, next, allocator); in lzma_block_encoder_init() 188 coder = lzma_alloc(sizeof(lzma_block_coder), allocator); in lzma_block_encoder_init() [all …]
|
| H A D | index.c | 194 index_tree_node_end(index_tree_node *node, const lzma_allocator *allocator, in index_tree_node_end() argument 195 void (*free_func)(void *node, const lzma_allocator *allocator)) in index_tree_node_end() 200 index_tree_node_end(node->left, allocator, free_func); in index_tree_node_end() 203 index_tree_node_end(node->right, allocator, free_func); in index_tree_node_end() 205 free_func(node, allocator); in index_tree_node_end() 215 index_tree_end(index_tree *tree, const lzma_allocator *allocator, in index_tree_end() argument 216 void (*free_func)(void *node, const lzma_allocator *allocator)) in index_tree_end() 221 index_tree_node_end(tree->root, allocator, free_func); in index_tree_end() 342 const lzma_allocator *allocator) in index_stream_init() argument 344 index_stream *s = lzma_alloc(sizeof(index_stream), allocator); in index_stream_init() [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__memory/ |
| H A D | allocator.h | 35 class allocator; variable 41 class allocator<void> { 49 typedef allocator<_Up> other; 80 class allocator : private __non_trivial_if<!is_void<_Tp>::value, allocator<_Tp> > { 93 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 allocator() _NOEXCEPT = default; 96 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 allocator(const allocator<_Up>&) _NOEXCEPT {} 100 if (__n > allocator_traits<allocator>::max_size(*this)) 133 typedef allocator<_Up> other; 162 operator==(const allocator<_Tp>&, const allocator<_Up>&) _NOEXCEPT { 169 inline _LIBCPP_HIDE_FROM_ABI bool operator!=(const allocator<_Tp>&, const allocator<_Up>&) _NOEXCEP…
|
| /freebsd/contrib/xz/src/liblzma/lz/ |
| H A D | lz_encoder.c | 80 fill_window(lzma_coder *coder, const lzma_allocator *allocator, in fill_window() argument 104 ret = coder->next.code(coder->next.coder, allocator, in fill_window() 159 lz_encode(void *coder_ptr, const lzma_allocator *allocator, in lz_encode() argument 172 return_if_error(fill_window(coder, allocator, in lz_encode() 192 lz_encoder_prepare(lzma_mf *mf, const lzma_allocator *allocator, in lz_encoder_prepare() argument 231 lzma_free(mf->buffer, allocator); in lz_encoder_prepare() 351 lzma_free(mf->hash, allocator); in lz_encoder_prepare() 354 lzma_free(mf->son, allocator); in lz_encoder_prepare() 372 lz_encoder_init(lzma_mf *mf, const lzma_allocator *allocator, in lz_encoder_init() argument 381 allocator); in lz_encoder_init() [all …]
|
| H A D | lz_decoder.c | 141 lz_decode(void *coder_ptr, const lzma_allocator *allocator, in lz_decode() argument 164 allocator, in, in_pos, in_size, in lz_decode() 201 lz_decoder_end(void *coder_ptr, const lzma_allocator *allocator) in lz_decoder_end() argument 205 lzma_next_end(&coder->next, allocator); in lz_decoder_end() 206 lzma_free(coder->dict.buf, allocator); in lz_decoder_end() 209 coder->lz.end(coder->lz.coder, allocator); in lz_decoder_end() 211 lzma_free(coder->lz.coder, allocator); in lz_decoder_end() 213 lzma_free(coder, allocator); in lz_decoder_end() 219 lzma_lz_decoder_init(lzma_next_coder *next, const lzma_allocator *allocator, in lzma_lz_decoder_init() argument 222 const lzma_allocator *allocator, in lzma_lz_decoder_init() [all …]
|
| /freebsd/sys/contrib/ck/src/ |
| H A D | ck_array.c | 35 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 D | hwasan_allocator.cpp | 28 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/nsan/ |
| H A D | nsan_allocator.cpp | 61 static Allocator allocator; variable 69 allocator.Init(common_flags()->allocator_release_to_os_interval_ms); in NsanAllocatorInit() 83 allocator.InitCache(GetAllocatorCache(this)); in Init() 87 allocator.SwallowCache(GetAllocatorCache(this)); in CommitBack() 88 allocator.DestroyCache(GetAllocatorCache(this)); in CommitBack() 114 allocated = allocator.Allocate(cache, size, alignment); in NsanAllocate() 118 allocated = allocator.Allocate(cache, size, alignment); in NsanAllocate() 128 auto *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in NsanAllocate() 130 if (zero && allocator.FromPrimary(allocated)) in NsanAllocate() 140 auto *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in NsanDeallocate() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cpp | 151 static Allocator allocator; variable 159 allocator.Init(common_flags()->allocator_release_to_os_interval_ms); in MsanAllocatorInit() 167 void __msan::LockAllocator() { allocator.ForceLock(); } in LockAllocator() 169 void __msan::UnlockAllocator() { allocator.ForceUnlock(); } in UnlockAllocator() 177 allocator.InitCache(GetAllocatorCache(this)); in Init() 181 allocator.SwallowCache(GetAllocatorCache(this)); in CommitBack() 182 allocator.DestroyCache(GetAllocatorCache(this)); in CommitBack() 205 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate() 209 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate() 218 auto *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/lsan/ |
| H A D | lsan_allocator.cpp | 37 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 D | dfsan_allocator.cpp | 67 static Allocator allocator; variable 76 allocator.Init(common_flags()->allocator_release_to_os_interval_ms); in dfsan_allocator_init() 91 allocator.SwallowCache(GetAllocatorCache(this)); in CommitBack() 114 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate() 118 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate() 128 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in DFsanAllocate() 141 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in dfsan_deallocate() 149 allocator.Deallocate(cache, p); in dfsan_deallocate() 153 allocator.Deallocate(cache, p); in dfsan_deallocate() 158 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(old_p)); in DFsanReallocate() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | BuildTree.cpp | 371 llvm::BumpPtrAllocator &allocator() { return Arena.getAllocator(); } in allocator() function in syntax::TreeBuilder 716 new (allocator()) syntax::UnknownDeclaration(), D); in VisitDecl() 760 syntax::Declaration *Result = new (allocator()) syntax::SimpleDeclaration; in handleFreeStandingTagDecl() 793 new (allocator()) syntax::CompoundStatement, S); in WalkUpFromCompoundStmt() 800 new (allocator()) syntax::UnknownStatement, S); in WalkUpFromStmt() 868 new (allocator()) syntax::UnknownExpression, E); in WalkUpFromExpr() 885 return new (allocator()) syntax::IntegerUserDefinedLiteralExpression; in buildUserDefinedLiteral() 887 return new (allocator()) syntax::FloatUserDefinedLiteralExpression; in buildUserDefinedLiteral() 889 return new (allocator()) syntax::CharUserDefinedLiteralExpression; in buildUserDefinedLiteral() 891 return new (allocator()) syntax::StringUserDefinedLiteralExpression; in buildUserDefinedLiteral() [all …]
|
| /freebsd/contrib/xz/src/liblzma/simple/ |
| H A D | arm.c | 49 arm_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, in arm_coder_init() argument 52 return lzma_simple_coder_init(next, allocator, filters, in arm_coder_init() 60 const lzma_allocator *allocator, in lzma_simple_arm_encoder_init() argument 63 return arm_coder_init(next, allocator, filters, true); in lzma_simple_arm_encoder_init() 71 const lzma_allocator *allocator, in lzma_simple_arm_decoder_init() argument 74 return arm_coder_init(next, allocator, filters, false); in lzma_simple_arm_decoder_init()
|
| H A D | armthumb.c | 57 armthumb_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, in armthumb_coder_init() argument 60 return lzma_simple_coder_init(next, allocator, filters, in armthumb_coder_init() 68 const lzma_allocator *allocator, in lzma_simple_armthumb_encoder_init() argument 71 return armthumb_coder_init(next, allocator, filters, true); in lzma_simple_armthumb_encoder_init() 79 const lzma_allocator *allocator, in lzma_simple_armthumb_decoder_init() argument 82 return armthumb_coder_init(next, allocator, filters, false); in lzma_simple_armthumb_decoder_init()
|
| H A D | powerpc.c | 54 powerpc_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, in powerpc_coder_init() argument 57 return lzma_simple_coder_init(next, allocator, filters, in powerpc_coder_init() 65 const lzma_allocator *allocator, in lzma_simple_powerpc_encoder_init() argument 68 return powerpc_coder_init(next, allocator, filters, true); in lzma_simple_powerpc_encoder_init() 76 const lzma_allocator *allocator, in lzma_simple_powerpc_decoder_init() argument 79 return powerpc_coder_init(next, allocator, filters, false); in lzma_simple_powerpc_decoder_init()
|
| H A D | sparc.c | 60 sparc_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, in sparc_coder_init() argument 63 return lzma_simple_coder_init(next, allocator, filters, in sparc_coder_init() 71 const lzma_allocator *allocator, in lzma_simple_sparc_encoder_init() argument 74 return sparc_coder_init(next, allocator, filters, true); in lzma_simple_sparc_encoder_init() 82 const lzma_allocator *allocator, in lzma_simple_sparc_decoder_init() argument 85 return sparc_coder_init(next, allocator, filters, false); in lzma_simple_sparc_decoder_init()
|