bug-gnulib
[Top][All Lists]
Advanced

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

Re: reclaiming memory before exit


From: Jeffrey Walton
Subject: Re: reclaiming memory before exit
Date: Thu, 14 May 2020 20:11:59 -0400

On Thu, May 14, 2020 at 8:00 PM Bruno Haible <address@hidden> wrote:
>
> 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].

Not everyone has GNU's low standards.

Jeff



reply via email to

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