Lines Matching refs:page
73 LinkerBlockAllocatorPage* page = find_page(block);
75 if (page == nullptr) {
79 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes;
96 for (LinkerBlockAllocatorPage* page = page_list_; page != nullptr; page = page->next) {
97 if (mprotect(page, PAGE_SIZE, prot) == -1) {
107 LinkerBlockAllocatorPage* page = reinterpret_cast<LinkerBlockAllocatorPage*>(
110 if (page == MAP_FAILED) {
114 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, page, PAGE_SIZE, "linker_alloc");
116 memset(page, 0, PAGE_SIZE);
118 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes);
124 page->next = page_list_;
125 page_list_ = page;
133 LinkerBlockAllocatorPage* page = page_list_;
134 while (page != nullptr) {
135 const uint8_t* page_ptr = reinterpret_cast<const uint8_t*>(page);
136 if (block >= (page_ptr + sizeof(page->next)) && block < (page_ptr + PAGE_SIZE)) {
137 return page;
140 page = page->next;