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: Arthur Miller
Subject: Re: How to debug memory leaks
Date: Fri, 26 Mar 2021 16:09:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Arthur Miller <arthur.miller@live.com>
>> Date: Fri, 26 Mar 2021 15:57:09 +0100
>> Cc: help-gnu-emacs@gnu.org
>> 
>> Would there be any way for Emacs to unload unused fonts? GC?
>
> We already do that.
>
>> As a thought, could it be possible to implement something like "clean
>> emacs state" or/and "clean buffer state". It would throw away undo
>> history, unload unused stuff, for example in eshell/term/ansi-term kill
>> the buffer text, etc. Something that would work either on entire Emacs state,
>> or just on a buffer state; or maybe on both.
>
> That's what GC does.
Yes, but GC can't know if I don't need undo history, right, or old text
in eshell buffer?

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?



reply via email to

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