summaryrefslogtreecommitdiff
path: root/Python/codecs.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-04-12 08:52:50 +0000
committerTim Peters <tim.peters@gmail.com>2002-04-12 08:52:50 +0000
commit85cc1c43680ac0cf57269cdb594d5325ec07cf32 (patch)
tree95af5d26b08a32564dd51891df7d249302a5982a /Python/codecs.c
parentf539c68ccd33ce140e5a15be3dcdbe4132d43948 (diff)
downloadcpython-git-85cc1c43680ac0cf57269cdb594d5325ec07cf32.tar.gz
_PyObject_DebugRealloc(): rewritten to let the underlying realloc do
most of the work. In particular, if the underlying realloc is able to grow the memory block in place, great (this routine used to do a fresh malloc + memcpy every time a block grew). BTW, I'm not so keen here on avoiding possible quadratic-time realloc patterns as I am on making the debug pymalloc more invisible (the more it uses memory "just like" the underlying allocator, the better the chance that a suspected memory corruption bug won't vanish when the debug malloc is turned on).
Diffstat (limited to 'Python/codecs.c')
0 files changed, 0 insertions, 0 deletions