Message304998
In this case it would be safe to not erase bytes at all.
PR 4119 is too complex for a bugfix (especially if backport it to 3.5 and 3.4). It can introduce other regressions. The performance hit is not the only issue. Allocating a temporary buffer can change the structure of "holes" in memory. As result some memory related bugs can be reproducible only in release mode.
Maybe it is enough to erase only few bytes at the start and end of the freed area. The copy can be saved in local variables, without involving the heap. This solution still will be enough complex, and I think it can be applied only to 3.7. But the bug should be fixed in all affected versions. |
|
Date |
User |
Action |
Args |
2017-10-25 16:09:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, larry, davin |
2017-10-25 16:09:22 | serhiy.storchaka | set | messageid: <1508947762.51.0.213398074469.issue31626@psf.upfronthosting.co.za> |
2017-10-25 16:09:22 | serhiy.storchaka | link | issue31626 messages |
2017-10-25 16:09:22 | serhiy.storchaka | create | |
|