Home | History | Annotate | Download | only in linker

Lines Matching refs:page

65   LinkerAllocatorPage* page = find_page(block);
67 if (page == nullptr) {
71 ssize_t offset = reinterpret_cast<uint8_t*>(block) - page->bytes;
88 for (LinkerAllocatorPage* page = page_list_; page != nullptr; page = page->next) {
89 if (mprotect(page, PAGE_SIZE, prot) == -1) {
96 LinkerAllocatorPage* page = reinterpret_cast<LinkerAllocatorPage*>(mmap(nullptr, PAGE_SIZE,
98 if (page == MAP_FAILED) {
102 prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, page, PAGE_SIZE, "linker_alloc");
104 memset(page, 0, PAGE_SIZE);
106 FreeBlockInfo* first_block = reinterpret_cast<FreeBlockInfo*>(page->bytes);
112 page->next = page_list_;
113 page_list_ = page;
121 LinkerAllocatorPage* page = page_list_;
122 while (page != nullptr) {
123 const uint8_t* page_ptr = reinterpret_cast<const uint8_t*>(page);
124 if (block >= (page_ptr + sizeof(page->next)) && block < (page_ptr + PAGE_SIZE)) {
125 return page;
128 page = page->next;