From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove overzeleous assertions in pg_atomic_flag code.
Date: Sun, 08 Apr 2018 01:32:59 +0000
Message-ID: <E1f4zCV-0002lY-D1@gemulon.postgresql.org> (raw)
Remove overzeleous assertions in pg_atomic_flag code.
The atomics code asserts proper alignment in various places. That's
mainly because the alignment of 64bit integers is not sufficient for
atomic operations on all platforms. Some ABIs only have four byte
alignment, but don't have atomic behavior when crossing page
boundaries.
The flags code isn't affected by that however, as the type alignment
always is sufficient for atomic operations. Nevertheless the code
asserted alignment requirements. Before 8c3debbb it was only broken on
hppa, after it probably affect further platforms.
Thus remove the assertions for pg_atomic_flag operators.
Per buildfarm animal pademelon.
Discussion: https://postgr.es/m/7223.1523124425@sss.pgh.pa.us
Backpatch: 9.5-
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/11b1a39e1642611aa31f9151aa198711d966a1be
Modified Files
--------------
src/include/port/atomics.h | 8 --------
1 file changed, 8 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andres@anarazel.de
Subject: Re: pgsql: Remove overzeleous assertions in pg_atomic_flag code.
In-Reply-To: <E1f4zCV-0002lY-D1@gemulon.postgresql.org>
References: <E1f4zCV-0002lY-D1@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox