[concurrency-interest] Atomicity of clearing of WeakReferences

Joseph Seigh jseigh_cp00 at xemaps.com
Tue Jul 14 19:28:49 EDT 2009


If you have more than one WeakReference pointing to an object, and the 
object no longer has any normal references, are the references cleared 
atomically?   Or can you bring an object back into play by getting a 
reference to it from a WeakReference that hasn't been cleared after 
seeing a different WeakReference to it get cleared?

Joe Seigh


More information about the Concurrency-interest mailing list