home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12704 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.7 KB

  1. Path: sparky!uunet!mcsun!corton!seti!goudurix.inria.fr!edelson
  2. From: daniel.edelson@inria.fr (Daniel R. Edelson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Garbage Collection for C++
  5. Message-ID: <4094@seti.UUCP>
  6. Date: 21 Aug 92 07:30:27 GMT
  7. References: <1992Aug6.014619.2111@ucc.su.OZ.AU> <DAVEG.92Aug20022559@synaptx.synaptics.com>
  8. Sender: news@seti.UUCP
  9. Reply-To: Daniel R. Edelson <daniel.edelson@inria.fr>
  10. Organization: INRIA -- Institut National de Recherche en Informatique et Automatique -- Rocquencourt, France
  11. Lines: 21
  12.  
  13. In article <DAVEG.92Aug20022559@synaptx.synaptics.com>, daveg@synaptics.com (Dave Gillespie) writes:
  14. |> In article <boehm.714158406@siria> boehm@parc.xerox.com (Hans Boehm) writes:
  15. |> 
  16. |> > Presumably you're really worried about pause times, and frequency of pauses.
  17. |> > That's usually a valid concern, but in the presence of concurrent or
  18. |> > incremental collection, things become less clear.  Even in the presence
  19. |> > of generational collection, it may not buy you much if the short-lived
  20. |> > objects are the ones that are being handled manually.
  21. |> 
  22. |> Do you really think incremental or generational collectors are
  23. |> feasible in C++?  I've never looked in the guts of one of these
  24. |> collectors, but as I understand it they tend to depend on the
  25. |> ability to move data around, and other things that a C++ collector
  26. |> might not be able to get away with.  (C++'s use of pointers is so
  27. |> unrestricted that it's a minor miracle it's possible to do garbage
  28. |> collection at all...)
  29.  
  30. Plain old non-relocating garbage collectors can be
  31. generational and/or incremental. This is sometimes overlooked
  32. because of how common copying collectors are, and because most of
  33. the first generational and incremental collectors were copying collectors. 
  34.