Fix: use atomic load memory_order_consume for rcu_dereference on C11/C++11 master
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 16 Apr 2021 20:22:54 +0000 (16:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 16 Apr 2021 20:26:01 +0000 (16:26 -0400)
commit380f4b19052944e5f9990ba02b6fc6117ce446b4
tree99cbca11d8c8fb9e28838653aab2032fd0f805fa
parent7afcc7685532e13f39fc13d505c96a3e5581d4d3
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.032088 seconds and 4 git commands to generate.