Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!uunet!mcvax!hp4nl!esatst!neil
From: neil@yc.estec.nl (Neil Dixon)
Newsgroups: comp.sys.hp
Subject: Re: Freeing memory in starbase Display Lists
Message-ID: <1037@esatst.yc.estec.nl>
Date: 18 Aug 89 07:28:53 GMT
References: <1035@esatst.yc.estec.nl> <5570267@hpfcdc.HP.COM>
Reply-To: neil@esatst.UUCP (Neil Dixon)
Organization: ESTEC/YCV, Noordwijk, The Netherlands
Lines: 23

In article <5570267@hpfcdc.HP.COM> stroyan@hpfcdc.HP.COM (Mike Stroyan) writes:

>free() all of the malloc'd memory, but the malloc library does not
>reduce process size when memory is freed.  The free memory is placed on
>a list of free memory that can be used by future malloc operations.
>
>If you only want to be able to malloc more memory, then you have no
>problem.  If you want to reduce the size of the process to use less swap
>Mike Stroyan, stroyan@hpfcla.hp.com

Maybe I'm doing something wrong, but if I create a display list,
delete it using delete_all_segments then recreate exactly the same
list, the process size increases. Has this anything to do with the
fact that I'm not using -lmalloc. I can't use this since I'm using the
X toolkit in the same program and XtMalloc chokes when -lmalloc is
used.


-- 
Neil Dixon  UUCP:...!mcvax!esatst!neil, BITNET: NDIXON@ESTEC
Thermal Control & Life Support Division (YC) 
European Space Research and Technology Centre (ESTEC),
Noordwijk, The Netherlands.