Lines Matching refs:allocator
64 LinkerTypeAllocator<test_struct_nominal> allocator; in TEST() local
66 test_struct_nominal* ptr1 = allocator.alloc(); in TEST()
69 test_struct_nominal* ptr2 = allocator.alloc(); in TEST()
77 allocator.free(ptr1); in TEST()
78 allocator.free(ptr2); in TEST()
82 LinkerTypeAllocator<test_struct_small> allocator; in TEST() local
84 char* ptr1 = reinterpret_cast<char*>(allocator.alloc()); in TEST()
85 char* ptr2 = reinterpret_cast<char*>(allocator.alloc()); in TEST()
95 LinkerTypeAllocator<test_struct_larger> allocator; in TEST() local
97 test_struct_larger* ptr1 = allocator.alloc(); in TEST()
98 test_struct_larger* ptr2 = allocator.alloc(); in TEST()
111 ASSERT_TRUE(allocator.alloc() != nullptr); in TEST()
114 test_struct_larger* ptr_to_free = allocator.alloc(); in TEST()
116 allocator.free(ptr1); in TEST()
120 LinkerTypeAllocator<test_struct_larger> allocator; in protect_all() local
124 test_struct_larger* page1_ptr = allocator.alloc(); in protect_all()
127 allocator.alloc(); in protect_all()
130 test_struct_larger* page2_ptr = allocator.alloc(); in protect_all()
131 allocator.protect_all(PROT_READ); in protect_all()
132 allocator.protect_all(PROT_READ | PROT_WRITE); in protect_all()
137 allocator.protect_all(PROT_READ); in protect_all()