Home
last modified time | relevance | path

Searched refs:page (Results 1 – 9 of 9) sorted by relevance

/bionic/libc/bionic/
Dbionic_allocator.cpp117 small_object_page_info* page = page_list_; in alloc() local
118 CHECK(page->free_block_list != nullptr); in alloc()
120 small_object_block_record* const block_record = page->free_block_list; in alloc()
127 page->free_block_list = next_free; in alloc()
129 page->free_block_list = block_record->next; in alloc()
132 if (page->free_blocks_cnt == blocks_per_page_) { in alloc()
136 page->free_blocks_cnt--; in alloc()
140 if (page->free_blocks_cnt == 0) { in alloc()
143 remove_from_page_list(page); in alloc()
149 void BionicSmallObjectAllocator::free_page(small_object_page_info* page) { in free_page() argument
[all …]
/bionic/linker/
Dlinker_block_allocator.cpp93 LinkerBlockAllocatorPage* page = find_page(block); in free() local
94 CHECK(page != nullptr); in free()
96 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes; in free()
112 for (LinkerBlockAllocatorPage* page = page_list_; page != nullptr; page = page->next) { in protect_all() local
113 if (mprotect(page, kAllocateSize, prot) == -1) { in protect_all()
114 async_safe_fatal("mprotect(%p, %zu, %d) failed: %m", page, kAllocateSize, prot); in protect_all()
123 LinkerBlockAllocatorPage* page = reinterpret_cast<LinkerBlockAllocatorPage*>( in create_new_page() local
125 CHECK(page != MAP_FAILED); in create_new_page()
127 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, page, kAllocateSize, "linker_alloc"); in create_new_page()
129 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes); in create_new_page()
[all …]
/bionic/libc/private/
Dbionic_allocator.h91 void free_page(small_object_page_info* page);
92 void add_to_page_list(small_object_page_info* page);
93 void remove_from_page_list(small_object_page_info* page);
/bionic/libc/kernel/uapi/linux/
Di2o-dev.h73 unsigned int page; member
/bionic/docs/
Ddefines.md18 useful as you might think, and one of the other choices on this page is usually
Dnative_allocator.md175 single allocation, touching every page in the allocation to make it resident
/bionic/
Dandroid-changes-for-ndk-developers.md140 that you want to load directly from your APK must be page aligned
147 page-aligned and stored uncompressed for this to work.
372 dynamic linker what permissions to give the corresponding page in
/bionic/libdl/
DNOTICE187 same "printed page" as the copyright notice for easier
/bionic/tests/
Dpthread_test.cpp2838 void* page = mmap(nullptr, kPageSize, prot, MAP_ANON|MAP_PRIVATE, -1, 0); in TEST() local
2839 if (page == MAP_FAILED) break; in TEST()
2840 pages.push_back(page); in TEST()