Home
last modified time | relevance | path

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

12345678910>>...16

/openbsd/src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
Dcombined_test.cpp48 void checkMemoryTaggingMaybe(AllocatorT *Allocator, void *P, scudo::uptr Size, in checkMemoryTaggingMaybe() argument
52 if (Allocator->useMemoryTaggingTestOnly()) in checkMemoryTaggingMaybe()
60 ? Allocator->useMemoryTaggingTestOnly() in checkMemoryTaggingMaybe()
71 template <typename Config> struct TestAllocator : scudo::Allocator<Config> {
92 Allocator = std::make_unique<AllocatorT>(); in ScudoCombinedTest()
95 Allocator->releaseToOS(); in ~ScudoCombinedTest()
104 std::unique_ptr<AllocatorT> Allocator; member
133 auto *Allocator = this->Allocator.get(); in SCUDO_TYPED_TEST() local
136 Allocator->isOwned(&StaticBuffer[scudo::Chunk::getHeaderSize()])); in SCUDO_TYPED_TEST()
141 EXPECT_FALSE(Allocator->isOwned(&StackBuffer[scudo::Chunk::getHeaderSize()])); in SCUDO_TYPED_TEST()
[all …]
Dtsd_test.cpp60 template <class Allocator>
61 using TSDRegistryT = scudo::TSDRegistrySharedT<Allocator, 1U, 1U>;
65 template <class Allocator>
66 using TSDRegistryT = scudo::TSDRegistrySharedT<Allocator, 16U, 8U>;
70 template <class Allocator>
71 using TSDRegistryT = scudo::TSDRegistryExT<Allocator>;
80 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in TEST() local
82 EXPECT_FALSE(Allocator->isInitialized()); in TEST()
84 auto Registry = Allocator->getTSDRegistry(); in TEST()
85 Registry->init(Allocator.get()); in TEST()
[all …]
Dsecondary_test.cpp111 void SetUp() override { Allocator->init(nullptr); } in SetUp()
113 void TearDown() override { Allocator->unmapTestOnly(); } in TearDown()
115 std::unique_ptr<LargeAllocator> Allocator = member
137 void *P = Allocator->allocate(Options, Size, Align); in TEST_F()
142 Allocator->deallocate(Options, P); in TEST_F()
147 Allocator->getStats(&Str); in TEST_F()
155 V.push_back(Allocator->allocate(Options, (std::rand() % 16) * PageSize)); in TEST_F()
160 Allocator->disable(); in TEST_F()
161 Allocator->iterateOverBlocks(Lambda); in TEST_F()
162 Allocator->enable(); in TEST_F()
[all …]
Dprimary_test.cpp144 std::unique_ptr<Primary> Allocator(new Primary); in SCUDO_TYPED_TEST() local
145 Allocator->init(/*ReleaseToOsInterval=*/-1); in SCUDO_TYPED_TEST()
147 Cache.init(nullptr, Allocator.get()); in SCUDO_TYPED_TEST()
164 Allocator->releaseToOS(); in SCUDO_TYPED_TEST()
166 Allocator->getStats(&Str); in SCUDO_TYPED_TEST()
188 Primary Allocator; in TEST() local
189 Allocator.init(/*ReleaseToOsInterval=*/-1); in TEST()
193 Cache.init(&Stats, &Allocator); in TEST()
201 TransferBatch *B = Allocator.popBatch(&Cache, ClassId); in TEST()
207 memset(Allocator.decompactPtr(ClassId, B->get(J)), 'B', Size); in TEST()
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/
Dtraits.hpp71 class Allocator>
78 Allocator>
81 typedef types_traits< Key, Mapped, Allocator, false> type_traits;
90 Allocator>::type
107 Allocator>
115 Allocator>
123 Allocator>
131 Allocator>
142 Allocator>
153 Allocator>
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/bin_search_tree_/
Dtraits.hpp64 class Allocator>
67 class Allocator>
75 Allocator,
84 typename Allocator::template rebind<
92 Allocator>
97 typename Allocator::template rebind<
105 Allocator>
110 typename Allocator::template rebind<
118 Allocator>
123 typename Allocator::template rebind<
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/
Dpriority_queue_base_dispatch.hpp61 template<typename Value_Type, typename Cmp_Fn, typename Tag, typename Allocator>
64 template<typename Value_Type, typename Cmp_Fn, typename Allocator>
65 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, pairing_heap_tag, Allocator>
67 typedef pairing_heap_< Value_Type, Cmp_Fn, Allocator> type;
70 template<typename Value_Type, typename Cmp_Fn, typename Allocator>
71 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, binomial_heap_tag, Allocator>
73 typedef binomial_heap_< Value_Type, Cmp_Fn, Allocator> type;
76 template<typename Value_Type, typename Cmp_Fn, typename Allocator>
77 struct priority_queue_base_dispatch<Value_Type, Cmp_Fn, rc_binomial_heap_tag, Allocator>
79 typedef rc_binomial_heap_< Value_Type, Cmp_Fn, Allocator> type;
[all …]
Dbasic_types.hpp59 template<typename Key, typename Mapped, typename Allocator, bool Store_Hash>
66 template<typename Key, typename Mapped, typename Allocator>
67 struct value_type_base<Key, Mapped, Allocator, false>
69 typedef typename Allocator::template rebind<Mapped>::other mapped_type_allocator;
76 …typedef typename Allocator::template rebind<std::pair<const Key, Mapped> >::other value_type_alloc…
93 template<typename Key, typename Mapped, typename Allocator>
94 struct value_type_base<Key, Mapped, Allocator, true>
96 typedef typename Allocator::template rebind<Mapped>::other mapped_type_allocator;
103 …typedef typename Allocator::template rebind<std::pair<const Key, Mapped> >::other value_type_alloc…
113 typename Allocator::size_type m_hash;
[all …]
/openbsd/src/gnu/llvm/compiler-rt/lib/scudo/standalone/
Dtsd_exclusive.h25 template <class Allocator> void teardownThread(void *Ptr);
27 template <class Allocator> struct TSDRegistryExT {
28 void init(Allocator *Instance) { in init()
31 CHECK_EQ(pthread_key_create(&PThreadKey, teardownThread<Allocator>), 0); in init()
36 void initOnceMaybe(Allocator *Instance) { in initOnceMaybe()
43 void unmapTestOnly(Allocator *Instance) { in unmapTestOnly()
45 if (reinterpret_cast<Allocator *>(pthread_getspecific(PThreadKey))) { in unmapTestOnly()
46 DCHECK_EQ(reinterpret_cast<Allocator *>(pthread_getspecific(PThreadKey)), in unmapTestOnly()
59 ALWAYS_INLINE void initThreadMaybe(Allocator *Instance, bool MinimalInit) { in initThreadMaybe()
65 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) { in getTSDAndLock()
[all …]
Dwrappers_cpp.cpp25 return Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new()
28 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray); in operator new[]()
32 return Allocator.allocate(size, scudo::Chunk::Origin::New); in operator new()
36 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray); in operator new[]()
39 return Allocator.allocate(size, scudo::Chunk::Origin::New, in operator new()
43 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator new[]()
48 return Allocator.allocate(size, scudo::Chunk::Origin::New, in operator new()
53 return Allocator.allocate(size, scudo::Chunk::Origin::NewArray, in operator new[]()
58 Allocator.deallocate(ptr, scudo::Chunk::Origin::New); in operator delete()
61 Allocator.deallocate(ptr, scudo::Chunk::Origin::NewArray); in operator delete[]()
[all …]
Dwrappers_c_bionic.cpp23 #define SCUDO_ALLOCATOR Allocator
27 static scudo::Allocator<scudo::AndroidConfig, SCUDO_PREFIX(malloc_postinit)>
41 static scudo::Allocator<scudo::AndroidSvelteConfig,
51 INTERFACE void __scudo_print_stats(void) { Allocator.printStats(); } in __scudo_print_stats()
59 Allocator.getErrorInfo(error_info, fault_addr, stack_depot, region_info, in __scudo_get_error_info()
65 return Allocator.getStackDepotAddress(); in __scudo_get_stack_depot_addr()
73 return Allocator.getRegionInfoArrayAddress(); in __scudo_get_region_info_addr()
77 return Allocator.getRegionInfoArraySize(); in __scudo_get_region_info_size()
81 return Allocator.getRingBufferAddress(); in __scudo_get_ring_buffer_addr()
85 return Allocator.getRingBufferSize(); in __scudo_get_ring_buffer_size()
Dtsd_shared.h25 template <class Allocator, u32 TSDsArraySize, u32 DefaultTSDCount>
27 void init(Allocator *Instance) { in init()
38 void initOnceMaybe(Allocator *Instance) { in initOnceMaybe()
45 void unmapTestOnly(Allocator *Instance) { in unmapTestOnly()
54 ALWAYS_INLINE void initThreadMaybe(Allocator *Instance, in initThreadMaybe()
61 ALWAYS_INLINE TSD<Allocator> *getTSDAndLock(bool *UnlockRequired) { in getTSDAndLock()
62 TSD<Allocator> *TSD = getCurrentTSD(); in getTSDAndLock()
111 static_assert(alignof(TSD<Allocator>) >= 2, "");
113 ALWAYS_INLINE void setCurrentTSD(TSD<Allocator> *CurrentTSD) { in setCurrentTSD()
118 ALWAYS_INLINE TSD<Allocator> *getCurrentTSD() { in getCurrentTSD()
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/ov_tree_map_/
Dtraits.hpp65 class Allocator>
72 Allocator>
79 Allocator,
90 Allocator>::type
97 Allocator>
104 Allocator>
112 Allocator>
120 Allocator>*
131 class Allocator>
138 Allocator>
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/splay_tree_/
Dtraits.hpp65 class Allocator>
72 Allocator> : public bin_search_tree_traits<
81 Allocator,
88 Allocator>::type,
89 Allocator>,
90 Allocator>
100 class Allocator>
102 splay_tree_tag, Allocator>
105 splay_tree_node_<typename types_traits<Key, null_mapped_type, Allocator, false>::value_type,
111 Allocator>::type,
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/rb_tree_map_/
Dtraits.hpp64 typename Allocator>
71 Allocator> : public bin_search_tree_traits<
80 Allocator,
87 Allocator>::type,
88 Allocator>,
89 Allocator>
99 class Allocator>
106 Allocator> : public bin_search_tree_traits<
115 Allocator,
122 Allocator>::type,
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/left_child_next_sibling_heap_/
Dleft_child_next_sibling_heap_.hpp76 class Allocator, \
84 class Allocator>
93 Allocator, \
101 Allocator>
111 class Allocator,
117 class Allocator>
124 typename Allocator::template rebind<
128 Allocator> >::other
142 typedef cond_dealtor< node, Allocator> cond_dealtor_t;
153 typedef typename Allocator::size_type size_type;
[all …]
Dnode.hpp57 template<typename Value_Type, typename Metadata_Type, class Allocator>
65 Allocator>
69 typedef typename Allocator::size_type size_type;
72 typename Allocator::template rebind<
92 template<typename Value_Type, class Allocator>
96 Allocator>
103 Allocator>
107 typedef typename Allocator::size_type size_type;
110 typename Allocator::template rebind<
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/binomial_heap_base_/
Dbinomial_heap_base_.hpp68 template<typename Value_Type, class Cmp_Fn, class Allocator>
71 binomial_heap_base_<Value_Type, Cmp_Fn, Allocator>
76 typename Allocator::size_type, \
77 Allocator, false>
81 typename Allocator::size_type, Allocator>
87 template<typename Value_Type, class Cmp_Fn, class Allocator>
103 typedef typename Allocator::size_type size_type;
105 typedef typename Allocator::difference_type difference_type;
110 typename Allocator::template rebind<
115 typename Allocator::template rebind<
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/
Dlist_update_policy.hpp59 #define PB_DS_CLASS_T_DEC template<typename Allocator>
60 #define PB_DS_CLASS_C_DEC move_to_front_lu_policy<Allocator>
64 template<typename Allocator = std::allocator<char> >
68 typedef Allocator allocator;
95 #define PB_DS_CLASS_T_DEC template<size_t Max_Count, class Allocator>
96 #define PB_DS_CLASS_C_DEC counter_lu_policy<Max_Count, Allocator>
100 template<size_t Max_Count = 5, typename Allocator = std::allocator<char> >
102 : private detail::counter_lu_policy_base<typename Allocator::size_type>
105 typedef Allocator allocator;
118 typedef typename Allocator::template rebind<metadata_type>::other metadata_rebind;
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/hash_fn/
Dranged_hash_fn.hpp59 template<typename Key, typename Hash_Fn, typename Allocator,
64 template<typename Key, typename Hash_Fn, typename Allocator, \
68 ranged_hash_fn<Key, Hash_Fn, Allocator, Comb_Hash_Fn, false>
75 template<typename Key, typename Hash_Fn, typename Allocator,
77 class ranged_hash_fn< Key, Hash_Fn, Allocator, Comb_Hash_Fn, false>
81 typedef typename Allocator::size_type size_type;
84 typedef typename Allocator::template rebind< Key>::other key_allocator;
146 template<typename Key, typename Hash_Fn, typename Allocator, \
150 ranged_hash_fn<Key,Hash_Fn, Allocator, Comb_Hash_Fn, true>
157 template<typename Key, typename Hash_Fn, typename Allocator,
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/
Dbinary_heap_.hpp75 template<typename Value_Type, class Cmp_Fn, class Allocator>
78 binary_heap_<Value_Type, Cmp_Fn, Allocator>
81 entry_cmp<Value_Type, Cmp_Fn, is_simple<Value_Type>::value, Allocator>::type
84 resize_policy<typename Allocator::size_type>
89 template<typename Value_Type, class Cmp_Fn, class Allocator>
103 typename Allocator::template rebind<
115 typename Allocator::template rebind<
128 Allocator>
133 typedef typename Allocator::size_type size_type;
135 typedef typename Allocator::difference_type difference_type;
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/basic_tree_policy/
Dbasic_tree_policy_base.hpp59 Allocator>
63 typename Allocator>
74 typename Allocator::template rebind<
80 typename Allocator::template rebind<
86 typename Allocator::template rebind<
92 typename Allocator::template rebind<
117 template<typename Const_Node_Iterator, typename Allocator>
121 Allocator>
131 typename Allocator::template rebind<
137 typename Allocator::template rebind<
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/thin_heap_/
Dthin_heap_.hpp68 template<typename Value_Type, class Cmp_Fn, class Allocator>
71 thin_heap_<Value_Type, Cmp_Fn, Allocator>
76 typename Allocator::size_type, Allocator, true>
80 typename Allocator::size_type, Allocator>
86 template<typename Value_Type, class Cmp_Fn, class Allocator>
102 typedef typename Allocator::size_type size_type;
104 typedef typename Allocator::difference_type difference_type;
109 typename Allocator::template rebind<
114 typename Allocator::template rebind<
119 typename Allocator::template rebind<
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/pairing_heap_/
Dpairing_heap_.hpp66 template<typename Value_Type, class Cmp_Fn, class Allocator>
69 pairing_heap_<Value_Type, Cmp_Fn, Allocator>
77 Allocator, \
85 Allocator>
91 template<typename Value_Type, class Cmp_Fn, class Allocator>
102 typedef typename Allocator::size_type size_type;
104 typedef typename Allocator::difference_type difference_type;
109 typename Allocator::template rebind<
114 typename Allocator::template rebind<
119 typename Allocator::template rebind<
[all …]
/openbsd/src/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/eq_fn/
Dhash_eq_fn.hpp58 template<typename Key, class Eq_Fn, class Allocator, bool Store_Hash>
62 template<typename Key, class Eq_Fn, class Allocator>
65 hash_eq_fn<Key, Eq_Fn, Allocator, false>
70 template<typename Key, class Eq_Fn, class Allocator>
71 struct hash_eq_fn<Key, Eq_Fn, Allocator, false> : public Eq_Fn
75 typedef typename Allocator::template rebind<Key>::other key_allocator;
117 template<typename Key, class Eq_Fn, class Allocator>
120 hash_eq_fn<Key, Eq_Fn, Allocator, true>
125 template<typename Key, class Eq_Fn, class Allocator>
126 struct hash_eq_fn<Key, Eq_Fn, Allocator, true> :
[all …]

12345678910>>...16