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:10 +0000 (13:21 -0400)
commit58c90a340ef057b014e9b97e595a0b7dfaa8f36f
tree3e363af1c7608e2aba65eb038272471b8d250315
parent0d657320a24b17ad7762396c5ef5db3640262af4
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.025809 seconds and 4 git commands to generate.