Lines Matching refs:stack

130 static bool zend_call_stack_get_linux_pthread(zend_call_stack *stack)  in zend_call_stack_get_linux_pthread()  argument
167 stack->base = (int8_t*)addr + max_size; in zend_call_stack_get_linux_pthread()
168 stack->max_size = max_size; in zend_call_stack_get_linux_pthread()
175 static bool zend_call_stack_get_linux_pthread(zend_call_stack *stack) in zend_call_stack_get_linux_pthread() argument
181 static bool zend_call_stack_get_linux_proc_maps(zend_call_stack *stack) in zend_call_stack_get_linux_proc_maps() argument
259 stack->base = (void*)end; in zend_call_stack_get_linux_proc_maps()
260 stack->max_size = max_size; in zend_call_stack_get_linux_proc_maps()
265 static bool zend_call_stack_get_linux(zend_call_stack *stack) in zend_call_stack_get_linux() argument
268 return zend_call_stack_get_linux_proc_maps(stack); in zend_call_stack_get_linux()
271 return zend_call_stack_get_linux_pthread(stack); in zend_call_stack_get_linux()
274 static bool zend_call_stack_get_linux(zend_call_stack *stack) in zend_call_stack_get_linux() argument
288 static bool zend_call_stack_get_freebsd_pthread(zend_call_stack *stack) in zend_call_stack_get_freebsd_pthread() argument
310 stack->base = (int8_t*)addr + max_size; in zend_call_stack_get_freebsd_pthread()
311 stack->max_size = max_size; in zend_call_stack_get_freebsd_pthread()
321 static bool zend_call_stack_get_freebsd_pthread(zend_call_stack *stack) in zend_call_stack_get_freebsd_pthread() argument
327 static bool zend_call_stack_get_freebsd_sysctl(zend_call_stack *stack) in zend_call_stack_get_freebsd_sysctl() argument
358 stack->base = stack_base; in zend_call_stack_get_freebsd_sysctl()
359 stack->max_size = rlim.rlim_cur - guard_size; in zend_call_stack_get_freebsd_sysctl()
364 static bool zend_call_stack_get_freebsd(zend_call_stack *stack) in zend_call_stack_get_freebsd() argument
367 return zend_call_stack_get_freebsd_sysctl(stack); in zend_call_stack_get_freebsd()
370 return zend_call_stack_get_freebsd_pthread(stack); in zend_call_stack_get_freebsd()
373 static bool zend_call_stack_get_freebsd(zend_call_stack *stack) in zend_call_stack_get_freebsd() argument
380 static bool zend_call_stack_get_win32(zend_call_stack *stack) in zend_call_stack_get_win32() argument
429 stack->base = (void*)high_limit; in zend_call_stack_get_win32()
430 stack->max_size = (uintptr_t)high_limit - (uintptr_t)low_limit; in zend_call_stack_get_win32()
432 ZEND_ASSERT(stack->max_size > guard_region.RegionSize); in zend_call_stack_get_win32()
433 stack->max_size -= guard_region.RegionSize; in zend_call_stack_get_win32()
437 ZEND_ASSERT(stack->max_size > page_size); in zend_call_stack_get_win32()
438 stack->max_size -= page_size; in zend_call_stack_get_win32()
443 static bool zend_call_stack_get_win32(zend_call_stack *stack) in zend_call_stack_get_win32() argument
450 static bool zend_call_stack_get_macos(zend_call_stack *stack) in zend_call_stack_get_macos() argument
474 stack->base = base; in zend_call_stack_get_macos()
475 stack->max_size = max_size; in zend_call_stack_get_macos()
480 static bool zend_call_stack_get_macos(zend_call_stack *stack) in zend_call_stack_get_macos() argument
488 static bool zend_call_stack_get_openbsd_pthread(zend_call_stack *stack) in zend_call_stack_get_openbsd_pthread() argument
496 stack->base = (char *)ss.ss_sp - ss.ss_size; in zend_call_stack_get_openbsd_pthread()
497 stack->max_size = ss.ss_size - sysconf(_SC_PAGE_SIZE); in zend_call_stack_get_openbsd_pthread()
502 static bool zend_call_stack_get_openbsd_pthread(zend_call_stack *stack) in zend_call_stack_get_openbsd_pthread() argument
508 static bool zend_call_stack_get_openbsd_vm(zend_call_stack *stack) in zend_call_stack_get_openbsd_vm() argument
529 stack->base = (void *)((uintptr_t)ps.val + (pagesize - 1) & ~(pagesize - 1)); in zend_call_stack_get_openbsd_vm()
530 stack->max_size = rlim.rlim_cur - pagesize; in zend_call_stack_get_openbsd_vm()
535 static bool zend_call_stack_get_openbsd(zend_call_stack *stack) in zend_call_stack_get_openbsd() argument
539 return zend_call_stack_get_openbsd_vm(stack); in zend_call_stack_get_openbsd()
542 return zend_call_stack_get_openbsd_pthread(stack); in zend_call_stack_get_openbsd()
546 static bool zend_call_stack_get_openbsd(zend_call_stack *stack) in zend_call_stack_get_openbsd() argument
552 static bool zend_call_stack_get_haiku(zend_call_stack *stack) in zend_call_stack_get_haiku() argument
566 stack->base = ti.stack_end; in zend_call_stack_get_haiku()
567 stack->max_size = ((size_t)ti.stack_end - (size_t)ti.stack_base) - guard_size; in zend_call_stack_get_haiku()
572 static bool zend_call_stack_get_haiku(zend_call_stack *stack) in zend_call_stack_get_haiku() argument
580 static bool zend_call_stack_get_netbsd_pthread(zend_call_stack *stack) in zend_call_stack_get_netbsd_pthread() argument
605 stack->base = (char *)addr + max_size; in zend_call_stack_get_netbsd_pthread()
606 stack->max_size = max_size; in zend_call_stack_get_netbsd_pthread()
611 static bool zend_call_stack_get_netbsd_pthread(zend_call_stack *stack) in zend_call_stack_get_netbsd_pthread() argument
616 static bool zend_call_stack_get_netbsd_vm(zend_call_stack *stack, void **ptr) in zend_call_stack_get_netbsd_vm() argument
665 stack->base = (void *)entry->kve_end; in zend_call_stack_get_netbsd_vm()
666 stack->max_size = max_size; in zend_call_stack_get_netbsd_vm()
672 static bool zend_call_stack_get_netbsd(zend_call_stack *stack) in zend_call_stack_get_netbsd() argument
676 bool r = zend_call_stack_get_netbsd_vm(stack, &ptr); in zend_call_stack_get_netbsd()
681 return zend_call_stack_get_netbsd_pthread(stack); in zend_call_stack_get_netbsd()
684 static bool zend_call_stack_get_netbsd(zend_call_stack *stack) in zend_call_stack_get_netbsd() argument
691 static bool zend_call_stack_get_solaris_pthread(zend_call_stack *stack) in zend_call_stack_get_solaris_pthread() argument
698 stack->max_size = s.ss_size; in zend_call_stack_get_solaris_pthread()
699 stack->base = s.ss_sp; in zend_call_stack_get_solaris_pthread()
704 static bool zend_call_stack_get_solaris_proc_maps(zend_call_stack *stack) in zend_call_stack_get_solaris_proc_maps() argument
765 stack->base = (void *)map->pr_vaddr + map->pr_size; in zend_call_stack_get_solaris_proc_maps()
766 stack->max_size = rlim.rlim_cur; in zend_call_stack_get_solaris_proc_maps()
777 static bool zend_call_stack_get_solaris(zend_call_stack *stack) in zend_call_stack_get_solaris() argument
781 return zend_call_stack_get_solaris_proc_maps(stack); in zend_call_stack_get_solaris()
784 return zend_call_stack_get_solaris_pthread(stack); in zend_call_stack_get_solaris()
787 static bool zend_call_stack_get_solaris(zend_call_stack *stack) in zend_call_stack_get_solaris() argument
794 ZEND_API bool zend_call_stack_get(zend_call_stack *stack) in zend_call_stack_get() argument
796 if (zend_call_stack_get_linux(stack)) { in zend_call_stack_get()
800 if (zend_call_stack_get_freebsd(stack)) { in zend_call_stack_get()
804 if (zend_call_stack_get_win32(stack)) { in zend_call_stack_get()
808 if (zend_call_stack_get_macos(stack)) { in zend_call_stack_get()
812 if (zend_call_stack_get_openbsd(stack)) { in zend_call_stack_get()
816 if (zend_call_stack_get_netbsd(stack)) { in zend_call_stack_get()
820 if (zend_call_stack_get_haiku(stack)) { in zend_call_stack_get()
824 if (zend_call_stack_get_solaris(stack)) { in zend_call_stack_get()