Article View: comp.sw.components
Article #184Re: Garbage Collection & ADTs
From: Stephen Crawley
Date: Wed, 27 Sep 1989 22:14
Date: Wed, 27 Sep 1989 22:14
18 lines
1137 bytes
1137 bytes
Randell Jesup writes: > But GC is unlikely to reclaim that storage. Yes, the graph no longer > has pointers to the disconnected subgraph. However, the subgraph may be > circular (you said it was cyclic), so all the nodes of the subgraph may still > have references to them. Can current GC systems recognize such a loop and > remove it in it's entirety? Of course. Only brain-dead garbage collectors that rely exclusively on reference counts can't get rid of cycles. (Reference counting garbage collectors are bad news anyhow, since they entail the overhead of a ref count inc/dec on every assignment.) > How complex can such a loop be and still be recognized? Arbitrarily complex. -- Steve
Technical Details
Message-ID:
<924@scaup.cl.cam.ac.uk>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!cam-cl!sccReferences:
<911@scaup.cl.cam.ac.uk> <6589@hubcap.clemson.edu> <2079@hydra.gatech.EDU> <8012@cbmvax.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!cam-cl!scc From: scc@cl.cam.ac.uk (Stephen Crawley) Newsgroups: comp.sw.components Subject: Re: Garbage Collection & ADTs Message-ID: <924@scaup.cl.cam.ac.uk> Date: 27 Sep 89 22:14:27 GMT References: <911@scaup.cl.cam.ac.uk> <6589@hubcap.clemson.edu> <2079@hydra.gatech.EDU> <8012@cbmvax.UUCP> Sender: news@cl.cam.ac.uk Organization: U of Cambridge Comp Lab, UK Lines: 18