Issue #9828: Destroy the GIL in Py_Finalize(), so that it gets properly

re-created on a subsequent call to Py_Initialize().  The problem (a crash)
wouldn't appear in 3.1 or 2.7 where the GIL's structure is more trivial.
This commit is contained in:
Antoine Pitrou 2010-09-13 14:16:46 +00:00
parent bea8ae7948
commit 1df1536fb9
5 changed files with 39 additions and 4 deletions

View file

@ -514,6 +514,10 @@ Py_Finalize(void)
PyGrammar_RemoveAccelerators(&_PyParser_Grammar);
#ifdef WITH_THREAD
_PyEval_FiniThreads();
#endif
#ifdef Py_TRACE_REFS
/* Display addresses (& refcnts) of all objects still alive.
* An address can be used to find the repr of the object, printed