Searched refs:page_size (Results 1 – 1 of 1) sorted by relevance
46 static size_t page_size; in zend_fiber_page_size() local48 if (!page_size) { in zend_fiber_page_size()49 page_size = sysconf(_SC_PAGESIZE); in zend_fiber_page_size()52 return page_size; in zend_fiber_page_size()61 const size_t page_size = zend_fiber_page_size(); in zend_fiber_stack_allocate() local63 ZEND_ASSERT(size >= page_size + ZEND_FIBER_GUARD_PAGES * page_size); in zend_fiber_stack_allocate()65 stack->size = (size + page_size - 1) / page_size * page_size; in zend_fiber_stack_allocate()66 const size_t msize = stack->size + ZEND_FIBER_GUARD_PAGES * page_size; in zend_fiber_stack_allocate()91 if (mprotect(pointer, ZEND_FIBER_GUARD_PAGES * page_size, PROT_NONE) < 0) { in zend_fiber_stack_allocate()118 const size_t page_size = zend_fiber_page_size(); in zend_fiber_stack_free() local[all …]
Completed in 4 milliseconds