On Jul 11, 2013, at 10:00 AM, "Adam D. Ruppe" <[email protected]> wrote:

> BTW if you guys are wondering how I found the allocations, it was pretty 
> simple:
> 
> dmd mangle.d -debug -gc
> gdb ./mangle
> 
> break gc_malloc
> break gc_qalloc
> r
> 
> 
> Then when it breaks, do "where" and see what called the gc alloc. Then hit 
> "c" to continue and repeat until you've found and fixed them (or ignored if 
> they are in runtime).

I usually grep the output of obj2asm.  Your way sounds easier :-)

Reply via email to