On Fri, May 8, 2009 at 3:06 PM, Theodoros V. Kalamatianos
<[email protected]> wrote:
>>
>> In general, what you are proposing is possible, but it's not easy, is
>> really slow and would be lots of extra code in Memcheck.
>
> What if it was done in two passes? Run memcheck normally, and then re-run
> valgrind repeatedly in order to track a specific memory leak each time. You
> could say e.g. --tool=analyse-leak --with-alloc=foo.c:111 and have valgrind
> track those pointers only. Could we exploit that to make things easier
> speed-wise and coding-wise?

Two passes introduces problems of its own -- it's great if you have a
totally deterministic program, otherwise you're in trouble.  Or you
can use deterministic replay techniques but that's more complication.

> IMO when you _know_ you have a problem, a slower but effective valgrind is
> definitely acceptable.

Of course.  My broader point is that there's an enormous difference
between proposing something and implementing it, especially when the
proposal is ambitious.

Nick

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to