home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19301 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  2.0 KB

  1. 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
  2. From: snail@lsl.co.uk
  3. Newsgroups: comp.windows.x
  4. Subject: Re: FLAME, FLAME ON X!!!
  5. Message-ID: <1992Nov18.183826.2652@lsl.co.uk>
  6. Date: 18 Nov 92 17:38:26 GMT
  7. References: <1683@igd.fhg.de> <1992Nov9.235741.25166@dsd.es.com>
  8. Organization: Laser-Scan Ltd., Cambridge
  9. Lines: 33
  10.  
  11. In article <1992Nov9.235741.25166@dsd.es.com>, pmartz@dsd.es.com (Paul Martz) writes:
  12. > In article <1683@igd.fhg.de>, baumann@igd.fhg.de (Peter Baumann) writes:
  13. >> [ ... ]
  14. >> 
  15. >> Short after that, a colleague of the bad-luck guy occasionally
  16. >> remarked, "Did you know that the X windows server never releases
  17. >> memory space once acquired for image display? Each new image loaded
  18. >> makes the X server address space grow until there's no more available."
  19. >> And added, "This is a well-known bug of X". Well-known. Well...
  20. > Care to tell us in which vendor's X is this a bug? I've certainly
  21. > never heard of it before.
  22.  
  23. This is NOT an X bug. This is a feature of C's memory allocation routines. When
  24. memory is allocated, if there is no spare space, the C library asks the
  25. OS for more memory, but when memory is freed, C does not give the memory back
  26. to the OS. As a result programs can only get bigger, or stay the same size as
  27. memory as allocated and freed. The program gets bigger every time memory is
  28. requested and cannot be allocate out of the current free heap space. When this
  29. happens the C library ask the OS for more memory. When the memory is freed,
  30. it is returned to the free memory heap, not the OS.
  31.  
  32. *** This is not a UNIX feature, this is a C feature, to be found on PCs, Ataris
  33. , UNIX boxes, VAXes etc. This a feature, ie: C is designed this way. ****
  34.  
  35. My apologies for replying to this thread 3 days late, someone has probably said
  36. this before. But then again, maybe they haven't.
  37. -- 
  38. snail@lsl.co.uk      
  39.  
  40. "para-phrasing an American's .sig"....
  41. For the record, I did not vote for Bill Clinton
  42. :-)
  43.