Author vstinner
Recipients josh.r, jtaylor, neologix, njs, pitrou, skrah, vstinner
Date 2014-04-27.11:12:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It looks like calloc-3.patch is wrong: it modify _PyObject_GC_Malloc() to fill the newly allocated buffer with zeros, but _PyObject_GC_Malloc() is not only called by PyType_GenericAlloc(): it is also used by _PyObject_GC_New() and _PyObject_GC_NewVar(). The patch is maybe a little bit slower because it writes zeros twice.

calloc.patch adds "PyObject* _PyObject_GC_Calloc(size_t);" and doesn't have this issue.
Date User Action Args
2014-04-27 11:12:44vstinnersetrecipients: + vstinner, pitrou, njs, skrah, neologix, jtaylor, josh.r
2014-04-27 11:12:44vstinnersetmessageid: <>
2014-04-27 11:12:44vstinnerlinkissue21233 messages
2014-04-27 11:12:43vstinnercreate