Lines Matching refs:pointer

81 	void *pointer;  member
205 void *pointer; in zend_fiber_stack_allocate() local
218 pointer = VirtualAlloc(0, alloc_size, MEM_COMMIT, PAGE_READWRITE); in zend_fiber_stack_allocate()
220 if (!pointer) { in zend_fiber_stack_allocate()
231 …if (!VirtualProtect(pointer, ZEND_FIBER_GUARD_PAGES * page_size, PAGE_READWRITE | PAGE_GUARD, &pro… in zend_fiber_stack_allocate()
236 VirtualFree(pointer, 0, MEM_RELEASE); in zend_fiber_stack_allocate()
241pointer = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, … in zend_fiber_stack_allocate()
243 if (pointer == MAP_FAILED) { in zend_fiber_stack_allocate()
248 zend_mmap_set_name(pointer, alloc_size, "zend_fiber_stack"); in zend_fiber_stack_allocate()
251 if (mprotect(pointer, ZEND_FIBER_GUARD_PAGES * page_size, PROT_NONE) < 0) { in zend_fiber_stack_allocate()
253 munmap(pointer, alloc_size); in zend_fiber_stack_allocate()
261 stack->pointer = (void *) ((uintptr_t) pointer + ZEND_FIBER_GUARD_PAGES * page_size); in zend_fiber_stack_allocate()
282 uintptr_t base = (uintptr_t) stack->pointer; in zend_fiber_stack_allocate()
287 stack->asan_pointer = stack->pointer; in zend_fiber_stack_allocate()
302 void *pointer = (void *) ((uintptr_t) stack->pointer - ZEND_FIBER_GUARD_PAGES * page_size); in zend_fiber_stack_free() local
307 ASAN_UNPOISON_MEMORY_REGION(pointer, stack->size + ZEND_FIBER_GUARD_PAGES * page_size); in zend_fiber_stack_free()
311 VirtualFree(pointer, 0, MEM_RELEASE); in zend_fiber_stack_free()
313 munmap(pointer, stack->size + ZEND_FIBER_GUARD_PAGES * page_size); in zend_fiber_stack_free()
338 return (int8_t*)stack->pointer + reserve; in zend_fiber_stack_limit()
343 return (void*)((uintptr_t)stack->pointer + stack->size); in zend_fiber_stack_base()
418 handle->uc_stack.ss_sp = context->stack->pointer; in zend_fiber_init_context()
427 void *stack = (void *) ((uintptr_t) context->stack->pointer + context->stack->size); in zend_fiber_init_context()