Message328326
CPython uses many "free lists": list of "deallocated" objects which are kept alive to optimize allocation of new objects. For example, the builtin list type has a free list.
Problem: tracemalloc only traces the memory allocation when the object is created, but it doesn't update the traceback when the "free object" is reused to create "a new object".
Attached PR modifies _Py_NewReference() to update the Python traceback in the tracemalloc trace. |
|
Date |
User |
Action |
Args |
2018-10-23 16:42:14 | vstinner | set | recipients:
+ vstinner |
2018-10-23 16:42:14 | vstinner | set | messageid: <1540312934.43.0.788709270274.issue35053@psf.upfronthosting.co.za> |
2018-10-23 16:42:14 | vstinner | link | issue35053 messages |
2018-10-23 16:42:14 | vstinner | create | |
|