[issue26558] Fix PyGILState_Check() with _testcapi.run_in_subinterp()

STINNER Victor report at bugs.python.org
Mon Mar 14 12:00:11 EDT 2016


STINNER Victor added the comment:

Hum, in fact I prefer to implement GIL check in debug hooks of Python memory allocators. So it becomes to get these checks on Python compiled in debug mode.

Patch 2: Don't touch Python memory allocators.

Instead of I wrote a second patch, pymem_gil_check.patch (based on gil_check-2.patch).

--

Oh, I forgot to mention that the gil_check patch changes PyThreadState_DeleteCurrent(): I reordered instructions to be able call PyObject_Free() with the GIL check.

----------
Added file: http://bugs.python.org/file42162/gil_check-2.patch

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


More information about the Python-bugs-list mailing list