home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!agate!doc.ic.ac.uk!uknet!lsl!snail
- From: snail@lsl.co.uk
- Newsgroups: comp.windows.x
- Subject: Re: FLAME, FLAME ON X!!!
- Message-ID: <1992Nov18.183826.2652@lsl.co.uk>
- Date: 18 Nov 92 17:38:26 GMT
- References: <1683@igd.fhg.de> <1992Nov9.235741.25166@dsd.es.com>
- Organization: Laser-Scan Ltd., Cambridge
- Lines: 33
-
- In article <1992Nov9.235741.25166@dsd.es.com>, pmartz@dsd.es.com (Paul Martz) writes:
- > In article <1683@igd.fhg.de>, baumann@igd.fhg.de (Peter Baumann) writes:
- >> [ ... ]
- >>
- >> Short after that, a colleague of the bad-luck guy occasionally
- >> remarked, "Did you know that the X windows server never releases
- >> memory space once acquired for image display? Each new image loaded
- >> makes the X server address space grow until there's no more available."
- >> And added, "This is a well-known bug of X". Well-known. Well...
- >
- > Care to tell us in which vendor's X is this a bug? I've certainly
- > never heard of it before.
-
- This is NOT an X bug. This is a feature of C's memory allocation routines. When
- memory is allocated, if there is no spare space, the C library asks the
- OS for more memory, but when memory is freed, C does not give the memory back
- to the OS. As a result programs can only get bigger, or stay the same size as
- memory as allocated and freed. The program gets bigger every time memory is
- requested and cannot be allocate out of the current free heap space. When this
- happens the C library ask the OS for more memory. When the memory is freed,
- it is returned to the free memory heap, not the OS.
-
- *** This is not a UNIX feature, this is a C feature, to be found on PCs, Ataris
- , UNIX boxes, VAXes etc. This a feature, ie: C is designed this way. ****
-
- My apologies for replying to this thread 3 days late, someone has probably said
- this before. But then again, maybe they haven't.
- --
- snail@lsl.co.uk
-
- "para-phrasing an American's .sig"....
- For the record, I did not vote for Bill Clinton
- :-)
-