Home
last modified time | relevance | path

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

/bionic/linker/tests/
Dlinker_block_allocator_test.cpp54 test_struct_nominal* ptr1 = allocator.alloc(); in TEST()
57 test_struct_nominal* ptr2 = allocator.alloc(); in TEST()
72 char* ptr1 = reinterpret_cast<char*>(allocator.alloc()); in TEST()
73 char* ptr2 = reinterpret_cast<char*>(allocator.alloc()); in TEST()
85 test_struct_larger* ptr1 = allocator.alloc(); in TEST()
86 test_struct_larger* ptr2 = allocator.alloc(); in TEST()
99 ASSERT_TRUE(allocator.alloc() != nullptr); in TEST()
102 test_struct_larger* ptr_to_free = allocator.alloc(); in TEST()
112 test_struct_larger* page1_ptr = allocator.alloc(); in protect_all()
115 allocator.alloc(); in protect_all()
[all …]
Dlinker_memory_allocator_test.cpp54 void* ptr = allocator.alloc(0); in TEST()
66 uint32_t* array = reinterpret_cast<uint32_t*>(allocator.alloc(512)); in TEST()
125 reinterpret_cast<test_struct_small*>(allocator.alloc(sizeof(test_struct_small))); in TEST()
127 reinterpret_cast<test_struct_small*>(allocator.alloc(sizeof(test_struct_small))); in TEST()
146 reinterpret_cast<test_struct_huge*>(allocator.alloc(sizeof(test_struct_huge))); in TEST()
148 reinterpret_cast<test_struct_huge*>(allocator.alloc(sizeof(test_struct_huge))); in TEST()
165 reinterpret_cast<test_struct_large*>(allocator.alloc(sizeof(test_struct_large))); in TEST()
167 reinterpret_cast<test_struct_large*>(allocator.alloc(1024)); in TEST()
182 reinterpret_cast<test_struct_large*>(allocator.alloc(sizeof(test_struct_large))); in TEST()
188 reinterpret_cast<test_struct_large*>(allocator.alloc(sizeof(test_struct_large))); in TEST()
Dlinked_list_test.cpp34 static entry_t* alloc() { in alloc() function in __anon1f4d86ba0111::LinkedListTestAllocator
/bionic/linker/
Dlinker_block_allocator.h37 void* alloc();
73 T* alloc() { return reinterpret_cast<T*>(block_allocator_.alloc()); } in alloc() function
Dlinker_memory.cpp24 return g_linker_allocator.alloc(byte_count); in malloc()
28 return g_linker_allocator.alloc(item_count*item_size); in calloc()
Dlinker_allocator.cpp75 void* LinkerSmallObjectAllocator::alloc() { in alloc() function in LinkerSmallObjectAllocator
249 void* LinkerMemoryAllocator::alloc(size_t size) { in alloc() function in LinkerMemoryAllocator
265 return get_small_object_allocator(log2_size)->alloc(); in alloc()
279 return alloc(size); in realloc()
303 void *result = alloc(size); in realloc()
Dlinker_allocator.h105 void* alloc();
128 void* alloc(size_t size);
Dlinked_list.h83 LinkedListEntry<T>* new_entry = Allocator::alloc(); in push_front()
93 LinkedListEntry<T>* new_entry = Allocator::alloc(); in push_back()
Dlinker_block_allocator.cpp47 void* LinkerBlockAllocator::alloc() { in alloc() function in LinkerBlockAllocator
Dlinker.h109 static LinkedListEntry<soinfo>* alloc();
119 static LinkedListEntry<android_namespace_t>* alloc();
Dlinker.cpp352 LinkedListEntry<soinfo>* SoinfoListAllocator::alloc() { in alloc() function in SoinfoListAllocator
353 return g_soinfo_links_allocator.alloc(); in alloc()
360 LinkedListEntry<android_namespace_t>* NamespaceListAllocator::alloc() { in alloc() function in NamespaceListAllocator
361 return g_namespace_list_allocator.alloc(); in alloc()
376 soinfo* si = new (g_soinfo_allocator.alloc()) soinfo(ns, name, file_stat, in soinfo_alloc()
1061 static void* alloc() { in alloc() function in SizeBasedAllocator
1062 return allocator_.alloc(); in alloc()
1079 static T* alloc() { in alloc() function in TypeBasedAllocator
1080 return reinterpret_cast<T*>(SizeBasedAllocator<sizeof(T)>::alloc()); in alloc()
1101 LoadTask* ptr = TypeBasedAllocator<LoadTask>::alloc(); in create()
[all …]
/bionic/libc/kernel/uapi/drm/
Damdgpu_drm.h130 } alloc; member