Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 16 of 16) sorted by relevance

/bionic/linker/
Dlinker_block_allocator_test.cpp66 test_struct_nominal* ptr1 = allocator.alloc(); in TEST()
69 test_struct_nominal* ptr2 = allocator.alloc(); in TEST()
84 char* ptr1 = reinterpret_cast<char*>(allocator.alloc()); in TEST()
85 char* ptr2 = reinterpret_cast<char*>(allocator.alloc()); in TEST()
97 test_struct_larger* ptr1 = allocator.alloc(); in TEST()
98 test_struct_larger* ptr2 = allocator.alloc(); in TEST()
111 ASSERT_TRUE(allocator.alloc() != nullptr); in TEST()
114 test_struct_larger* ptr_to_free = allocator.alloc(); in TEST()
124 test_struct_larger* page1_ptr = allocator.alloc(); in protect_all()
127 allocator.alloc(); in protect_all()
[all …]
Dlinker_block_allocator.h49 void* alloc();
89 T* alloc() { return reinterpret_cast<T*>(block_allocator_.alloc()); } in alloc() function
Dlinker_common_types.h49 static LinkedListEntry<soinfo>* alloc();
59 static LinkedListEntry<android_namespace_t>* alloc();
Dlinker_memory.cpp72 return get_allocator().alloc(byte_count); in malloc()
76 return get_allocator().alloc(item_count*item_size); in calloc()
Dlinked_list.h94 LinkedListEntry<T>* new_entry = Allocator::alloc(); in push_front()
104 LinkedListEntry<T>* new_entry = Allocator::alloc(); in push_back()
Dlinker_block_allocator.cpp62 void* LinkerBlockAllocator::alloc() { in alloc() function in LinkerBlockAllocator
Dlinked_list_test.cpp46 static entry_t* alloc() { in alloc() function in __anonb9afa2e10111::LinkedListTestAllocator
Dlinker.cpp317 LinkedListEntry<soinfo>* SoinfoListAllocator::alloc() { in alloc() function in SoinfoListAllocator
318 return g_soinfo_links_allocator.alloc(); in alloc()
325 LinkedListEntry<android_namespace_t>* NamespaceListAllocator::alloc() { in alloc() function in NamespaceListAllocator
326 return g_namespace_list_allocator.alloc(); in alloc()
342 soinfo* si = new (g_soinfo_allocator.alloc()) soinfo(ns, name, file_stat, in soinfo_alloc()
569 static void* alloc() { in alloc() function in SizeBasedAllocator
570 return allocator_.alloc(); in alloc()
591 static T* alloc() { in alloc() function in TypeBasedAllocator
592 return reinterpret_cast<T*>(SizeBasedAllocator<sizeof(T)>::alloc()); in alloc()
619 LoadTask* ptr = TypeBasedAllocator<LoadTask>::alloc(); in create()
[all …]
/bionic/tests/
Dbionic_allocator_test.cpp66 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 …]
Dmalloc_iterate_test.cpp50 AllocDataType* alloc = &test_data->allocs.back(); in AllocPtr() local
53 alloc->ptr = ptr; in AllocPtr()
54 alloc->size = malloc_usable_size(ptr); in AllocPtr()
55 alloc->size_reported = 0; in AllocPtr()
56 alloc->count = 0; in AllocPtr()
/bionic/libc/private/
Dbionic_allocator.h85 void* alloc();
107 void* alloc(size_t size);
/bionic/libc/bionic/
Dbionic_allocator.cpp107 void* BionicSmallObjectAllocator::alloc() { in alloc() function in BionicSmallObjectAllocator
306 return get_small_object_allocator(log2_size)->alloc(); in alloc_impl()
309 void* BionicAllocator::alloc(size_t size) { in alloc() function in BionicAllocator
345 return alloc(size); in realloc()
369 void *result = alloc(size); in realloc()
Dbionic_elf_tls.cpp247 TlsDtv* const new_dtv = static_cast<TlsDtv*>(allocator.alloc(dtv_size_in_bytes(new_cnt))); in update_tls_dtv()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp2520 auto alloc = root->FirstChildElement(); in TEST_F() local
2521 ASSERT_TRUE(alloc != nullptr); in TEST_F()
2522 ASSERT_STREQ("allocation", alloc->Name()); in TEST_F()
2524 ASSERT_EQ(tinyxml2::XML_SUCCESS, alloc->QueryIntAttribute("nr", &val)); in TEST_F()
2526 ASSERT_EQ(tinyxml2::XML_SUCCESS, alloc->FirstChildElement("size")->QueryIntText(&val)); in TEST_F()
2528 ASSERT_EQ(tinyxml2::XML_SUCCESS, alloc->FirstChildElement("total")->QueryIntText(&val)); in TEST_F()
2531 alloc = alloc->NextSiblingElement(); in TEST_F()
2532 ASSERT_TRUE(alloc != nullptr); in TEST_F()
2533 ASSERT_STREQ("allocation", alloc->Name()); in TEST_F()
2534 ASSERT_EQ(tinyxml2::XML_SUCCESS, alloc->QueryIntAttribute("nr", &val)); in TEST_F()
[all …]
/bionic/libc/kernel/uapi/drm/
Damdgpu_drm.h136 } alloc; member
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp790 MallocXmlElem alloc(fp, "allocation", "nr=\"%zu\"", alloc_num); in debug_malloc_info() local