[New-bugs-announce] [issue33955] Implement PyOS_CheckStack on macOS using pthread_get_stack*_np

Ronald Oussoren report at bugs.python.org
Mon Jun 25 07:18:15 EDT 2018


New submission from Ronald Oussoren <ronaldoussoren at mac.com>:

The (non-portable) pthread APIs "pthread_get_stacksize_np()" and "pthread_get_stackaddr_np()" can be used to implement PyOS_CheckStack on macOS, which would give nicer behavior than crashing when the recursion limit is too high for the stack size of the current thread.

Creating a patch should be fairly easy, but does require C knowledge.

----------
components: Interpreter Core
messages: 320415
nosy: ronaldoussoren
priority: low
severity: normal
stage: needs patch
status: open
title: Implement PyOS_CheckStack on macOS using pthread_get_stack*_np
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33955>
_______________________________________


More information about the New-bugs-announce mailing list