[concurrency-interest] Object finalization
gregg at cytetech.com
Tue May 15 10:39:55 EDT 2012
On 5/15/2012 8:15 AM, David M. Lloyd wrote:
> I've given up on finalization for native resources for just this reason; instead
> I use refcounting. It's not great because there's a CAS on entry+exit but I find
> that I can also use the same trick to replace locking in many cases so I'm
> hoping that it'll even out in the benchmarks. I almost have myself convinced
> that it will scale better than the finalizer option. We shall see.
I've done this in a lot of other places myself too. It just simplifies so many
things to have dependable, accurate life cycles.
More information about the Concurrency-interest