RFR: 8073093: AARCH64: C2 generates poor code for ByteBuffer	accesses
    Andrew Haley 
    aph at redhat.com
       
    Wed Feb 18 15:26:00 UTC 2015
    
    
  
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.
    
    
More information about the hotspot-dev
mailing list