[New-bugs-announce] [issue34264] Inconsistency between stack size in main thread and secondary threads on macOS

Ronald Oussoren report at bugs.python.org
Sat Jul 28 12:00:44 EDT 2018


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

configure.ac sets the stack size for the main thread on macOS to 1000000 (hex), while Python/threading_pthread.h sets the default stack size for other threads to 0x500000. The latter is half of the former.

IMHO both should be the same, as both claim to have been chosen to be just large enough to accommodate the default recursion limit. 

I'd prefer to increase the default stack size of secondary threads to match the main thread. I tagged this as a 3.8 thread because there is a (very) small chance that changing the stack size breaks existing programs (although you'd have to create a lot of threads to use a significant amount of memory). 

This is vaguely related to issue33955.

----------
components: Interpreter Core, macOS
messages: 322569
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: needs patch
status: open
title: Inconsistency between stack size in main thread and secondary threads on macOS
type: enhancement
versions: Python 3.8

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


More information about the New-bugs-announce mailing list