Message276434
The CPython test suite uses a counter on memory allocations. Please add an unit test which triggers the memory leak, but you don't need many iterations. One iteartion should be enough to be catched by the unit test. Try: ./python -m test -R 3:3 test_dict.
The memory allocation counter:
https://docs.python.org/dev/library/sys.html#sys.getallocatedblocks
Note: The tracemalloc module can also be used to track memory leak, but it's harder to use it to write unit tests because Python uses a lot of internal caches and tracemalloc really tracks every single bytes. |
|
Date |
User |
Action |
Args |
2016-09-14 13:10:30 | vstinner | set | recipients:
+ vstinner, methane, berker.peksag, minrk |
2016-09-14 13:10:30 | vstinner | set | messageid: <1473858630.44.0.824867412907.issue28147@psf.upfronthosting.co.za> |
2016-09-14 13:10:30 | vstinner | link | issue28147 messages |
2016-09-14 13:10:30 | vstinner | create | |
|