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

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

bug#45200: [PATCH] Force Glibc to free the memory freed


From: Eli Zaretskii
Subject: bug#45200: [PATCH] Force Glibc to free the memory freed
Date: Wed, 03 Feb 2021 16:51:14 +0200

> From: Konstantin Kharlamov <hi-angel@yandex.ru>
> Date: Wed, 03 Feb 2021 12:49:47 +0300
> Cc: carlos@redhat.com, fweimer@redhat.com, 45200@debbugs.gnu.org, 
> dj@redhat.com
> 
> Second, if Emacs indeed sees it's gonna allocate memory again right away, 
> then it shouldn't have even freed the memory in the first place.

You are not serious here, are you?  How could Emacs possibly know, at
the level that does GC, whether the Lisp program that currently runs
will need more memory in the future?  The program itself may know that
(and then it may not, if memory is allocated by some low-level
primitive), but GC itself?  If you think it can have powers for such
prophecy, we should probably use that to write a program to advise us
which shares to buy, and get rich -- fast.





reply via email to

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