Re: valgrind versus pg_atomic_init()

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2020-06-09T03:25:09Z
Lists: pgsql-hackers
Hi,

On 2020-06-08 18:21:06 -0400, Tom Lane wrote:
> > Yea, it could just do that. It seemed slightly easier/clearer, back when
> > I wrote it, to just use pg_atomic_write* for the initialization, but
> > this seems enough of a reason to stop doing so. Will change it in all
> > branches, unless somebody sees a reason to not do so?
>
> Works for me.

And done.

- Andres



Commits

  1. Avoid need for valgrind suppressions for pg_atomic_init_u64 on some platforms.