[issue11382] some posix module functions unnecessarily release the GIL

Charles-Francois Natali report at bugs.python.org
Thu Mar 3 13:59:08 CET 2011


Charles-Francois Natali <neologix at free.fr> added the comment:

> Do you want to propose a patch?

Sure, if removing those calls to Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS seems reasonable (I might haved missed something obvious).
Just to be clear, I'm not at all criticizing the current GIL implementation, there's been a great work done on it.
I'm just saying that releasing and re-acquiring the GIL around fast syscalls is probaly not a good idea.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11382>
_______________________________________


More information about the Python-bugs-list mailing list