On 02/18/2015 02:16 PM, Vitaly Davidovich wrote:
> I don't think explicit barriers (i.e. Unsafe.xxxFence) should be removed as
> I don't think compiler can prove that it's safe to do so.

Nobody thinks that explicit barriers (i.e. Unsafe.xxxFence) should be
removed.

We're talking about fences at the end of constructors which have final
fields.  These should be removed if the object does not escape.

Andrew.

Reply via email to