Home
last modified time | relevance | path

Searched refs:allocator (Results 1 – 4 of 4) sorted by relevance

/bionic/linker/tests/
Dlinker_block_allocator_test.cpp64 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()
[all …]
Dlinker_memory_allocator_test.cpp65 LinkerMemoryAllocator allocator; in TEST() local
66 void* ptr = allocator.alloc(0); in TEST()
68 allocator.free(ptr); in TEST()
72 LinkerMemoryAllocator allocator; in TEST() local
73 allocator.free(nullptr); in TEST()
77 LinkerMemoryAllocator allocator; in TEST() local
78 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 …]
/bionic/linker/
Dlinker_allocator.cpp309 LinkerSmallObjectAllocator* allocator = get_small_object_allocator(info->type); in realloc() local
310 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() local
338 if (allocator != info->allocator_addr) { in free()
342 allocator->free(ptr); in free()
/bionic/tests/
Dpthread_test.cpp1808 StrictAlignmentAllocator allocator; in TEST() local
1810 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()