Searched refs:ZEND_FIBER_GUARD_PAGES (Results 1 – 2 of 2) sorted by relevance
63 ZEND_ASSERT(size >= page_size + ZEND_FIBER_GUARD_PAGES * 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()75 # if ZEND_FIBER_GUARD_PAGES in zend_fiber_stack_allocate()78 …if (!VirtualProtect(pointer, ZEND_FIBER_GUARD_PAGES * page_size, PAGE_READWRITE | PAGE_GUARD, &pro… in zend_fiber_stack_allocate()90 # if ZEND_FIBER_GUARD_PAGES in zend_fiber_stack_allocate()91 if (mprotect(pointer, ZEND_FIBER_GUARD_PAGES * page_size, PROT_NONE) < 0) { in zend_fiber_stack_allocate()98 stack->pointer = (void *) ((uintptr_t) pointer + ZEND_FIBER_GUARD_PAGES * page_size); in zend_fiber_stack_allocate()120 void *pointer = (void *) ((uintptr_t) stack->pointer - ZEND_FIBER_GUARD_PAGES * page_size); in zend_fiber_stack_free()125 munmap(pointer, stack->size + ZEND_FIBER_GUARD_PAGES * page_size); in zend_fiber_stack_free()
134 #define ZEND_FIBER_GUARD_PAGES 1 macro
Completed in 5 milliseconds