This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Albert.Zeyer, neologix, pitrou, r.david.murray
Date 2013-02-23.11:08:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361617685.94.0.43335482387.issue17263@psf.upfronthosting.co.za>
In-reply-to
Content
> What happens if the GIL is relased during shutdown?

In PyEval_RestoreThread(), any thread other than the main thread trying to take the GIL will immediately exit:

        take_gil(tstate);
        if (_Py_Finalizing && tstate != _Py_Finalizing) {
            drop_gil(tstate);
            PyThread_exit_thread();
            assert(0);  /* unreachable */
        }

> The TLS dict is deallocated after having cleared the frame, which
> could lead to surprises, no?

I don't know. Can you think of a situation where there is a problem?
History
Date User Action Args
2013-02-23 11:08:05pitrousetrecipients: + pitrou, r.david.murray, neologix, Albert.Zeyer
2013-02-23 11:08:05pitrousetmessageid: <1361617685.94.0.43335482387.issue17263@psf.upfronthosting.co.za>
2013-02-23 11:08:05pitroulinkissue17263 messages
2013-02-23 11:08:05pitroucreate