Fix: use atomic load memory_order_consume for rcu_dereference on C11/C++11
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 16 Apr 2021 20:22:54 +0000 (16:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Apr 2021 17:21:15 +0000 (13:21 -0400)
commit647389f62215226108dbf9a71dd643022a84e223
treede8fbf65b884e7f887462c943d607d77b31ce9d5
parent7ba6246f7d533f5c8b66103a13dd71f3368d61a1
Fix: use atomic load memory_order_consume for rcu_dereference on C11/C++11

Using volatile accesses for rcu_dereference may cause compiler LTO to
generate incorrectly ordered code starting from C11/C++11.

Link: https://lists.lttng.org/pipermail/lttng-dev/2021-April/029937.html
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/static/pointer.h
This page took 0.025661 seconds and 4 git commands to generate.