Message 217256 - Python tracker
Message217256
| 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 | <1398597164.17.0.618208848538.issue21233@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-04-27 11:12:44 | vstinner | set | recipients: + vstinner, pitrou, njs, skrah, neologix, jtaylor, josh.r |
| 2014-04-27 11:12:44 | vstinner | set | messageid: <1398597164.17.0.618208848538.issue21233@psf.upfronthosting.co.za> |
| 2014-04-27 11:12:44 | vstinner | link | issue21233 messages |
| 2014-04-27 11:12:43 | vstinner | create | |