Menu

#89 Some systems don't support large malloc()s

open
nobody
None
5
2005-03-09
2005-03-09
Anonymous
No

From: Tonnerre Lombard <tonnerre@thundrix.ch>

On some systems it's impossible to allocate a lot of
memory using malloc(). This is what mmap(MAP_ANON) is
for, after all. Thus we change the malloc() call for a
mmap(MAP_ANON). If the memory needs to be shared, by
the way, just add MAP_SHARED.

WARNING: This patch will probably involve further
changes, so don't apply it to mainline at once!

Discussion

  • Nobody/Anonymous

    Replace huge malloc with tiny mmap

     
  • John_K

    John_K - 2005-04-01

    Logged In: YES
    user_id=1050061

    Except for the fact that only *nix has mmap support.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.