]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #1402: PyInterpreterState_Clear() may still invoke user code
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 29 Nov 2007 23:35:25 +0000 (23:35 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 29 Nov 2007 23:35:25 +0000 (23:35 +0000)
commit025c347d611cb58a2cfc3671615891bd3bc1217a
tree93be5e148ee7faed71a6c20ea115306133b43844
parent82225b77372746c39ab4efd752b52ebaa227efe8
Issue #1402: PyInterpreterState_Clear() may still invoke user code
(in deallocation of running threads, for example), so the PyGILState_Release()
function must still be functional.
On the other hand, _PyGILState_Fini() only frees memory, and can be called later.

Backport candidate, but only after some experts comment on it.
Lib/test/test_threading.py
Python/pythonrun.c