pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Choose ppc compare_exchange constant path for more operand value 2+ messages / 1 participants [nested] [flat]
* pgsql: Choose ppc compare_exchange constant path for more operand value @ 2020-10-12 04:38 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 2+ messages in thread From: Noah Misch @ 2020-10-12 04:38 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Choose ppc compare_exchange constant path for more operand value @ 2020-10-12 04:38 Noah Misch <noah@leadboat.com> 0 siblings, 0 replies; 2+ messages in thread From: Noah Misch @ 2020-10-12 04:38 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5efa788e1d070dd14cb94a8e087184dda36dc3ea Modified Files -------------- src/include/port/atomics/arch-ppc.h | 14 ++++---------- src/test/regress/regress.c | 8 ++++++++ 2 files changed, 12 insertions(+), 10 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-10-12 04:38 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-10-12 04:38 pgsql: Choose ppc compare_exchange constant path for more operand value Noah Misch <noah@leadboat.com> 2020-10-12 04:38 pgsql: Choose ppc compare_exchange constant path for more operand value Noah Misch <noah@leadboat.com>
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