Re: Freeing memory - will it be available immediately
- From: Kelsey Bjarnason <kbjarnason@xxxxxxxxx>
- Date: Thu, 28 Feb 2008 09:38:53 -0800
On Thu, 28 Feb 2008 12:33:16 +0000, Richard Bos wrote:
Kelsey Bjarnason <kbjarnason@xxxxxxxxx> wrote:
On Wed, 27 Feb 2008 10:19:59 +0000, Richard Bos wrote:
Kelsey Bjarnason <kbjarnason@xxxxxxxxx> wrote:
On Tue, 26 Feb 2008 07:25:14 +0000, Richard Bos wrote:
Kelsey Bjarnason <kbjarnason@xxxxxxxxx> wrote:
Is it? I see nothing whatsoever in the definition of free which
allows for any implementation-defined behaviour; its behaviour,
quite the contrary, is absolutely and clearly defined, and *does
not permit* handing the memory back to the OS.
You keep opining that, and you continue to be wrong.
If I'm wrong, please point out the clause which allows the defined
behaviour to work other than as the standard defines it
There is none. Your interpretation of "as the standard defines it" is
wrong.
You keep saying that, why is it you seem unable to demonstrate it?
It's been explained several times, but you refuse to accept it.
One (one last!) more time:
Your interpretation of "for further allocation" as "for futher
allocation by the current program alone" is a reasonable one.
Since the very thing whose behaviour is being defined is the C program,
it is the *only* relevant context in which to define the behaviour.
Others'
interpretation of "for further allocation" as "for futher allocation by
any program" is also a reasonable one.
Except that this ignores the very reason for the standard, which is *not*
to define behaviours of "any program".
Your refusal to accept the
others' interpretation as reasonable is unreasonable;
On the contrary, it is perfectly reasonable, as they have yet to give any
justification for this magical intrusion of the rest of the world into
the operation of free, contrary to the dictates of the standard, and
apparently alone of all the standard library functions.
The fact they cannot justify this means they cannot claim their position
*is* justified, therefore they have no argument.
So again, how about *showing* I'm wrong, rather than simply hand-waving?
Show me where, in the standard's definition of free, it allows *any* form
of implementation-defined behaviour or the like which allows free to
return the memory back to the OS in the manner you describe.
You can't. It's not there. What is there is a guarantee that the memory
is made available for further allocation, a guarantee made in defining
the behaviours and expectations of a C program.
Do, please, show me the clause which allows the behaviour you describe,
as it's not to be found in the definition of free. Nor anywhere else as
far as I can tell. You've obviously found such a clause, why can't you
quote it?
.
- Follow-Ups:
- Re: Freeing memory - will it be available immediately
- From: lawrence . jones
- Re: Freeing memory - will it be available immediately
- From: Ben Bacarisse
- Re: Freeing memory - will it be available immediately
- From: Richard Bos
- Re: Freeing memory - will it be available immediately
- From: muntyan
- Re: Freeing memory - will it be available immediately
- From: Micah Cowan
- Re: Freeing memory - will it be available immediately
- References:
- Freeing memory - will it be available immediately
- From: karthikbalaguru
- Re: Freeing memory - will it be available immediately
- From: karthikbalaguru
- Re: Freeing memory - will it be available immediately
- From: santosh
- Re: Freeing memory - will it be available immediately
- From: Kelsey Bjarnason
- Re: Freeing memory - will it be available immediately
- From: Richard Bos
- Re: Freeing memory - will it be available immediately
- From: Kelsey Bjarnason
- Re: Freeing memory - will it be available immediately
- From: Richard Bos
- Re: Freeing memory - will it be available immediately
- From: Kelsey Bjarnason
- Re: Freeing memory - will it be available immediately
- From: Richard Bos
- Freeing memory - will it be available immediately
- Prev by Date: Re: On macros
- Next by Date: Compile time details of an 'extern variable'
- Previous by thread: Re: Freeing memory - will it be available immediately
- Next by thread: Re: Freeing memory - will it be available immediately
- Index(es):
Relevant Pages
|
|