From 820de1ab0cb69413cc8600bd4814c4f59788700e Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 25 Aug 2023 22:58:57 +0100 Subject: [PATCH] zend_call_stack_default_size update BSD values. --- Zend/zend_call_stack.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Zend/zend_call_stack.h b/Zend/zend_call_stack.h index c71395bd6d42c..bdea17a476959 100644 --- a/Zend/zend_call_stack.h +++ b/Zend/zend_call_stack.h @@ -73,8 +73,11 @@ static inline size_t zend_call_stack_default_size(void) #ifdef __linux__ return 8 * 1024 * 1024; #endif -#ifdef __FreeBSD__ - return 8 * 1024 * 1024; +#if defined(__FreeBSD__) || defined(__NetBSD__) + return 4 * 1024 * 1024; +#endif +#ifdef __OpenBSD__ + return 512 * 1024; #endif #ifdef __APPLE__ // https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Multithreading/CreatingThreads/CreatingThreads.html