pgsql: Remove overzeleous assertions in pg_atomic_flag code.

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Remove overzeleous assertions in pg_atomic_flag code.
Дата
Msg-id E1f4zCU-0002lC-8Y@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Remove overzeleous assertions in pg_atomic_flag code.

The atomics code asserts proper alignment in various places. That's
mainly because the alignment of 64bit integers is not sufficient for
atomic operations on all platforms. Some ABIs only have four byte
alignment, but don't have atomic behavior when crossing page
boundaries.

The flags code isn't affected by that however, as the type alignment
always is sufficient for atomic operations. Nevertheless the code
asserted alignment requirements. Before 8c3debbb it was only broken on
hppa, after it probably affect further platforms.

Thus remove the assertions for pg_atomic_flag operators.

Per buildfarm animal pademelon.

Discussion: https://postgr.es/m/7223.1523124425@sss.pgh.pa.us
Backpatch: 9.5-

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d234602c28e8e1baea342602dbb404cee9fde47e

Modified Files
--------------
src/include/port/atomics.h | 8 --------
1 file changed, 8 deletions(-)


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgsql: Support partition pruning at execution time
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Remove overzeleous assertions in pg_atomic_flag code.