emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory leaks


From: Richard Stallman
Subject: Re: Memory leaks
Date: Tue, 08 Mar 2011 19:40:33 -0500

Is it possible to write code to record which vectors were consed by
the operation suspected of having a memory leak?  Then a function to
call from GDB to test whether a vector are still alive.

After you find one, you could do a GC with a conditional breakpoint
to stop when that vector is marked.  Then you would see exactly
what is keeping it alive.  If you do this for each vector that was
consed during the operation in question, you will eventually find
one that was expected to be GC'd, and find the bug.

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org, www.gnu.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]