[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
- Re: gcc -fanalyze, (continued)
- Re: gcc -fanalyze, Kamil Dudka, 2020/05/12
- Re: gcc -fanalyze, Paul Eggert, 2020/05/12
- Re: gcc -fanalyze, Kamil Dudka, 2020/05/12
- Re: gcc -fanalyze, Paul Eggert, 2020/05/12
- Re: gcc -fanalyze, Kamil Dudka, 2020/05/13
- Re: gcc -fanalyze, Jeffrey Walton, 2020/05/13
- Re: reclaiming memory before exit,
Bruno Haible <=
- Re: reclaiming memory before exit, Jeffrey Walton, 2020/05/14
- Re: reclaiming memory before exit, Paul Eggert, 2020/05/14
- Re: reclaiming memory before exit, Jeffrey Walton, 2020/05/15
- Re: reclaiming memory before exit, Kamil Dudka, 2020/05/15
- Re: reclaiming memory before exit, Bruno Haible, 2020/05/15
- Re: reclaiming memory before exit, Jeffrey Walton, 2020/05/15
- Re: reclaiming memory at dlclose time, Bruno Haible, 2020/05/15
- Re: reclaiming memory before exit, Paul Smith, 2020/05/15
- Re: reclaiming memory before exit, Bruno Haible, 2020/05/15
- Re: reclaiming memory before exit, Paul Smith, 2020/05/16