Message182735
> 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? |
|
Date |
User |
Action |
Args |
2013-02-23 11:08:05 | pitrou | set | recipients:
+ pitrou, r.david.murray, neologix, Albert.Zeyer |
2013-02-23 11:08:05 | pitrou | set | messageid: <1361617685.94.0.43335482387.issue17263@psf.upfronthosting.co.za> |
2013-02-23 11:08:05 | pitrou | link | issue17263 messages |
2013-02-23 11:08:05 | pitrou | create | |
|