Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!psuvax1!brutus.cs.uiuc.edu!zaphod.mps.ohio-state.edu!usc!petunia!news From: ttwang@polyslo.CalPoly.EDU (Thomas Wang) Newsgroups: comp.lang.c++ Subject: Re: Garbage Collection Summary: new idea Message-ID: <2621340c.4c2a@petunia.CalPoly.EDU> Date: 10 Apr 90 01:17:00 GMT References: <3690010@wdl1.UUCP> Distribution: usa Organization: Cal Poly State Univ,CSC Dept,San Luis Obispo,CA 93407 Lines: 23 rme@wdl1.UUCP (Richard M Emberson Jr) writes: > Question: What garbage collection scheme is appropriate for C++. > Copy garbage collection has problems with the implicit "this". > Are others useful, such as reference counting or fake copying? A new idea just occurred to me while answering Richard's question. We can use mostly copying when the size of the stack is small, and switch to fake copying when the size of the stack is large. This way, you can have the cake and eat it too! I suspect that this idea will be incorporated into MM eventually, and reference counting will be eliminated all together. > Richard M. Emberson > rme@spl.fac.ford.com -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