]> granicus.if.org Git - postgresql/commit
Fix issues in e8fdbd58fe.
authorAndres Freund <andres@anarazel.de>
Sat, 8 Apr 2017 00:03:21 +0000 (17:03 -0700)
committerAndres Freund <andres@anarazel.de>
Sat, 8 Apr 2017 00:09:03 +0000 (17:09 -0700)
commitf13a9121f9822eafe05cc3178bf046155a248173
tree83cf3ff509fd2e0c8e59c40c5f3c1d292e66f748
parent453aaf76880b42eb5f205933d2422fe7c773b06f
Fix issues in e8fdbd58fe.

When the 64bit atomics simulation is in use, we can't necessarily
guarantee the correct alignment of the atomics due to lack of compiler
support for doing so- that's fine from a safety perspective, because
everything is protected by a lock, but we asserted the alignment in
all cases.  Weaken them.  Per complaint from Alvaro Herrera.

My #ifdefery for PG_HAVE_8BYTE_SINGLE_COPY_ATOMICITY wasn't
sufficient. Fix that.  Per complaint from Alexander Korotkov.
src/include/port/atomics.h
src/include/port/atomics/generic.h