Lines Matching refs:page

93   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()
131 first_block->num_free_blocks = sizeof(page->bytes) / block_size_; in create_new_page()
135 page->next = page_list_; in create_new_page()
136 page_list_ = page; in create_new_page()
142 LinkerBlockAllocatorPage* page = page_list_; in find_page() local
143 while (page != nullptr) { in find_page()
144 const uint8_t* page_ptr = reinterpret_cast<const uint8_t*>(page); in find_page()
145 if (block >= (page_ptr + sizeof(page->next)) && block < (page_ptr + kAllocateSize)) { in find_page()
146 return page; in find_page()
149 page = page->next; in find_page()
160 LinkerBlockAllocatorPage* page = page_list_; in purge() local
161 while (page) { in purge()
162 LinkerBlockAllocatorPage* next = page->next; in purge()
163 munmap(page, kAllocateSize); in purge()
164 page = next; in purge()