Path: utzoo!attcan!uunet!mcvax!unido!sbsvax!greim From: greim@sbsvax.UUCP (Michael Greim) Newsgroups: comp.lang.c Subject: Re: Storage Allocation/compaction Summary: There was one package posted in comp.sources.unix Keywords: malloc Message-ID: <540@sbsvax.UUCP> Date: 18 Jul 88 12:39:52 GMT References: <2045@uhccux.uhcc.hawaii.edu> Organization: Universitaet des Saarlandes, Saarbruecken, West Germany Lines: 38 In article <2045@uhccux.uhcc.hawaii.edu>, lupton@uhccux.uhcc.hawaii.edu (Robert Lupton) writes: < I have been using malloc/free under 4.2/4.3 BSD in an image processing < programme that deals with 1Mby files, and otherwise makes heavy use of < dynamic memory. I find that after a while my process grows to vast sizes < (64 Mby or so), as the memory gets fragmented. Then malloc returns NULL, < or the system hangs up. Obviously, using limit to increase the datasize < would only postpone the problem. < < Does anyone have a public domain storage allocator that could replace < malloc/realloc/free that also has a call to compactify the memory? I < don't wan't to write one, and I don't have a source licence to add a < call to the system version. From what I remember of the 4.2 malloc, using < realloc on freed space wouldn't help, as it doesn't compact the different < free lists. < < Robert Lupton There was one posted recently in comp.sources.unix. It carried the signature | +------------------------------------------------------------------------------+