bug-gnulib
[Top][All Lists]
Advanced

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

Re: reclaiming memory before exit


From: Bruno Haible
Subject: Re: reclaiming memory before exit
Date: Fri, 15 May 2020 02:00:31 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; )

Jeffrey Walton wrote:
> > Building RPMs with -Dlint would mean performance
> > penalty because some programs (e.g. sort) would explicitly release complex
> > data structures just before exit, which is wasteful.
> 
> I think it may be a bit presumptuous to call cleanup wasteful.
> 
> Proper cleanup is inefficient in in some cases, but execution time is
> only one metric. It may not be an important metric, either.
> 
> Proper cleanup is necessary in other cases, like performing security
> testing and evaluation. Memory checkers like Asan and Valgrind can't
> differentiate between the "good" memory leaks and the "bad" ones.

We discussed this already in the thread starting at [1].

Bruno

[1] https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00026.html




reply via email to

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