SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72114 0 1 Python

bpo-35053: Enhance tracemalloc to trace free lists (GH-10063)

tracemalloc now tries to update the traceback when an object is
reused from a "free list" (optimization for faster object creation,
used by the builtin list type for example).

Changes:

* Add _PyTraceMalloc_NewReference() function which tries to update
  the Python traceback of a Python object.
* _Py_NewReference() now calls _PyTraceMalloc_NewReference().
* Add an unit test.
V
Victor Stinner committed
9e00e80e213ebc37eff89ce72102c1f928ebc133
Parent: d7c3e5f
Committed by GitHub <noreply@github.com> on 10/25/2018, 11:31:16 AM