• Victor Stinner's avatar
    bpo-35053: Enhance tracemalloc to trace free lists (GH-10063) · 9e00e80e
    Victor Stinner yazdı
    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.
    9e00e80e