Re: IO in wrong state on riscv64 - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: IO in wrong state on riscv64
Date
Msg-id CA+hUKGKt5o70MB0Yj8QYNOjR3xTH8fTJQ09WdkvA_Rdg-Qag8w@mail.gmail.com
Whole thread Raw
In response to Re: IO in wrong state on riscv64  (Alexander Lakhin <exclusion@gmail.com>)
List pgsql-hackers
On Thu, Oct 23, 2025 at 8:00 PM Alexander Lakhin <exclusion@gmail.com> wrote:
> Unfortunately, this change doesn't lead to change in disassembly of
> pgaio_io_wait(), produced with clang-19 -O1. That is, I'm getting the same
> disassembly as the one I sent you before (error/pgaio_io_wait.asm).

Oh, I think this should work better:

#define pg_read_barrier_impl() \
do { pg_compiler_barrier_impl();
__atomic_thread_fence(__ATOMIC_ACQUIRE); } while (0)



pgsql-hackers by date:

Previous
From: Shlok Kyal
Date:
Subject: Re: issue with synchronized_standby_slots
Next
From: shveta malik
Date:
Subject: Re: POC: enable logical decoding when wal_level = 'replica' without a server restart