help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to debug memory leaks


From: Eli Zaretskii
Subject: Re: How to debug memory leaks
Date: Fri, 26 Mar 2021 18:33:20 +0300

> From: Arthur Miller <arthur.miller@live.com>
> Cc: help-gnu-emacs@gnu.org
> Date: Fri, 26 Mar 2021 16:09:33 +0100
> 
> > That's what GC does.
> Yes, but GC can't know if I don't need undo history, right

And neither do you.  GC compacts the undo history, though, and frees
the slack.

> or old text in eshell buffer?

Delete it, and it will be free'd.

> Can we maybe get a "cleanup-hook" so we can specify per mode which
> data/variables shoudl be set to nil so GC can do it's job?

It's much easier to delete unneeded stuff, and let GC recycle the
memory.



reply via email to

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