aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/valgrind.supp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/valgrind.supp b/src/tools/valgrind.supp
index 4721c0a6fb6..0df95eabf12 100644
--- a/src/tools/valgrind.supp
+++ b/src/tools/valgrind.supp
@@ -104,3 +104,16 @@
fun:IsBinaryCoercible
}
+
+# Atomic writes to 64bit atomic vars uses compare/exchange to
+# guarantee atomic writes of 64bit variables. pg_atomic_write is used
+# during initialization of the atomic variable, hat leads to an
+# initial read of the old, undefined, memory value. But that's just to
+# make sure the swap works correctly.
+{
+ uninitialized_atomic_init_u64
+ Memcheck:Cond
+ fun:pg_atomic_exchange_u64_impl
+ fun:pg_atomic_write_u64_impl
+ fun:pg_atomic_init_u64_impl
+}