pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Choose ppc compare_exchange constant path for more operand value
Date: Mon, 12 Oct 2020 04:38:47 +0000
Message-ID: <E1kRpbj-0004lI-Kk@gemulon.postgresql.org> (raw)

Choose ppc compare_exchange constant path for more operand values.

The implementation uses smaller code when the "expected" operand is a
small constant, but the implementation needlessly defined the set of
acceptable constants more narrowly than the ABI does.  Core PostgreSQL
and PGXN don't use the constant path at all, so this is future-proofing.
Back-patch to v13, where commit 30ee5d17c20dbb282a9952b3048d6ad52d56c371
introduced this code.

Reviewed by Tom Lane.  Reported by Christoph Berg.

Discussion: https://postgr.es/m/20201009092825.GD889580@msg.df7cb.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/88ea7a1188d1afb25695124045e0ff81870f55e3

Modified Files
--------------
src/include/port/atomics/arch-ppc.h | 14 ++++----------
src/test/regress/regress.c          |  8 ++++++++
2 files changed, 12 insertions(+), 10 deletions(-)



view thread (2+ messages)

Message-ID: <E1kRpbj-0004lI-Kk@gemulon.postgresql.org>
Permalink:  ../E1kRpbj-0004lI-Kk@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kRpbj-0004lI-Kk@gemulon.postgresql.org

 · 

reply

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: noah@leadboat.com
  Subject: Re: pgsql: Choose ppc compare_exchange constant path for more operand value
  In-Reply-To: <E1kRpbj-0004lI-Kk@gemulon.postgresql.org>
  References: <E1kRpbj-0004lI-Kk@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