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 pitrou, tamino
Date 2008-08-28.00:37:59
SpamBayes Score 0.0045279963
Marked as misclassified No
Message-id <1219883881.55.0.153024063208.issue3710@psf.upfronthosting.co.za>
In-reply-to
Content
> 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".
History
Date User Action Args
2008-08-28 00:38:01pitrousetrecipients: + pitrou, tamino
2008-08-28 00:38:01pitrousetmessageid: <1219883881.55.0.153024063208.issue3710@psf.upfronthosting.co.za>
2008-08-28 00:37:59pitroulinkissue3710 messages
2008-08-28 00:37:59pitroucreate