Home
last modified time | relevance | path

Searched defs:TestAllocator (Results 1 – 2 of 2) sorted by relevance

/openbsd/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
H A Dcombined_test.cpp71 template <typename Config> struct TestAllocator : scudo::Allocator<Config> { struct
72 TestAllocator() { in TestAllocator() function
78 ~TestAllocator() { this->unmapTestOnly(); } in ~TestAllocator() argument
82 EXPECT_EQ(0, posix_memalign(&p, alignof(TestAllocator), size)); in operator new() argument
103 using AllocatorT = TestAllocator<TypeParam>; argument
H A Dprimary_test.cpp104 struct TestAllocator : public SizeClassAllocator<BaseConfig, SizeClassMapT> { struct
105 ~TestAllocator() { this->unmapTestOnly(); } in ~TestAllocator() argument
109 EXPECT_EQ(0, posix_memalign(&p, alignof(TestAllocator), size)); in operator new() argument
113 void operator delete(void *ptr) { free(ptr); } in operator delete()