Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!microsoft!earleh From: earleh@microsoft.UUCP (Earle HORTON) Newsgroups: comp.sys.mac.programmer Subject: Re: Memory Manager Garbage Collector? Message-ID: <54471@microsoft.UUCP> Date: 5 May 90 20:00:58 GMT References: <1990Apr29.154439.12596@aucs.uucp> <40634@apple.Apple.COM> Reply-To: earleh@microsoft.UUCP (Earle R. Horton) Organization: Microsoft Corp., Redmond WA Lines: 15 In article <40634@apple.Apple.COM> lins@Apple.COM (Chuck Lins) writes: >In article <1990Apr29.154439.12596@aucs.uucp> ifocs9d@aucs.uucp (Rick Giles) writes: >>What is the underlying algorithm used by the Memory Manager garbage >>collector? Is it a variant of mark-and-sweep? ... >The Memory Manager does not garbage collect. It may compact the heap (at >certain well-defined times). The programmer must explicitly call DisposPtr >and/or DisposHandle as appropriate. You can mark relocatable blocks as purgeable using HPurge, and you can get the Memory Manager to get rid of them using PurgeMem. This looks an awful lot like garbage collection to me! Earle R. Horton