Valgrind

Martin Nowak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 20 19:23:19 PDT 2015


On Monday, 20 April 2015 at 13:28:57 UTC, John Colvin wrote:
> The only special thing to take in to account is that valgrind 
> will choke on DMD generated floating point code

I actually fixed this problem a while ago.
https://github.com/D-Programming-Language/dmd/pull/4368

An actual problem with valgrind is the GC, because most of it's 
operations appear to valgrind as memory corruptions.
You can GC.disable() collections, use gcstub.d, or help Vladimir 
with his valgrind/GC support to make things work.

http://dlang.org/phobos/core_memory.html#.GC.disable
https://github.com/D-Programming-Language/druntime/blob/master/src/gcstub/gc.d
https://github.com/CyberShadow/druntime/commits/valgrind


More information about the Digitalmars-d-learn mailing list