[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45200: Memory leaks: (garbage-collect) fails to reclaim memory
From: |
Eli Zaretskii |
Subject: |
bug#45200: Memory leaks: (garbage-collect) fails to reclaim memory |
Date: |
Sun, 05 Dec 2021 10:26:34 +0200 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz@gnu.org>, Konstantin Kharlamov
> <Hi-Angel@yandex.ru>, carlos@redhat.com, fweimer@redhat.com,
> dj@redhat.com, 45200@debbugs.gnu.org
> Date: Sun, 05 Dec 2021 01:23:50 -0500
>
> >> Thanks, but is it really a good idea to call malloc_trim each time we
> >> free some chunk of memory?
> > Skimming this very long thread, I think the conclusion was that we
> > shouldn't do anything in Emacs on this point. Does that sound correct?
>
> For me the conclusion was that I'd be happy to see someone add a
> `malloc-trim` primitive to ELisp, so that users can experiment with it,
> e.g. by adding it to `post-gc-hook`.
That might be a good feature regardless, IMO.