• Hiroshi Yamauchi's avatar
    Fix Object::Clone()'s pre-fence barrier. · 4cd662e5
    Hiroshi Yamauchi authored
    Pass in a pre-fence barrier object that sets in the array length
    instead of setting it after returning from AllocObject().
    
    Fix another potential bug due to the wrong default pre-fence barrier
    parameter value. Since this appears error-prone, removed the default
    parameter value and make it an explicit parameter.
    
    Fix another potential moving GC bug due to a lack of a SirtRef.
    
    Bug: 13097759
    Change-Id: I466aa0e50f9e1a5dbf20be5a195edee619c7514e
    4cd662e5
heap-inl.h 12.9 KB