Searched refs:REG_PAGE_SIZE (Results 1 – 1 of 1) sorted by relevance
308 const std::size_t REG_PAGE_SIZE = governor::default_page_size(); in create_coroutine() local309 …onst std::size_t page_aligned_stack_size = (stack_size + (REG_PAGE_SIZE - 1)) & ~(REG_PAGE_SIZE - … in create_coroutine()310 const std::size_t protected_stack_size = page_aligned_stack_size + 2 * REG_PAGE_SIZE; in create_coroutine()317 …int err = mprotect((void*)(stack_ptr + REG_PAGE_SIZE), page_aligned_stack_size, PROT_READ | PROT_W… in create_coroutine()321 c.my_stack = (void*)(stack_ptr + REG_PAGE_SIZE); in create_coroutine()354 const std::size_t REG_PAGE_SIZE = governor::default_page_size(); in destroy_coroutine() local356 … munmap((void*)((std::uintptr_t)c.my_stack - REG_PAGE_SIZE), c.my_stack_size + 2 * REG_PAGE_SIZE); in destroy_coroutine()