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 larry
Recipients larry, pitrou, tim.peters, vstinner
Date 2016-04-16.08:43:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460796190.74.0.153470488524.issue26753@psf.upfronthosting.co.za>
In-reply-to
Content
Patch attached.  The basics were okay; however, there was no locking around access to a static variable (_Py_AllocatedBlocks) so I added some.  The way the code managed _Py_AllocatedBlocks was a bit odd; this approach resulted in fewer lines, but it was hard to follow, and adding locking support would have muddied it even further, so I simplified it.  I also simplified the locking support a great deal ("SIMPLELOCK": YAGNI) and touched up the relevant comment.

Finally, I noticed a minor bug wrt added _Py_AllocatedBlocks: if you call PyMem_Realloc(NULL, 50000), that's really a new allocation, so _Py_AllocatedBlocks needs to be incremented, but it wasn't.  Since Antoine is the father of _Py_AllocatedBlocks I added him to the nosy list.
History
Date User Action Args
2016-04-16 08:43:10larrysetrecipients: + larry, tim.peters, pitrou, vstinner
2016-04-16 08:43:10larrysetmessageid: <1460796190.74.0.153470488524.issue26753@psf.upfronthosting.co.za>
2016-04-16 08:43:10larrylinkissue26753 messages
2016-04-16 08:43:10larrycreate