| /openbsd-src/gnu/gcc/libstdc++-v3/include/bits/ |
| H A D | allocator.h | 60 class allocator; 64 class allocator<void> 75 { typedef allocator<_Tp1> other; }; 85 class allocator: public __glibcxx_base_allocator<_Tp> 98 { typedef allocator<_Tp1> other; }; 100 allocator() throw() { } in throw() 102 allocator(const allocator& __a) throw() in throw() 106 allocator(const allocator<_Tp1>&) throw() { } in allocator() function 108 ~allocator() throw() { } in throw() 115 operator==(const allocator<_T1>&, const allocator<_T2>&) [all …]
|
| /openbsd-src/gnu/llvm/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 | 271 LowLevelAllocator *allocator) in Addr2LinePool() argument 272 : addr2line_path_(addr2line_path), allocator_(allocator) { in Addr2LinePool() 410 static SymbolizerTool *ChooseExternalSymbolizer(LowLevelAllocator *allocator) { in ChooseExternalSymbolizer() argument 427 return new(*allocator) LLVMSymbolizer(path, allocator); in ChooseExternalSymbolizer() 431 return new(*allocator) AtosSymbolizer(path, allocator); in ChooseExternalSymbolizer() 438 return new(*allocator) Addr2LinePool(path, allocator); in ChooseExternalSymbolizer() 451 return new(*allocator) AtosSymbolizer(found_path, allocator); in ChooseExternalSymbolizer() 456 return new(*allocator) LLVMSymbolizer(found_path, allocator); in ChooseExternalSymbolizer() 461 return new(*allocator) Addr2LinePool(found_path, allocator); in ChooseExternalSymbolizer() 468 LowLevelAllocator *allocator) { in ChooseSymbolizerTools() argument [all …]
|
| /openbsd-src/gnu/llvm/libcxx/include/__memory/ |
| H A D | allocator.h | 31 template <class _Tp> class allocator; variable 37 class _LIBCPP_TEMPLATE_VIS allocator<void> 45 template <class _Up> struct _LIBCPP_DEPRECATED_IN_CXX17 rebind {typedef allocator<_Up> other;}; 50 class _LIBCPP_TEMPLATE_VIS allocator<const void> 58 template <class _Up> struct _LIBCPP_DEPRECATED_IN_CXX17 rebind {typedef allocator<_Up> other;}; 90 class _LIBCPP_TEMPLATE_VIS allocator 91 : private __non_trivial_if<!is_void<_Tp>::value, allocator<_Tp> > 102 allocator() _NOEXCEPT = default; 106 allocator(const allocator<_Up>&) _NOEXCEPT { } 110 if (__n > allocator_traits<allocator>::max_size(*this)) [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/hwasan/ |
| H A D | hwasan_allocator.cpp | 28 static Allocator allocator; variable 67 return allocator.GetActuallyAllocatedSize(reinterpret_cast<void *>(block_)); in ActualSize() 71 return allocator.FromPrimary(reinterpret_cast<void *>(block_)); in FromSmallHeap() 110 allocator.GetStats(s); in GetAllocatorStats() 142 allocator.Init(common_flags()->allocator_release_to_os_interval_ms, in HwasanAllocatorInit() 148 void HwasanAllocatorLock() { allocator.ForceLock(); } in HwasanAllocatorLock() 150 void HwasanAllocatorUnlock() { allocator.ForceUnlock(); } in HwasanAllocatorUnlock() 153 allocator.SwallowCache(cache); in AllocatorSwallowThreadLocalCache() 184 allocated = allocator.Allocate(t->allocator_cache(), size, alignment); in HwasanAllocate() 188 allocated = allocator.Allocate(cache, size, alignment); in HwasanAllocate() [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/opt/ |
| H A D | cfg3.C | 16 struct allocator struct 18 ~allocator() throw() {} in throw() argument 23 _Vector_alloc_base(const allocator& __a) {} in _Vector_alloc_base() 24 allocator _M_data_allocator; 31 _Vector_base(const allocator& __a) : _Vector_alloc_base(__a) { } in _Vector_base() 37 vector(const allocator& __a = allocator()) : _Vector_base(__a) {} in _Vector_base()
|
| H A D | noreturn-1.C | 11 template <typename _Alloc> class allocator; variable 15 typename _Alloc = allocator<_CharT> > 25 template<typename _Tp> struct allocator { struct 26 allocator() throw() { } in throw() argument 27 allocator(const allocator &) throw() {} in throw() argument
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/src/ |
| H A D | ext-inst.cc | 41 rope<char, std::allocator<char> >::_S_min_len; 45 rope<char, std::allocator<char> >:: 46 _S_fetch(_Rope_RopeRep<char, std::allocator<char> >*, size_type); 53 rope<wchar_t, std::allocator<wchar_t> >::_S_min_len; 57 rope<wchar_t, std::allocator<wchar_t> >:: 58 _S_fetch(_Rope_RopeRep<wchar_t, std::allocator<wchar_t> >*, size_type);
|
| H A D | string-inst.cc | 68 S::basic_string(C*, C*, const allocator<C>&); 71 S::basic_string(const C*, const C*, const allocator<C>&); 74 S::basic_string(S::iterator, S::iterator, const allocator<C>&); 77 S::basic_string(S::const_iterator, S::const_iterator, const allocator<C>&); 118 const allocator<C>&, forward_iterator_tag); 123 const allocator<C>&, forward_iterator_tag); 127 S::_S_construct(C*, C*, const allocator<C>&, forward_iterator_tag); 131 S::_S_construct(const C*, const C*, const allocator<C>&,
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_allocator_testlib.cpp | 55 static Allocator allocator; variable 66 allocator.SwallowCache(&cache); in thread_dtor() 81 allocator.PrintStats(); in ~AtExit() 91 allocator.Init(false /*may_return_null*/); in thread_init() 104 void *p = allocator.Allocate(&cache, size, 8); in malloc() 113 allocator.Deallocate(&cache, p); in free() 120 void *p = allocator.Allocate(&cache, size, 8, false); in calloc() 132 p = allocator.Reallocate(&cache, p, size, 8); in realloc() 143 void *p = allocator.Allocate(&cache, size, alignment); in memalign() 152 *memptr = allocator.Allocate(&cache, size, alignment); in posix_memalign() [all …]
|
| /openbsd-src/gnu/gcc/libstdc++-v3/src/ |
| H A D | ext-inst.cc | 46 rope<char, std::allocator<char> >::_S_min_len[min_len]; 50 rope<char, std::allocator<char> >:: 51 _S_fetch(_Rope_RopeRep<char, std::allocator<char> >*, size_type); 58 rope<wchar_t, std::allocator<wchar_t> >::_S_min_len[min_len]; 62 rope<wchar_t, std::allocator<wchar_t> >:: 63 _S_fetch(_Rope_RopeRep<wchar_t, std::allocator<wchar_t> >*, size_type);
|
| H A D | string-inst.cc | 58 S::basic_string(C*, C*, const allocator<C>&); 61 S::basic_string(const C*, const C*, const allocator<C>&); 64 S::basic_string(S::iterator, S::iterator, const allocator<C>&); 69 const allocator<C>&, forward_iterator_tag); 73 S::_S_construct(C*, C*, const allocator<C>&, forward_iterator_tag); 77 S::_S_construct(const C*, const C*, const allocator<C>&,
|
| /openbsd-src/gnu/llvm/clang/lib/Tooling/Syntax/ |
| H A D | BuildTree.cpp | 377 llvm::BumpPtrAllocator &allocator() { return Arena.getAllocator(); } in allocator() function in syntax::TreeBuilder 722 new (allocator()) syntax::UnknownDeclaration(), D); in VisitDecl() 765 syntax::Declaration *Result = new (allocator()) syntax::SimpleDeclaration; in handleFreeStandingTagDecl() 798 new (allocator()) syntax::CompoundStatement, S); in WalkUpFromCompoundStmt() 805 new (allocator()) syntax::UnknownStatement, S); in WalkUpFromStmt() 873 new (allocator()) syntax::UnknownExpression, E); in WalkUpFromExpr() 890 return new (allocator()) syntax::IntegerUserDefinedLiteralExpression; in buildUserDefinedLiteral() 892 return new (allocator()) syntax::FloatUserDefinedLiteralExpression; in buildUserDefinedLiteral() 894 return new (allocator()) syntax::CharUserDefinedLiteralExpression; in buildUserDefinedLiteral() 896 return new (allocator()) syntax::StringUserDefinedLiteralExpression; in buildUserDefinedLiteral() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/lsan/ |
| H A D | lsan_allocator.cpp | 37 static Allocator allocator; variable 43 allocator.InitLinkerInitialized( in InitializeAllocator() 53 allocator.SwallowCache(GetAllocatorCache()); in AllocatorThreadFinish() 57 return reinterpret_cast<ChunkMetadata *>(allocator.GetMetaData(p)); in Metadata() 96 void *p = allocator.Allocate(GetAllocatorCache(), size, alignment); in Allocate() 104 if (cleared && allocator.FromPrimary(p)) in Allocate() 124 allocator.Deallocate(GetAllocatorCache(), p); in Deallocate() 135 allocator.Reallocate(GetAllocatorCache(), p, new_size, alignment); in Reallocate() 244 allocator.ForceLock(); in LockAllocator() 248 allocator.ForceUnlock(); in UnlockAllocator() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/dfsan/ |
| H A D | dfsan_allocator.cpp | 58 static Allocator allocator; variable 66 allocator.Init(common_flags()->allocator_release_to_os_interval_ms); in dfsan_allocator_init() 81 allocator.SwallowCache(GetAllocatorCache(this)); in CommitBack() 104 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate() 108 allocated = allocator.Allocate(cache, size, alignment); in DFsanAllocate() 118 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in DFsanAllocate() 131 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in dfsan_deallocate() 139 allocator.Deallocate(cache, p); in dfsan_deallocate() 143 allocator.Deallocate(cache, p); in dfsan_deallocate() 148 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(old_p)); in DFsanReallocate() [all …]
|
| /openbsd-src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/ |
| H A D | list_update_policy.hpp | 64 template<typename Allocator = std::allocator<char> > 68 typedef Allocator allocator; typedef in pb_ds::move_to_front_lu_policy 74 typedef typename allocator::template rebind<metadata_type>::other metadata_rebind; 100 template<size_t Max_Count = 5, typename Allocator = std::allocator<char> > 105 typedef Allocator allocator; typedef in pb_ds::counter_lu_policy 112 typedef typename allocator::size_type size_type;
|
| H A D | priority_queue.hpp | 60 typename Allocator = std::allocator<char> > 71 typedef Allocator allocator; typedef in pb_ds::priority_queue 72 typedef typename allocator::size_type size_type; 73 typedef typename allocator::difference_type difference_type; 75 typedef typename allocator::template rebind<value_type>::other value_rebind;
|
| H A D | assoc_container.hpp | 74 typedef Allocator allocator; typedef in pb_ds::container_base 75 typedef typename allocator::size_type size_type; 76 typedef typename allocator::difference_type difference_type; 79 typedef typename allocator::template rebind<Key>::other::value_type key_type; 80 typedef typename allocator::template rebind<key_type>::other key_rebind; 88 typedef typename allocator::template rebind<mapped_type>::other mapped_rebind; 96 typedef typename allocator::template rebind<value_type>::other value_rebind; 169 typename Allocator = std::allocator<char> > 307 typename Allocator = std::allocator<char> > 499 typename Allocator = std::allocator<char> > [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cpp | 126 static Allocator allocator; variable 134 allocator.Init(common_flags()->allocator_release_to_os_interval_ms); in MsanAllocatorInit() 149 allocator.SwallowCache(GetAllocatorCache(this)); in CommitBack() 170 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate() 174 allocated = allocator.Allocate(cache, size, alignment); in MsanAllocate() 183 reinterpret_cast<Metadata *>(allocator.GetMetaData(allocated)); in MsanAllocate() 205 Metadata *meta = reinterpret_cast<Metadata *>(allocator.GetMetaData(p)); in MsanDeallocate() 221 allocator.Deallocate(cache, p); in MsanDeallocate() 225 allocator.Deallocate(cache, p); in MsanDeallocate() 231 Metadata *meta = reinterpret_cast<Metadata*>(allocator.GetMetaData(old_p)); in MsanReallocate() [all …]
|
| /openbsd-src/usr.sbin/nsd/ |
| H A D | Makefile.in | 79 ….o nsec3.o options.o packet.o query.o rbtree.o radtree.o rdata.o region-allocator.o rrl.o siphash.… 364 $(srcdir)/region-allocator.h 368 $(srcdir)/util.h $(srcdir)/nsd.h $(srcdir)/region-allocator.h \ 421 …$(srcdir)/dname.h $(srcdir)/buffer.h $(srcdir)/region-allocator.h $(srcdir)/util.h $(srcdir)/radtr… 424 …$(srcdir)/buffer.h $(srcdir)/region-allocator.h $(srcdir)/util.h $(srcdir)/bitset.h $(srcdir)/quer… 427 buffer.o: $(srcdir)/buffer.c config.h $(srcdir)/buffer.h $(srcdir)/region-allocator.h \ 430 $(srcdir)/region-allocator.h $(srcdir)/rbtree.h configparser.h 432 …$(srcdir)/region-allocator.h $(srcdir)/rbtree.h $(srcdir)/util.h $(srcdir)/dname.h $(srcdir)/buffe… 435 …$(srcdir)/buffer.h $(srcdir)/region-allocator.h $(srcdir)/util.h $(srcdir)/radtree.h $(srcdir)/rbt… 439 …$(srcdir)/region-allocator.h $(srcdir)/util.h $(srcdir)/dns.h $(srcdir)/radtree.h $(srcdir)/rbtree… [all …]
|
| H A D | region-allocator.c | 67 void *(*allocator)(size_t); member 89 alloc_region_base(void *(*allocator)(size_t size), in alloc_region_base() 93 region_type *result = (region_type *) allocator(sizeof(region_type)); in alloc_region_base() 109 result->allocator = allocator; in alloc_region_base() 115 result->cleanups = (cleanup_type *) allocator( in alloc_region_base() 128 region_create(void *(*allocator)(size_t size), in region_create() 131 region_type* result = alloc_region_base(allocator, deallocator, in region_create() 135 result->data = (char *) allocator(result->chunk_size); in region_create() 147 region_type *region_create_custom(void *(*allocator)(size_t), in region_create_custom() 154 region_type* result = alloc_region_base(allocator, deallocator, in region_create_custom() [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.pt/ |
| H A D | memclass4.C | 4 struct allocator { struct 8 typedef allocator<U> other; argument 20 typedef alloc_traits<int, allocator<void> >::allocator_type at; in main() 22 return typeid (at) != typeid (allocator <int>); in main()
|
| H A D | crash64.C | 9 template <class _Tp> class allocator {}; 18 struct _Alloc_traits<_Tp, allocator<_Tp1> > 24 bool y = _Alloc_traits<state, allocator<state> >::_S_instanceless;
|
| /openbsd-src/gnu/lib/libstdc++/libstdc++/include/bits/ |
| H A D | stl_alloc.h | 636 class allocator 650 { typedef allocator<_Tp1> other; }; 652 allocator() throw() {} in throw() 653 allocator(const allocator&) throw() {} in throw() 655 allocator(const allocator<_Tp1>&) throw() {} in allocator() function 656 ~allocator() throw() {} in throw() 693 class allocator<void> 704 { typedef allocator<_Tp1> other; }; 710 operator==(const allocator<_T1>&, const allocator<_T2>&) 715 operator!=(const allocator<_T1>&, const allocator<_T2>&) [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/memprof/ |
| H A D | memprof_allocator.cpp | 250 MemprofAllocator allocator; member 284 allocator.ForceLock(); in FinishAndWrite() 304 allocator.ForceUnlock(); in FinishAndWrite() 309 allocator.ForEachChunk( in InsertLiveBlocks() 329 allocator.InitLinkerInitialized( in InitLinkerInitialized() 381 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate() 385 allocated = allocator.Allocate(cache, needed_size, 8); in Allocate() 473 allocator.Deallocate(cache, alloc_beg); in Deallocate() 477 allocator.Deallocate(cache, alloc_beg); in Deallocate() 510 if (ptr && allocator.FromPrimary(ptr)) in Calloc() [all …]
|