6647361: use Unsafe.put*Volatile methods to set final fields during default deserialization
linuxhippy at gmail.com
Tue Dec 14 20:37:07 UTC 2010
> I've also been concerned about performance. As I understand it, but maybe
> I have
> it wrong, is that the JLS  doesn't allow this when changing final
> after an object is constructed.
But don't we have the same overhead at object construction time?
I remember having read somewhere the JVM issues fence/barrier
instructions after an object has been created?
More information about the core-libs-dev