Message72055
> But then if there is a context switch during the last Py_XDECREF, then
> it could be the case that self->dict is not set properly on return from
> _ldict().
Well, C code is effectively locked in a single thread until the GIL is
released. It means that a piece of C code which doesn't release the GIL
behaves as a critical section. So the only thing to consider, IMO, is
whether the GIL can still be released between "if (ldict == NULL)" and
"self->dict = ldict". |
|
Date |
User |
Action |
Args |
2008-08-28 00:38:01 | pitrou | set | recipients:
+ pitrou, tamino |
2008-08-28 00:38:01 | pitrou | set | messageid: <1219883881.55.0.153024063208.issue3710@psf.upfronthosting.co.za> |
2008-08-28 00:37:59 | pitrou | link | issue3710 messages |
2008-08-28 00:37:59 | pitrou | create | |
|