Home
last modified time | relevance | path

Searched refs:BionicSmallObjectAllocator (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/private/
Dbionic_allocator.h39 class BionicSmallObjectAllocator; variable
50 BionicSmallObjectAllocator* allocator_addr;
78 class BionicSmallObjectAllocator {
80 BionicSmallObjectAllocator(uint32_t type, size_t block_size);
119 BionicSmallObjectAllocator* get_small_object_allocator_unchecked(uint32_t type);
120 BionicSmallObjectAllocator* get_small_object_allocator(page_info* pi, void* ptr);
123 BionicSmallObjectAllocator* allocators_;
124 uint8_t allocators_buf_[sizeof(BionicSmallObjectAllocator)*kSmallObjectAllocatorsCount];
/bionic/libc/bionic/
Dbionic_allocator.cpp98 BionicSmallObjectAllocator::BionicSmallObjectAllocator(uint32_t type, size_t block_size) in BionicSmallObjectAllocator() function in BionicSmallObjectAllocator
105 void* BionicSmallObjectAllocator::alloc() { in alloc()
147 void BionicSmallObjectAllocator::free_page(small_object_page_info* page) { in free_page()
162 void BionicSmallObjectAllocator::free(void* ptr) { in free()
191 void BionicSmallObjectAllocator::alloc_page() { in alloc_page()
224 void BionicSmallObjectAllocator::add_to_page_list(small_object_page_info* page) { in add_to_page_list()
233 void BionicSmallObjectAllocator::remove_from_page_list( in remove_from_page_list()
253 BionicSmallObjectAllocator* allocators = in initialize_allocators()
254 reinterpret_cast<BionicSmallObjectAllocator*>(allocators_buf_); in initialize_allocators()
258 new (allocators + i) BionicSmallObjectAllocator(type, 1 << type); in initialize_allocators()
[all …]