• Home
  • Raw
  • Download

Lines Matching refs:page

90   LinkerBlockAllocatorPage* page = find_page(block);  in free()  local
92 if (page == nullptr) { in free()
96 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes; in free()
115 for (LinkerBlockAllocatorPage* page = page_list_; page != nullptr; page = page->next) { in protect_all() local
116 if (mprotect(page, kAllocateSize, prot) == -1) { in protect_all()
126 LinkerBlockAllocatorPage* page = reinterpret_cast<LinkerBlockAllocatorPage*>( in create_new_page() local
129 if (page == MAP_FAILED) { in create_new_page()
133 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, page, kAllocateSize, "linker_alloc"); in create_new_page()
135 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes); in create_new_page()
137 first_block->num_free_blocks = sizeof(page->bytes) / block_size_; in create_new_page()
141 page->next = page_list_; in create_new_page()
142 page_list_ = page; in create_new_page()
150 LinkerBlockAllocatorPage* page = page_list_; in find_page() local
151 while (page != nullptr) { in find_page()
152 const uint8_t* page_ptr = reinterpret_cast<const uint8_t*>(page); in find_page()
153 if (block >= (page_ptr + sizeof(page->next)) && block < (page_ptr + kAllocateSize)) { in find_page()
154 return page; in find_page()
157 page = page->next; in find_page()
168 LinkerBlockAllocatorPage* page = page_list_; in purge() local
169 while (page) { in purge()
170 LinkerBlockAllocatorPage* next = page->next; in purge()
171 munmap(page, kAllocateSize); in purge()
172 page = next; in purge()