/bionic/linker/ |
D | linker_block_allocator_test.cpp | 71 Element* ptr1 = allocator.alloc(); in linker_allocator_test_helper() 75 Element* ptr2 = allocator.alloc(); in linker_allocator_test_helper() 111 ASSERT_TRUE(allocator.alloc() != nullptr); in TEST() 114 test_struct_larger* ptr_to_free = allocator.alloc(); in TEST() 123 test_struct_larger* page1_ptr = allocator.alloc(); in protect_all() 126 allocator.alloc(); in protect_all() 129 test_struct_larger* page2_ptr = allocator.alloc(); in protect_all()
|
D | linker_block_allocator.h | 52 void* alloc(); 92 T* alloc() { return reinterpret_cast<T*>(block_allocator_.alloc()); } in alloc() function
|
D | linker_common_types.h | 46 static LinkedListEntry<soinfo>* alloc(); 56 static LinkedListEntry<android_namespace_t>* alloc();
|
D | linker_memory.cpp | 72 return get_allocator().alloc(byte_count); in malloc() 84 return get_allocator().alloc(item_count*item_size); in calloc()
|
D | linked_list.h | 114 LinkedListEntry<T>* new_entry = Allocator::alloc(); in push_front() 125 LinkedListEntry<T>* new_entry = Allocator::alloc(); in push_back() 279 header_ = reinterpret_cast<LinkedListHeader*>(Allocator::alloc()); in alloc_header()
|
D | linker_block_allocator.cpp | 63 void* LinkerBlockAllocator::alloc() { in alloc() function in LinkerBlockAllocator
|
D | linker.cpp | 296 LinkedListEntry<soinfo>* SoinfoListAllocator::alloc() { in alloc() function in SoinfoListAllocator 297 return g_soinfo_links_allocator.alloc(); in alloc() 304 LinkedListEntry<android_namespace_t>* NamespaceListAllocator::alloc() { in alloc() function in NamespaceListAllocator 305 return g_namespace_list_allocator.alloc(); in alloc() 321 soinfo* si = new (g_soinfo_allocator.alloc()) soinfo(ns, name, file_stat, in soinfo_alloc() 493 static void* alloc() { in alloc() function in SizeBasedAllocator 494 return allocator_.alloc(); in alloc() 515 static T* alloc() { in alloc() function in TypeBasedAllocator 516 return reinterpret_cast<T*>(SizeBasedAllocator<sizeof(T)>::alloc()); in alloc() 543 LoadTask* ptr = TypeBasedAllocator<LoadTask>::alloc(); in create() [all …]
|
D | linked_list_test.cpp | 46 static entry_t* alloc() { in alloc() function in __anoned09faec0111::LinkedListTestAllocator
|
/bionic/tests/ |
D | bionic_allocator_test.cpp | 66 void* ptr = allocator.alloc(0); in TEST() 78 uint32_t* array = reinterpret_cast<uint32_t*>(allocator.alloc(512)); in TEST() 137 reinterpret_cast<test_struct_small*>(allocator.alloc(sizeof(test_struct_small))); in TEST() 139 reinterpret_cast<test_struct_small*>(allocator.alloc(sizeof(test_struct_small))); in TEST() 158 reinterpret_cast<test_struct_huge*>(allocator.alloc(sizeof(test_struct_huge))); in TEST() 160 reinterpret_cast<test_struct_huge*>(allocator.alloc(sizeof(test_struct_huge))); in TEST() 177 reinterpret_cast<test_struct_large*>(allocator.alloc(sizeof(test_struct_large))); in TEST() 179 reinterpret_cast<test_struct_large*>(allocator.alloc(1024)); in TEST() 194 reinterpret_cast<test_struct_large*>(allocator.alloc(sizeof(test_struct_large))); in TEST() 200 reinterpret_cast<test_struct_large*>(allocator.alloc(sizeof(test_struct_large))); in TEST() [all …]
|
D | malloc_iterate_test.cpp | 54 AllocDataType* alloc = &test_data->allocs.back(); in AllocPtr() local 57 alloc->ptr = ptr; in AllocPtr() 58 alloc->size = malloc_usable_size(ptr); in AllocPtr() 59 alloc->size_reported = 0; in AllocPtr() 60 alloc->count = 0; in AllocPtr()
|
D | malloc_test.cpp | 1457 for (void* alloc : allocs) { in TestHeapZeroing() local 1458 free(alloc); in TestHeapZeroing() 1468 for (void* alloc : allocs) { in TestHeapZeroing() local 1469 free(alloc); in TestHeapZeroing()
|
/bionic/libc/bionic/ |
D | bionic_allocator.cpp | 105 void* BionicSmallObjectAllocator::alloc() { in alloc() function in BionicSmallObjectAllocator 302 return get_small_object_allocator_unchecked(log2_size)->alloc(); in alloc_impl() 305 void* BionicAllocator::alloc(size_t size) { in alloc() function in BionicAllocator 342 return alloc(size); in realloc() 361 void *result = alloc(size); in realloc()
|
D | sys_thread_properties.cpp | 68 reinterpret_cast<CallbackHolder*>(allocator.alloc(sizeof(CallbackHolder))); in __libc_register_thread_exit_callback()
|
D | bionic_elf_tls.cpp | 322 TlsDtv* const new_dtv = static_cast<TlsDtv*>(allocator.alloc(dtv_size_in_bytes(new_cnt))); in update_tls_dtv()
|
/bionic/libc/private/ |
D | bionic_allocator.h | 81 void* alloc(); 103 void* alloc(size_t size);
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 2604 auto alloc = root->FirstChildElement(); in TEST_F() local 2605 ASSERT_TRUE(alloc != nullptr); in TEST_F() 2606 ASSERT_STREQ("allocation", alloc->Name()); in TEST_F() 2608 ASSERT_EQ(tinyxml2::XML_SUCCESS, alloc->QueryIntAttribute("nr", &val)); in TEST_F() 2610 ASSERT_EQ(tinyxml2::XML_SUCCESS, alloc->FirstChildElement("size")->QueryIntText(&val)); in TEST_F() 2612 ASSERT_EQ(tinyxml2::XML_SUCCESS, alloc->FirstChildElement("total")->QueryIntText(&val)); in TEST_F() 2615 alloc = alloc->NextSiblingElement(); in TEST_F() 2616 ASSERT_TRUE(alloc != nullptr); in TEST_F() 2617 ASSERT_STREQ("allocation", alloc->Name()); in TEST_F() 2618 ASSERT_EQ(tinyxml2::XML_SUCCESS, alloc->QueryIntAttribute("nr", &val)); in TEST_F() [all …]
|
/bionic/libc/kernel/uapi/drm/ |
D | amdgpu_drm.h | 142 } alloc; member
|
D | habanalabs_accel.h | 1103 } alloc; member
|
/bionic/libc/malloc_debug/ |
D | malloc_debug.cpp | 996 MallocXmlElem alloc(fd, "allocation", "nr=\"%zu\"", alloc_num); in debug_malloc_info() local
|