pgsql: Provide a generic fallback for pg_compiler_barrier using an exte
В списке pgsql-committers по дате отправления:
| От | Andres Freund |
|---|---|
| Тема | pgsql: Provide a generic fallback for pg_compiler_barrier using an exte |
| Дата | |
| Msg-id | E1YA6HK-0000Q8-O1@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Provide a generic fallback for pg_compiler_barrier using an extern function. If the compiler/arch combination does not provide compiler barriers, provide a fallback. That fallback simply consists out of a function call into a externally defined function. That should guarantee compiler barrierer semantics except for compilers that do inter translation unit/global optimization - those better provide an actual compiler barrier. Hopefully this fixes Tom's report of linker failures due to pg_compiler_barrier_impl not being provided. I'm not backpatching this commit as it builds on the new atomics infrastructure. If we decide an equivalent fix needs to be backpatched, I'll do so in a separate commit. Discussion: 27746.1420930690@sss.pgh.pa.us Per report from Tom Lane. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/de6429a8fdd3538e977b482d90389785d733e373 Modified Files -------------- src/backend/port/atomics.c | 8 ++++++++ src/include/port/atomics/fallback.h | 16 ++++++++++++++++ 2 files changed, 24 insertions(+)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера