Xref: utzoo comp.lang.c++:4774 comp.lang.smalltalk:1398 comp.lang.eiffel:435 comp.lang.misc:3505
Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rutgers!usc!polyslo!ttwang
From: ttwang@polyslo.CalPoly.EDU (Thomas Wang)
Newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.misc
Subject: Incremental Garbage Colector
Message-ID: <1989Sep24.050316.28411@polyslo.CalPoly.EDU>
Date: 24 Sep 89 05:03:16 GMT
Reply-To: ttwang@polyslo.CalPoly.EDU (Thomas Wang)
Followup-To: comp.lang.misc
Distribution: usa
Organization: Cal Poly State University -- San Luis Obispo
Lines: 15

I have almost completed an incremental mark & sweep garbage collector for
C++.  A question that I have is : "How often should I run the collectors?"
If I never run it, the system will do panic garbage collection all the time.
But if I run it too often, the system will never get any useful work done.

Is there a formula or heuristic that I can use to decide how often to run
the collector?

Thanks.

 -Thomas Wang ("This is a fantastic comedy that Ataru and his wife Lum, an
                invader from space, cause excitement involving their neighbors."
                  - from a badly translated Urusei Yatsura poster)

                                                     ttwang@polyslo.calpoly.edu