Lines Matching defs:Primary
37 struct Primary {
56 struct Primary {
80 struct Primary {
105 struct Primary {
130 struct Primary {
211 using Primary = TestAllocator<TypeParam, scudo::DefaultSizeClassMap>;
212 std::unique_ptr<Primary> Allocator(new Primary);
214 typename Primary::CacheT Cache;
219 if (!Primary::canAllocate(Size))
221 const scudo::uptr ClassId = Primary::SizeClassMap::getClassIdBySize(Size);
244 struct Primary {
260 using Primary =
262 Primary Allocator;
264 typename Primary::CacheT Cache;
270 const scudo::uptr ClassId = Primary::SizeClassMap::LargestClassId;
271 const scudo::uptr Size = Primary::getSizeByClassId(ClassId);
272 const scudo::u16 MaxCachedBlockCount = Primary::CacheT::getMaxCached(Size);
299 using Primary = TestAllocator<TypeParam, scudo::DefaultSizeClassMap>;
300 std::unique_ptr<Primary> Allocator(new Primary);
302 typename Primary::CacheT Cache;
307 static_cast<scudo::uptr>(std::rand()) % Primary::SizeClassMap::MaxSize;
308 const scudo::uptr ClassId = Primary::SizeClassMap::getClassIdBySize(Size);
336 using Primary = TestAllocator<TypeParam, scudo::Config::Primary::SizeClassMap>;
337 std::unique_ptr<Primary> Allocator(new Primary);
345 static thread_local typename Primary::CacheT Cache;
355 Primary::SizeClassMap::MaxSize / 4;
357 Primary::SizeClassMap::getClassIdBySize(Size);
397 using Primary = TestAllocator<TypeParam, scudo::DefaultSizeClassMap>;
398 std::unique_ptr<Primary> Allocator(new Primary);
400 typename Primary::CacheT Cache;
403 EXPECT_TRUE(Primary::canAllocate(Size));
404 const scudo::uptr ClassId = Primary::SizeClassMap::getClassIdBySize(Size);
413 using Primary = TestAllocator<TypeParam, scudo::DefaultSizeClassMap>;
414 std::unique_ptr<Primary> Allocator(new Primary);
416 typename Primary::CacheT Cache;
419 const scudo::uptr ClassId = Primary::SizeClassMap::getClassIdBySize(Size);
429 const scudo::uptr GroupSizeMem = (1ULL << Primary::GroupSizeLog);