From: Alan Modra <amodra@bigpond.net.au>
To: Jerome Guitton <guitton@act-europe.fr>
Cc: binutils@sources.redhat.com, gdb-patches@sources.redhat.com
Subject: Re: [RFA] bfd_cache_close_all
Date: Thu, 17 Jun 2004 02:22:00 -0000 [thread overview]
Message-ID: <20040617022241.GF3596@bubble.modra.org> (raw)
In-Reply-To: <20040616171748.GA8782@act-europe.fr>
On Wed, Jun 16, 2004 at 07:17:48PM +0200, Jerome Guitton wrote:
> The idea would be to have a function bfd_cache_close_all that would
> clear the file descriptor cache.
>
> OK to apply?
> + if (!bfd_last_cache)
> + return TRUE;
> +
> + for (kill = bfd_last_cache->lru_prev;
> + open_files;
> + kill = kill->lru_prev)
> + {
> + ret = ret && bfd_cache_close (kill);
> + }
No need to close oldest first. OK with the following change to simplify
the code.
while (bfd_last_cache != NULL)
ret &= bfd_cache_close (bfd_last_cache);
--
Alan Modra
IBM OzLabs - Linux Technology Centre
next prev parent reply other threads:[~2004-06-17 2:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-16 16:17 Jerome Guitton
2004-06-17 2:22 ` Alan Modra [this message]
2004-06-17 11:51 ` Jerome Guitton
2004-06-17 11:58 ` Jerome Guitton
2004-06-17 12:09 ` Alan Modra
2004-06-17 12:11 ` Jerome Guitton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040617022241.GF3596@bubble.modra.org \
--to=amodra@bigpond.net.au \
--cc=binutils@sources.redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=guitton@act-europe.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox