On 2016-11-19 2:46 PM, Kevin Modzelewski wrote:
Hi Yury, you may be interested in some leak-finding code that wrote for
Pyston. It uses the GC infrastructure to show you objects that were
directly leaked, ignoring indirect leaks -- ie objects that were only
leaked because they were referenced by a leaked object. It can often give
you a very small list of objects to look into (depending on how many non-gc
objects were leaked). If you're interested I can try porting it to CPython.
https://github.com/dropbox/pyston/blob/master/from_cpython/Modules/gcmodule.c#L894
Hi Kevin,
Nice work! Anything to help to find refleaks is welcome, it's really a
painful process sometimes. As for porting it to CPython - I don't see
why not. We can add this new API to debug builds only, at least in the
beginning.
Thank you!
Yury
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com