Re: pgsql: Fix a few problems in barrier.h.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: pgsql: Fix a few problems in barrier.h.
Дата
Msg-id CA+TgmoZRowcAHDct7dLgVzerQBrm9JbWQ9Qwr1h7XmcUD-zdng@mail.gmail.com
обсуждение исходный текст
Ответ на pgsql: Fix a few problems in barrier.h.  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql: Fix a few problems in barrier.h.  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: pgsql: Fix a few problems in barrier.h.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
On Wed, Jul 17, 2013 at 6:39 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Fix a few problems in barrier.h.
>
> On HPPA, implement pg_memory_barrier() as pg_compiler_barrier(), which
> should be correct since this arch doesn't do memory access reordering,
> and is anyway better than the completely-nonfunctional-on-this-arch
> dummy_spinlock code.  (But note this patch only fixes things for gcc,
> not for builds with HP's compiler.)

According to the comments in the barrier.h (and s_lock.h), HPPA is PA-RISC.

According to http://en.wikipedia.org/wiki/Memory_ordering, PA-RISC has
weak memory ordering.

So either this commit is wrong, or one of those things is wrong.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-committers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: doc: Remove tab from SGML file
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix a few problems in barrier.h.