gh-139231: Fix estimation of available stack size for recursion limit on macOS by rokm · Pull Request #139232 · python/cpython
… limit on macOS On macOS, use `pthread_get_stackaddr_np()` and `pthread_get_stacksize_np()` to determine the stack address and size (used by code handling the recursion limit), rather than falling back to conservative hard-coded default of 4 MB.
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
… limit on macOS (pythonGH-139232) Use `pthread_get_stackaddr_np()` and `pthread_get_stacksize_np()` to determine the stack address and size. (cherry picked from commit 7016044) Co-authored-by: Rok Mandeljc <rok.mandeljc@gmail.com>
rokm
deleted the
macos-stack-size-fix
branch
zanieb added a commit to astral-sh/python-build-standalone that referenced this pull request
This was referenced
encukou pushed a commit to encukou/cpython that referenced this pull request
… limit on macOS (pythonGH-139232) Use `pthread_get_stackaddr_np()` and `pthread_get_stacksize_np()` to determine the stack address and size.
hroncok pushed a commit to hroncok/cpython that referenced this pull request
… limit on macOS (pythonGH-139232) Use `pthread_get_stackaddr_np()` and `pthread_get_stacksize_np()` to determine the stack address and size. (cherry picked from commit 7016044)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters