Valgrind has been available on FxOS for a while now via magic incantation only known by few developers. To fix this, I've gone through MDN and updated the relevant entries, as well as adding documentation on how to build/run valgrind on the phone (Nexus 4 or similarly high spec phone only at the moment). 99% of the work is taken care of by the build system, so it's mostly just adding a flag to .userconfig and you're ready to go. It's a great way of finding possible memory/threading issues in the system, and seems to work fine across multiple processes. It's also a great way to make yourself look awesome by filing a ton of bugs about new/delete mismatches and uninitialized values. :)
Is there value in bringing this to run on B2G Desktop as well? I'd reckon it might find bugs too, though it might not find a subset of bugs that appear only on ARM/phones.
-Gary _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
