4.2 malloc() on Suns?

Prentiss Riddle riddle at im4u.UUCP
Thu Sep 12 01:38:04 AEST 1985


In article <5079 at allegra.UUCP> jpl at allegra.UUCP (John P. Linderman) writes:
>
> 		 ...Another ``gotcha''  [in 4.2bsd malloc()]
>to beware of is that space, once allocated, is never broken
>into smaller pieces.  For example, if I allocate a 4 meg
>temporary workspace, free it, then allocate a 2 meg area,
>malloc will not reuse the freed space, it will try for a new
>area, and, thanks to the aforementioned quirks, it will fail
>with the standard 6 meg per-process limit.  Dunno if this is
>fixed under 4.3.

Does anyone know if this has been fixed in the Sun version of malloc()?

--- Prentiss Riddle ("Aprendiz de todo, maestro de nada.")
--- {ihnp4,harvard,seismo,gatech}!ut-sally!riddle   riddle at sally.UTEXAS.EDU
--- Leaving the net soon: friends can write for my new snail-mail address.



More information about the Comp.lang.c mailing list