[concurrency-interest] Atomicity of clearing of WeakReferences

Bob Lee crazybob at crazybob.org
Wed Jul 15 02:38:42 EDT 2009

2009/7/15 Karnok Dávid <karnok at sztaki.hu>

>  Is there a reason the Reference sublcasses are not final? I think if
> there are only limited number of reference types, why not have them
> individually and have Reference<T> as a superinterface?
If you need to clean up after the referent, you don't have the object around
anymore, so you store any state necessary for the cleanup in the
WeakReference subclass.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20090715/0b6c1f1b/attachment.html>

More information about the Concurrency-interest mailing list