Xref: utzoo comp.unix.wizards:21884 comp.unix.questions:22066 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!mips!prls!pyramid!ctnews!mitisft!dold From: dold@mitisft.Convergent.COM (Clarence Dold) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: When will malloc use sbrk? Message-ID: <1473@mitisft.Convergent.COM> Date: 8 May 90 15:56:30 GMT References: <2127@bruce.OZ> Distribution: all Organization: Convergent Technologies, San Jose, CA Lines: 17 in article <2127@bruce.OZ>, mmcg@bruce.OZ (Mike McGaughey) says: -> I also need malloc(3) - because things -> like curses and stdio use it. However, it would be nice to be able to -> check whether malloc will need to use sbrk() before calling malloc - -> that way, I can give malloc large, aligned chunks of memory, to reduce -> fragmentation. -> (1) Is there any simple way to do this? Is it possible, for example, It might be as simple as compiling with -lmalloc, which is an optional malloc library that does sbrk of large, contiguous memory space. -- --- Clarence A Dold - dold@tsmiti.Convergent.COM (408) 435-5293 ...pyramid!ctnews!tsmiti!dold FAX (408) 435-3105 P.O.Box 6685, San Jose, CA 95150-6685 MS#10-007