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!
Replace huge malloc with tiny mmap
Logged In: YES
user_id=1050061
Except for the fact that only *nix has mmap support.