[gclist] Finalizers & Reference counting.
Stefan Monnier
monnier+lists.gc@rum.cs.yale.edu
21 Aug 2002 17:48:45 -0400
>>>>> "David" == David S Wise <dswise@cs.indiana.edu> writes:
> This is self-advertising, but it is old and might be better known.
> No lock is necessary if the reference-count is being
> incremented/decremented locally to the object.
And of course, there's always the weighted-ref-count approach that can
remove most accesses to the object's refcount. Coupled with a few standard
approaches to optimize away transient inc/dec pairs, it reduces the
frequency of access to the refcount itself (which is not only an issue in
terms of synchronization but also cache pollution).
Stefan