Fix: use __atomic_load() rather than atomic load explicit
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Apr 2021 15:21:52 +0000 (11:21 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Apr 2021 17:21:11 +0000 (13:21 -0400)
commit48da0279bc98de31fa9f046d6ff727028e82023c
treeb1742859a00fc6808c43b2f6fc280aecb951a3f3
parent58c90a340ef057b014e9b97e595a0b7dfaa8f36f
Fix: use __atomic_load() rather than atomic load explicit

Use __atomic_load (gcc extension) rather than atomic load explict
(C11/C++11) for rcu_dereference because it does not require the input
type to be _Atomic. This fixes a regression with clang introduced by
commit 380f4b19052 ("Fix: use atomic load memory_order_consume for
rcu_dereference on C11/C++11").

Note that the cmm_smp_read_barrier_depends is removed when using
__ATOMIC_CONSUME because their memory ordering effect is redundant.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Icd5f6040e0bd2167844a8d856ae5475ceef17123
include/urcu/static/pointer.h
This page took 0.02423 seconds and 4 git commands to generate.