help-hurd
[Top][All Lists]
Advanced

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

Memory allocation


From: Ludovic Courtès
Subject: Memory allocation
Date: Wed, 10 Apr 2002 17:44:52 +0200
User-agent: Mutt/1.2.5i

Hi,

On Wed, Apr 10, 2002 at 01:48:08PM +0300, Ognyan Kulev wrote:
> The second question is about using mmap/munmap instead of 
> vm_allocate/vm_deallocate.  In pq.[ch] they are mixed, there is no 
> consistency.  What is the reason to prefer `mmap' to `vm_allocate'?  Is 
> there a policy about that?

Some translators use the libc functions (malloc, mmap, etc.) while others only
use the `native' allocation functions like vm_allocate(). Since libc calls are
wrappers to vm_*, shouldn't be better to use vm_* in any Hurd-specific code
(such as translators)?

Cheers,
Ludovic.



reply via email to

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