Home
last modified time | relevance | path

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

/bionic/tests/
Dbionic_allocator_test.cpp65 BionicAllocator allocator; in TEST() local
66 void* ptr = allocator.alloc(0); in TEST()
68 allocator.free(ptr); in TEST()
72 BionicAllocator allocator; in TEST() local
73 allocator.free(nullptr); in TEST()
77 BionicAllocator 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 …]
Dpthread_test.cpp2285 StrictAlignmentAllocator allocator; in TEST() local
2287 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()
DAndroid.bp684 // The Bionic allocator has its own C++ API. It isn't packaged into its
/bionic/linker/
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 …]
/bionic/libc/bionic/
Dbionic_elf_tls.cpp228 BionicAllocator& allocator = __libc_shared_globals()->tls_allocator; in update_tls_dtv() local
247 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() local
354 allocator.free(dtv->modules[i]); in __free_dynamic_tls()
360 allocator.free(dtv); in __free_dynamic_tls()
Dbionic_allocator.cpp360 BionicSmallObjectAllocator* allocator = get_small_object_allocator(info->type); in realloc() local
361 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() local
389 if (allocator != info->allocator_addr) { in free()
393 allocator->free(ptr); in free()
/bionic/libc/
DAndroid.bp2429 // allocator. To use it, add it as the first shared library.