Searched refs:allocator (Results 1 – 7 of 7) sorted by relevance
65 BionicAllocator allocator; in TEST() local66 void* ptr = allocator.alloc(0); in TEST()68 allocator.free(ptr); in TEST()72 BionicAllocator allocator; in TEST() local73 allocator.free(nullptr); in TEST()77 BionicAllocator 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 …]
2285 StrictAlignmentAllocator allocator; in TEST() local2287 allocator.allocate(sizeof(pthread_mutex_t), 4)); in TEST()2294 allocator.allocate(sizeof(pthread_cond_t), 4)); in TEST()2301 allocator.allocate(sizeof(pthread_rwlock_t), 4)); in TEST()
684 // The Bionic allocator has its own C++ API. It isn't packaged into its
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 …]
228 BionicAllocator& allocator = __libc_shared_globals()->tls_allocator; in update_tls_dtv() local247 TlsDtv* const new_dtv = static_cast<TlsDtv*>(allocator.alloc(dtv_size_in_bytes(new_cnt))); in update_tls_dtv()272 allocator.free(dtv->modules[i]); in update_tls_dtv()336 BionicAllocator& allocator = __libc_shared_globals()->tls_allocator; in __free_dynamic_tls() local354 allocator.free(dtv->modules[i]); in __free_dynamic_tls()360 allocator.free(dtv); in __free_dynamic_tls()
360 BionicSmallObjectAllocator* allocator = get_small_object_allocator(info->type); in realloc() local361 if (allocator != info->allocator_addr) { in realloc()365 old_size = allocator->get_block_size(); in realloc()388 BionicSmallObjectAllocator* allocator = get_small_object_allocator(info->type); in free() local389 if (allocator != info->allocator_addr) { in free()393 allocator->free(ptr); in free()
2429 // allocator. To use it, add it as the first shared library.