Lines Matching refs:Allocator
60 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()
86 EXPECT_TRUE(Allocator->isInitialized()); in TEST()
94 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in testRegistry() local
96 EXPECT_FALSE(Allocator->isInitialized()); in testRegistry()
98 auto Registry = Allocator->getTSDRegistry(); in testRegistry()
99 Registry->initThreadMaybe(Allocator.get(), /*MinimalInit=*/true); in testRegistry()
100 EXPECT_TRUE(Allocator->isInitialized()); in testRegistry()
109 Registry->initThreadMaybe(Allocator.get(), /*MinimalInit=*/false); in testRegistry()
130 template <typename AllocatorT> static void stressCache(AllocatorT *Allocator) { in stressCache() argument
131 auto Registry = Allocator->getTSDRegistry(); in stressCache()
137 Registry->initThreadMaybe(Allocator, /*MinimalInit=*/false); in stressCache()
162 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in testRegistryThreaded() local
166 Threads[I] = std::thread(stressCache<AllocatorT>, Allocator.get()); in testRegistryThreaded()
186 static void stressSharedRegistry(MockAllocator<SharedCaches> *Allocator) { in stressSharedRegistry() argument
188 auto Registry = Allocator->getTSDRegistry(); in stressSharedRegistry()
194 Registry->initThreadMaybe(Allocator, /*MinimalInit=*/false); in stressSharedRegistry()
217 std::unique_ptr<AllocatorT, decltype(Deleter)> Allocator(new AllocatorT, in TEST() local
225 Threads[I] = std::thread(stressSharedRegistry, Allocator.get()); in TEST()
237 auto Registry = Allocator->getTSDRegistry(); in TEST()
242 Threads[I] = std::thread(stressSharedRegistry, Allocator.get()); in TEST()