Searched refs:allocator (Results 1 – 4 of 4) sorted by relevance
64 LinkerTypeAllocator<test_struct_nominal> allocator; in TEST() local66 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() local84 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() local97 test_struct_larger* ptr1 = allocator.alloc(); in TEST()[all …]
65 LinkerMemoryAllocator allocator; in TEST() local66 void* ptr = allocator.alloc(0); in TEST()68 allocator.free(ptr); in TEST()72 LinkerMemoryAllocator allocator; in TEST() local73 allocator.free(nullptr); in TEST()77 LinkerMemoryAllocator allocator; in TEST() local78 uint32_t* array = reinterpret_cast<uint32_t*>(allocator.alloc(512)); in TEST()92 uint32_t* reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 1024)); in TEST()103 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 62)); in TEST()107 reallocated_ptr = reinterpret_cast<uint32_t*>(allocator.realloc(array, 4000)); in TEST()[all …]
309 LinkerSmallObjectAllocator* allocator = get_small_object_allocator(info->type); in realloc() local310 if (allocator != info->allocator_addr) { in realloc()314 old_size = allocator->get_block_size(); in realloc()337 LinkerSmallObjectAllocator* allocator = get_small_object_allocator(info->type); in free() local338 if (allocator != info->allocator_addr) { in free()342 allocator->free(ptr); in free()
1808 StrictAlignmentAllocator allocator; in TEST() local1810 allocator.allocate(sizeof(pthread_mutex_t), 4)); in TEST()1817 allocator.allocate(sizeof(pthread_cond_t), 4)); in TEST()1824 allocator.allocate(sizeof(pthread_rwlock_t), 4)); in TEST()