• Noah Misch's avatar
    Impose a full barrier in generic-xlc.h atomics functions. · 213c7df0
    Noah Misch authored
    pg_atomic_compare_exchange_*_impl() were providing only the semantics of
    an acquire barrier.  Buildfarm members hornet and mandrill revealed this
    deficit beginning with commit 008608b9.
    While we have no report of symptoms in 9.5, we can't rule out the
    possibility of certain compilers, hardware, or extension code relying on
    these functions' specified barrier semantics.  Back-patch to 9.5, where
    commit b64d92f1 introduced atomics.
    
    Reviewed by Andres Freund.
    213c7df0
generic-xlc.h 2.93 KB