[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug#102437: dealloc analysis for each server function, more bugs!
From: |
Marcus Brinkmann |
Subject: |
Bug#102437: dealloc analysis for each server function, more bugs! |
Date: |
Wed, 27 Jun 2001 15:04:20 +0200 |
User-agent: |
Mutt/1.3.18i |
On Wed, Jun 27, 2001 at 02:52:17PM +0200, Marcus Brinkmann wrote:
> So, this should not use dealloc. However, idvec->ids is NOT a mmap'ed
> buffer! It is a malloced/realloced buffer (coming from
> libshouldbeinlibc/idvec.c).
>
> Is it correct that this should better use iohelp_return_malloced_buffer
> and dealloc or mmap in idvec.h for the performance?
It just occured to me that it is probably safe to use malloc()'ed buffers,
as long as you don't use dealloc with them? It's a bit awkward, because
this is mixing Mach level with glibc level stuff. I don't know if it is
safe to return a buffer that is not starting at a mmap'ed region, for
example.
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de