Message147531
This patch adds a counting of the number of allocated memory blocks (through the PyObject_Malloc API). Together with -R, it can help chase those memory leaks which aren't reference leaks (see c6dafa2e2594).
The sys.getallocedblocks() function is also available in non-debug mode. This is meant to help 3rd party extension writers, who rarely have access to debug builds.
To avoid too many false positives, issue13389 is a prerequisite (at least for the "test -R" part of the patch). Even after it, there are still a couple "test -R" failures; we'd have to investigate them. |
|
| Date |
User |
Action |
Args |
| 2011-11-12 23:24:29 | pitrou | set | recipients:
+ pitrou, tim.peters, ncoghlan |
| 2011-11-12 23:24:29 | pitrou | set | messageid: <[email protected]> |
| 2011-11-12 23:24:29 | pitrou | link | issue13390 messages |
| 2011-11-12 23:24:28 | pitrou | create | |
|