comparison Python/pythonrun.c @ 64709:557e2537c9ae

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.
author Antoine Pitrou <solipsis@pitrou.net>
date Mon, 13 Sep 2010 14:16:46 +0000
parents 687cc854cb4b
children 38b0d5d0dd30
comparison
equal deleted inserted replaced
64700:2f8370538ffb 64709:557e2537c9ae
511 - int and float free list blocks 511 - int and float free list blocks
512 - whatever various modules and libraries allocate 512 - whatever various modules and libraries allocate
513 */ 513 */
514 514
515 PyGrammar_RemoveAccelerators(&_PyParser_Grammar); 515 PyGrammar_RemoveAccelerators(&_PyParser_Grammar);
516
517 #ifdef WITH_THREAD
518 _PyEval_FiniThreads();
519 #endif
516 520
517 #ifdef Py_TRACE_REFS 521 #ifdef Py_TRACE_REFS
518 /* Display addresses (& refcnts) of all objects still alive. 522 /* Display addresses (& refcnts) of all objects still alive.
519 * An address can be used to find the repr of the object, printed 523 * An address can be used to find the repr of the object, printed
520 * above by _Py_PrintReferences. 524 * above by _Py_PrintReferences.