mirror of https://github.com/python/cpython.git
gh-131624: Fix posix_spawn tests failing on NetBSD with stack limit assertions (GH-131625)
Fix recursive limit assertions on NetBSD for posix_spawn.
This commit is contained in:
parent
00cf5eacc5
commit
c7f6535e4a
|
@ -437,7 +437,7 @@ _Py_InitializeRecursionLimits(PyThreadState *tstate)
|
||||||
_tstate->c_stack_soft_limit = _tstate->c_stack_hard_limit + PYOS_STACK_MARGIN_BYTES;
|
_tstate->c_stack_soft_limit = _tstate->c_stack_hard_limit + PYOS_STACK_MARGIN_BYTES;
|
||||||
#else
|
#else
|
||||||
uintptr_t here_addr = _Py_get_machine_stack_pointer();
|
uintptr_t here_addr = _Py_get_machine_stack_pointer();
|
||||||
# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX)
|
# if defined(HAVE_PTHREAD_GETATTR_NP) && !defined(_AIX) && !defined(__NetBSD__)
|
||||||
size_t stack_size, guard_size;
|
size_t stack_size, guard_size;
|
||||||
void *stack_addr;
|
void *stack_addr;
|
||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
|
|
Loading…
Reference in New Issue