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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Fix a few problems in barrier.h.
Дата
Msg-id 27977.1374118250@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Fix a few problems in barrier.h.  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-committers
Robert Haas <robertmhaas@gmail.com> writes:
> According to http://en.wikipedia.org/wiki/Memory_ordering, PA-RISC has
> weak memory ordering.

BTW, so far as I can see, their reference for that claim is the two
articles by Paul McKenney; but what McKenney actually says is

    Although the PA-RISC architecture permits full reordering of
    loads and stores, actual CPUs run fully ordered. This means the
    Linux kernel's memory-ordering primitives generate no code; they
    do, however, use the GCC memory attribute to disable compiler
    optimizations that would reorder code across the memory barrier.

So the committed patch duplicates what the kernel does (unless someone
cares to dig into the kernel and show otherwise).

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix a few problems in barrier.h.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix direct access to Relation->rd_indpred.