From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: spinlock emulation: Fix bug when more than INT_MAX spinlocks are
Date: Wed, 17 Jun 2020 20:09:23 +0000
Message-ID: <E1jleN9-0005Mq-Hf@gemulon.postgresql.org> (raw)
spinlock emulation: Fix bug when more than INT_MAX spinlocks are initialized.
Once the counter goes negative we ended up with spinlocks that errored
out on first use (due to check in tas_sema).
Author: Andres Freund
Reviewed-By: Robert Haas
Discussion: https://postgr.es/m/20200606023103.avzrctgv7476xj7i@alap3.anarazel.de
Backpatch: 9.5-
Branch
------
REL_11_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/34d29222a0bbfd6dd2deecdd91aa202a7b6c3f18
Modified Files
--------------
src/backend/storage/lmgr/spin.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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: spinlock emulation: Fix bug when more than INT_MAX spinlocks are
In-Reply-To: <E1jleN9-0005Mq-Hf@gemulon.postgresql.org>
References: <E1jleN9-0005Mq-Hf@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