Re: IO in wrong state on riscv64

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: IO in wrong state on riscv64
Дата
Msg-id 1496141.1762629974@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: IO in wrong state on riscv64  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: IO in wrong state on riscv64
Список pgsql-hackers
... BTW, I wonder why you did not add pg_compiler_barrier_impl()
to our other use of __atomic_thread_fence:

#if !defined(pg_memory_barrier_impl)
#    if defined(HAVE_GCC__ATOMIC_INT32_CAS)
#        define pg_memory_barrier_impl()        __atomic_thread_fence(__ATOMIC_SEQ_CST)
#    elif defined(__GNUC__)
#        define pg_memory_barrier_impl()        __sync_synchronize()
#    endif
#endif /* !defined(pg_memory_barrier_impl) */

If the problem is that Clang doesn't treat __atomic_thread_fence
as a compiler barrier, why is this usage safer than the other two?

            regards, tom lane



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