Re: utf8const & gcrefs

Date view Thread view Subject view Author view

From: Archie Cobbs (archie@whistle.com)
Date: Tue Dec 22 1998 - 14:26:10 EST


Godmar Back writes:
> I described my preference in an earlier mail; basically, I'd like to
> see this COM-like ref counting scheme implemented. Note that the main
> work here probably won't be implementing the refcounting and changing
> the call sites, but adapting the class gc to ensure that everything
> actually gets freed. (It should not, however, be so complicated as to
> actually justify an argument in favor of keeping utf8const in the
> hands of the collector.) What I'm talking about here is linking
> the walkMethod and walkField methods in walkClass, implementing the
> class destructor, etc. pp. Off-hand, though, I would say it should be
> relatively straightforward.

So basically the only GC-related changes are:

 - Gid rid of the Utf8Const finalizer
 - Make sure that objects containing Utf8Const * pointers (eg, Class)
   have explicit finalizers
 - In those finalizers, decrement the reference count of the
   corresponding Utf8Const

Doesn't sound too hard.

-Archie

___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:27 EDT