pgsql: Fix issues in e8fdbd58fe.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix issues in e8fdbd58fe.
Date: 2017-04-08 00:16:42
Message-ID: E1cwe3W-0007SS-Fw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f13a9121f9822eafe05cc3178bf046155a248173

Modified Files
--------------
src/include/port/atomics.h | 29 ++++++++++++++++++++--
src/include/port/atomics/generic.h | 49 +++++++++++++++++++++++++++-----------
2 files changed, 62 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2017-04-08 00:18:35 Re: [COMMITTERS] pgsql: Improve 64bit atomics support.
Previous Message Andres Freund 2017-04-07 23:36:09 Re: [COMMITTERS] pgsql: Improve 64bit atomics support.