Re: Garbage collection/finalizers
Andreas Rottmann <[email protected]> Sun, 17 Oct 2004 16:07:38 +0200
| Newsgroups | gmane.lisp.scheme.pika.devel |
|---|---|
| Message-ID | <[email protected]> |
Andreas Rottmann <[email protected]> writes: > Hi! > > I just wondered about how strings should be garbage collected; > currently, only the vtable object is reclaimed, but the udstr object > stays around forever. Clearly, we need a finalizer for string > objects. [...] > I just realized that a similiar argument could be applied to symbols and keywords, too, since they internally refer to an udstr. Since we want to keep these strings and the resulting symbols/keywords around forever (at least I think we do), we don't need to unref the strings. This however, led me to another observation: AFAICS, the current GC implementation does *not* protect symbol and keyword table from GC; clearly this should be added (or am I missing something?). Regards, Rotty -- Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | [email protected] http://yi.org/rotty | GnuPG Key: http://yi.org/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 To iterate is human; to recurse, divine.