Home
last modified time | relevance | path

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

/bionic/linker/tests/
Dlinker_allocator_test.cpp54 test_struct_nominal* ptr1 = allocator.alloc(); in TEST()
56 test_struct_nominal* ptr2 = allocator.alloc(); in TEST()
70 char* ptr1 = reinterpret_cast<char*>(allocator.alloc()); in TEST()
71 char* ptr2 = reinterpret_cast<char*>(allocator.alloc()); in TEST()
81 test_struct_larger* ptr1 = allocator.alloc(); in TEST()
82 test_struct_larger* ptr2 = allocator.alloc(); in TEST()
93 ASSERT_TRUE(allocator.alloc() != nullptr); in TEST()
96 test_struct_larger* ptr_to_free = allocator.alloc(); in TEST()
106 test_struct_larger* page1_ptr = allocator.alloc(); in protect_all()
109 allocator.alloc(); in protect_all()
[all …]
Dlinked_list_test.cpp34 static entry_t* alloc() { in alloc() function in __anon1f4d86ba0111::LinkedListTestAllocator
/bionic/linker/
Dlinker_allocator.h37 void* alloc();
63 T* alloc() { return reinterpret_cast<T*>(block_allocator_.alloc()); } in alloc() function
Dlinked_list.h40 LinkedListEntry<T>* new_entry = Allocator::alloc(); in push_front()
50 LinkedListEntry<T>* new_entry = Allocator::alloc(); in push_back()
Dlinker_allocator.cpp39 void* LinkerBlockAllocator::alloc() { in alloc() function in LinkerBlockAllocator
Dlinker.h107 static LinkedListEntry<soinfo>* alloc();
Dlinker.cpp272 LinkedListEntry<soinfo>* SoinfoListAllocator::alloc() { in alloc() function in SoinfoListAllocator
273 return g_soinfo_links_allocator.alloc(); in alloc()
291 soinfo* si = new (g_soinfo_allocator.alloc()) soinfo(name, file_stat, file_offset); in soinfo_alloc()
573 static void* alloc() { in alloc() function in SizeBasedAllocator
574 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()
613 LoadTask* ptr = TypeBasedAllocator<LoadTask>::alloc(); in create()