[concurrency-interest] Thread safety of WeakReference .get() method?

Raph Frank raphfrk at gmail.com
Tue Aug 7 08:47:36 EDT 2012

Is the WeakReference.get() method safe to call from multiple threads
at the same time?

The documentation says that once an object has been determined to be
garbage collectable, "At that time it will atomically clear all weak
references to that object", so presumably, the get method can be
called, some if is atomically set to null?

More information about the Concurrency-interest mailing list