[issue7544] Fatal error on thread creation in low memory condition
STINNER Victor
report at bugs.python.org
Sun Jan 10 00:54:26 CET 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Here I come with a patch! nirai idea was the good one: prealloc PyThreadState before creating the thread. Raise a MemoryError if the allocation fail, instead of raising a *fatal* Python error.
Patch is quite simple and allow better error handling.
----------
keywords: +patch
Added file: http://bugs.python.org/file15805/thread_prealloc_pystate.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7544>
_______________________________________
More information about the Python-bugs-list
mailing list