core-lightning/lightningd/test
Rusty Russell c956d9f5eb lightningd: tal memleak detection, dev-memleak command.
This is a primitive mark-and-sweep-style garbage detector.  The core is
in common/ for later use by subdaemons, but for now it's just lightningd.
We initialize it before most other allocations.

We walk the tal tree to get all the pointers, then search the `ld`
object for those pointers, recursing down.  Some specific helpers are
required for hashtables (which stash bits in the unused pointer bits,
so won't be found).

There's `notleak()` for annotating things that aren't leaks: things
like globals and timers, and other semi-transients.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-12-20 12:43:10 +01:00
..
Makefile test: fix dependencies. 2017-11-22 19:40:46 +01:00
run-commit_tx.c Remove redundant code 2017-12-11 03:38:37 +00:00
run-cryptomsg.c bitcoind: contain ld pointer. 2017-11-03 05:18:49 +00:00
run-find_my_path.c lightningd: tal memleak detection, dev-memleak command. 2017-12-20 12:43:10 +01:00
run-funding_tx.c common: remove unused assert() headers. 2017-10-26 12:53:09 +02:00
run-key_derive.c common: move some files out of lightningd/ 2017-08-29 17:54:14 +02:00