home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!sunic!sics.se!eua.ericsson.se!erix.ericsson.se!rv
- From: rv@erix.ericsson.se (Robert Virding)
- Newsgroups: comp.lang.lisp
- Subject: Re: Reference counting (was Re: Yet another Lisp Interpreter Available (RefLisp) Long)
- Message-ID: <1992Dec22.141011.8019@eua.ericsson.se>
- Date: 22 Dec 92 14:10:11 GMT
- References: <1992Dec11.131657.19196@uk03.bull.co.uk> <1gk60iINNjg8@iraul1.ira.uka.de> <1992Dec17.200901.20942@uk03.bull.co.uk> <1gr5ejINN3k5@early-bird.think.com>
- Sender: news@eua.ericsson.se
- Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
- Lines: 28
- Nntp-Posting-Host: renat.eua.ericsson.se
- Nntp-Posting-User: rv
-
- In article <1gr5ejINN3k5@early-bird.think.com>, barmar@think.com (Barry Margolin) writes:
- >In article <1992Dec17.200901.20942@uk03.bull.co.uk> bbirch@hemel.bull.co.uk (Bill Birch) writes:
- >> - RefLisp has reference counting garbage collection, that means
- >> memory is reclaimed as soon as it is un-used. It is a "non-stop"
- >> system, in that there is never any halt for garbage collection (GC).
- >
- >This is a frequent claim that is simply not true. A reference counting
- >system simply changes the time and distribution of the GC delays, but it
- >doesn't eliminate it. For instance, if you allocate a million-element
- >list, and then lose the pointer to the first element, that operation will
- >take a million times longer than losing a pointer to the head of a
- >one-element list, as it has to recursively deallocate all the objects in
- >the list (assuming there are no other pointers into the list). No matter
- >how fast your reference counting scheme is, I can always construct a data
- >structure that takes a noticeable amount of time to deallocate it when the
- >last pointer to the first element is dropped (assuming there's enough
- >memory).
-
- There are reference counting schemes in which the GC delays can be
- made arbitarily small, even real-time. It is not my scheme but I know
- because I have made a real-time implementation using it. See
-
- Glaser, H.W., and Thompson, P., "Lazy Garbage Collection". Software -
- Practice and Experience, 17(1), 1-4, January 1987.
-
-
- Robert Virding @ Ellemtel Utvecklings AB, Stockholm
- EMAIL: rv@erix.ericsson.se
-