pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Make fallback implementation of pg_memory_barrier() work. 3+ messages / 1 participants [nested] [flat]
* pgsql: Make fallback implementation of pg_memory_barrier() work. @ 2014-05-17 22:29 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2014-05-17 22:29 UTC (permalink / raw) To: pgsql-committers Make fallback implementation of pg_memory_barrier() work. The fallback implementation involves acquiring and releasing a spinlock variable that is otherwise unreferenced --- not even to the extent of initializing it. This accidentally fails to fail on platforms where spinlocks should be initialized to zeroes, but elsewhere it results in a "stuck spinlock" failure during startup. I griped about this last July, and put in a hack that worked for gcc on HPPA, but didn't get around to fixing the general case. Per the discussion back then, the best thing to do seems to be to initialize dummy_spinlock in main.c. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/44cd47c1d49655c5dd9648bde8e267617c3735b4 Modified Files -------------- src/backend/main/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Make fallback implementation of pg_memory_barrier() work in 9.2 @ 2016-04-16 14:42 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2016-04-16 14:42 UTC (permalink / raw) To: pgsql-committers Make fallback implementation of pg_memory_barrier() work in 9.2 and 9.3. Back-patch 9.4-era commit 44cd47c1d49655c5 into 9.2 and 9.3. As with my back-patches of yesterday, this was not seen as necessary at the time because we didn't expect barrier.h to need to work before 9.4, but commit 37de8de9e33606a0 invalidated that theory. Per an attempt to run gaur and pademelon over old branches they've not been run on since ~2013. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/992df96580c544dc3f72b38d8e0a946f2b462749 Modified Files -------------- src/backend/main/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Make fallback implementation of pg_memory_barrier() work in 9.2 @ 2016-04-16 14:42 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 3+ messages in thread From: Tom Lane @ 2016-04-16 14:42 UTC (permalink / raw) To: pgsql-committers Make fallback implementation of pg_memory_barrier() work in 9.2 and 9.3. Back-patch 9.4-era commit 44cd47c1d49655c5 into 9.2 and 9.3. As with my back-patches of yesterday, this was not seen as necessary at the time because we didn't expect barrier.h to need to work before 9.4, but commit 37de8de9e33606a0 invalidated that theory. Per an attempt to run gaur and pademelon over old branches they've not been run on since ~2013. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/9008922bf727ba4337ed26b5c07df7f1d5f1548b Modified Files -------------- src/backend/main/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-04-16 14:42 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2014-05-17 22:29 pgsql: Make fallback implementation of pg_memory_barrier() work. Tom Lane <tgl@sss.pgh.pa.us> 2016-04-16 14:42 pgsql: Make fallback implementation of pg_memory_barrier() work in 9.2 Tom Lane <tgl@sss.pgh.pa.us> 2016-04-16 14:42 pgsql: Make fallback implementation of pg_memory_barrier() work in 9.2 Tom Lane <tgl@sss.pgh.pa.us>
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