From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Replace CAS loop with single TAS in ProcArrayGroupClearXid()
Date: Sat, 22 Sep 2018 13:27:50 +0000
Message-ID: <E1g3hws-0003yk-2r@gemulon.postgresql.org> (raw)
Replace CAS loop with single TAS in ProcArrayGroupClearXid()
Single pg_atomic_exchange_u32() is expected to be faster than loop of
pg_atomic_compare_exchange_u32(). Also, it would be consistent with
clog group update code.
Discussion: https://postgr.es/m/CAPpHfdtxLsC-bqfxFcHswZ91OxXcZVNDBBVfg9tAWU0jvn1tQA%40mail.gmail.com
Reviewed-by: Amit Kapila
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2f39106a209e647d7b1895331fca115f9bb6ec8d
Modified Files
--------------
src/backend/storage/ipc/procarray.c | 10 ++--------
1 file changed, 2 insertions(+), 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: akorotkov@postgresql.org
Subject: Re: pgsql: Replace CAS loop with single TAS in ProcArrayGroupClearXid()
In-Reply-To: <E1g3hws-0003yk-2r@gemulon.postgresql.org>
References: <E1g3hws-0003yk-2r@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