help-hurd
[Top][All Lists]
Advanced

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

Re: Is malloc garbage collecting?


From: Wolfgang Jährling
Subject: Re: Is malloc garbage collecting?
Date: Sun, 14 Apr 2002 19:50:57 +0200
User-agent: Mutt/1.0.1i

Marcus Brinkmann <marcus@gnu.org> wrote:
> On Sun, Apr 14, 2002 at 05:20:55PM +0200, Wolfgang J?hrling wrote:
> > Maybe I'm just understanding the MiG documentation wrong, but I thought
> > the "dealloc" would take care of exactly this case. (Which was probably
> > the reason I originaly wrote the code the way I did).
> 
> This does only have an effect on the server side and is necessary
> because the server doesn't have a chance to release a return buffer it
> allocated after it passed control back to mig (otherwise mig would need
> to call a cleanup handler for data buffers).

Thank you for your clarifications, Marcus. I think I need to update some
code now.

> > But then I don't understand why the glibc code copies the data back from
> > the newly allocated space to the old one (provided by the client).
> 
> Because glibc implements the POSIX read() function, which reads into the
> user supplied buffer.

I know, I just didn't understand it under my wrong assumption about
dealloc.

Cheers,
GNU/Wolfgang

-- 
Wolfgang Jährling  <wolfgang@pro-linux.de>  \\  http://stdio.cjb.net/
Debian GNU/Hurd user && Debian GNU/Linux user \\  http://www.gnu.org/
The Hurd Hacking Guide: http://www.gnu.org/software/hurd/hacking-guide/
["We're way ahead of you here. The Hurd has always been on the    ]
[ cutting edge of not being good for anything." -- Roland McGrath ]




reply via email to

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