GNU bug report logs - #45200
Wishlist: There should be a `malloc-trim' function

Previous Next

Package: emacs;

Reported by: Konstantin Kharlamov <hi-angel <at> yandex.ru>

Date: Sat, 12 Dec 2020 18:44:02 UTC

Severity: wishlist

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: fweimer <at> redhat.com, dj <at> redhat.com, carlos <at> redhat.com, Hi-Angel <at> yandex.ru, larsi <at> gnus.org, 45200 <at> debbugs.gnu.org
Subject: bug#45200: Memory leaks: (garbage-collect) fails to reclaim memory
Date: Sun, 05 Dec 2021 10:26:34 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  Konstantin Kharlamov
>  <Hi-Angel <at> yandex.ru>,  carlos <at> redhat.com,  fweimer <at> redhat.com,
>   dj <at> redhat.com,  45200 <at> 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.




This bug report was last modified 3 years and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.