Re: Heap allocation

From: James Antill (james-netnews_at_and.org)
Date: 09/01/04


Date: Wed, 01 Sep 2004 12:20:13 -0400

On Wed, 01 Sep 2004 02:23:46 -0700, asm wrote:

> Hi All,
>
> When a process allocates dynamic storage by making a call
> to malloc(), does it get allocated from a per process heap
> or a system wide heap?

 malloc() is an API), it can be implemented in a number of ways, for
instance hoard[1] implements it one way ... Solaris another way[2], glibc
another way[3]. There are more than a few comparisons.

[1] http://www.cs.umass.edu/~emery/hoard/

[2] http://docs.sun.com/?q=malloc&p=/doc/816-0213/6m6ne385r&a=view
    http://docs.sun.com/db/doc/816-0213/6m6ne37qu?a=view

[3] http://gee.cs.oswego.edu/dl/html/malloc.html

-- 
James Antill -- james@and.org
Need an efficient and powerful string library for C?
http://www.and.org/vstr/


Relevant Pages

  • MSVCRT Heap?
    ... I recently read that the heap that you access when you use malloc and free is ... Is the "default" or process heap ever used then if you're ... Why does MSVCRT not just use ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Access violation in malloc when not using debug runtime libraries
    ... I allocate the space for objects out of ... the process heap using malloc. ... David Liebtag ...
    (microsoft.public.vstudio.development)