Searched defs:TestAllocator (Results 1 – 2 of 2) sorted by relevance
71 template <typename Config> struct TestAllocator : scudo::Allocator<Config> { struct72 TestAllocator() { in TestAllocator() function78 ~TestAllocator() { this->unmapTestOnly(); } in ~TestAllocator() argument82 EXPECT_EQ(0, posix_memalign(&p, alignof(TestAllocator), size)); in operator new() argument103 using AllocatorT = TestAllocator<TypeParam>; argument
104 struct TestAllocator : public SizeClassAllocator<BaseConfig, SizeClassMapT> { struct105 ~TestAllocator() { this->unmapTestOnly(); } in ~TestAllocator() argument109 EXPECT_EQ(0, posix_memalign(&p, alignof(TestAllocator), size)); in operator new() argument113 void operator delete(void *ptr) { free(ptr); } in operator delete()