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 serhiy.storchaka
Recipients rhettinger, serhiy.storchaka, vstinner
Date 2015-09-17.19:51:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1442519500.54.0.663307370859.issue25135@psf.upfronthosting.co.za>
In-reply-to
Content
I perhaps were overcautious. There is a difference between the case of deque and the case of lru_cache and OrderedDict. The latter creates Python object (PyDict_New) that can trigger garbage collecting, and the former calls only PyMem_Malloc. The latter can cause a crash in common use, and the former only with special memory allocation hooks (Victor, perhaps we should disable GC for executing hooks).

But my version of the patch solves not only this issue. It eliminates the use of possibly re-entrant alternate method.
History
Date User Action Args
2015-09-17 19:51:40serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner
2015-09-17 19:51:40serhiy.storchakasetmessageid: <1442519500.54.0.663307370859.issue25135@psf.upfronthosting.co.za>
2015-09-17 19:51:40serhiy.storchakalinkissue25135 messages
2015-09-17 19:51:40serhiy.storchakacreate