Message328326
| Author |
vstinner |
| Recipients |
vstinner |
| Date |
2018年10月23日.16:42:14 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1540312934.43.0.788709270274.issue35053@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|