Home
last modified time | relevance | path

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

/bionic/linker/tests/
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_memory_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()
Dlinked_list_test.cpp46 static entry_t* alloc() { in alloc() function in __anon1f4d86ba0111::LinkedListTestAllocator
/bionic/linker/
Dlinker_block_allocator.h48 void* alloc();
84 T* alloc() { return reinterpret_cast<T*>(block_allocator_.alloc()); } in alloc() function
Dlinker_common_types.h47 static LinkedListEntry<soinfo>* alloc();
57 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()
Dlinker_allocator.cpp90 void* LinkerSmallObjectAllocator::alloc() { in alloc() function in LinkerSmallObjectAllocator
264 void* LinkerMemoryAllocator::alloc(size_t size) { in alloc() function in LinkerMemoryAllocator
280 return get_small_object_allocator(log2_size)->alloc(); in alloc()
294 return alloc(size); in realloc()
318 void *result = alloc(size); in realloc()
Dlinker_allocator.h117 void* alloc();
140 void* alloc(size_t size);
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.cpp59 void* LinkerBlockAllocator::alloc() { in alloc() function in LinkerBlockAllocator
/bionic/libc/kernel/uapi/drm/
Damdgpu_drm.h129 } alloc; member