RFR: 8142487: Cleanup sun.invoke.util.Wrapper zeroes to be both reliable and lazy

Claes Redestad claes.redestad at oracle.com
Tue Nov 17 11:04:24 UTC 2015

On 2015-11-14 01:05, Vladimir Ivanov wrote:
>> I think we have to add a storeFence or two to avoid publishing
>> NamedFunctions whose resolvedHandle may otherwise be observed as only
>> partially visible:
>> http://cr.openjdk.java.net/~redestad/8142487/webrev.03/
> Same here. No need in Unsafe.storeFence if proper constructor is used.

Right, together with the added lazy initialization safety we added in 
8142334[1] I think this is more than enough:



[1] https://bugs.openjdk.java.net/browse/JDK-8142334

More information about the core-libs-dev mailing list