Message182732
> This shouldn't be a problem in Python 3 where Python threads cannot switch
> during shutdown.
What happens if the GIL is relased during shutdown?
Also, I'm a bit worried about this code:
"""
void
PyThreadState_Clear(PyThreadState *tstate)
{
if (Py_VerboseFlag && tstate->frame != NULL)
fprintf(stderr,
"PyThreadState_Clear: warning: thread still has a frame\n");
Py_CLEAR(tstate->frame);
Py_CLEAR(tstate->dict);
"""
The TLS dict is deallocated after having cleared the frame, which
could lead to surprises, no? |
|
Date |
User |
Action |
Args |
2013-02-23 10:55:38 | neologix | set | recipients:
+ neologix, pitrou, r.david.murray, Albert.Zeyer |
2013-02-23 10:55:38 | neologix | link | issue17263 messages |
2013-02-23 10:55:38 | neologix | create | |
|