Document access ordering of rcu_dereference wrt VSS
[urcu.git] / urcu-static.h
index 1921097dbb8596a9d134fecdea5e2bcfe9444c2d..91d37470fe785ffffd13dc7ebbebeb1357170cd7 100644 (file)
  * Inserts memory barriers on architectures that require them (currently only
  * Alpha) and documents which pointers are protected by RCU.
  *
+ * The compiler memory barrier in LOAD_SHARED() ensures that value-speculative
+ * optimizations (e.g. VSS: Value Speculation Scheduling) does not perform the
+ * data read before the pointer read by speculating the value of the pointer.
+ * Correct ordering is ensured because the pointer is read as a volatile access.
+ * This acts as a global side-effect operation, which forbids reordering of
+ * dependent memory operations.
+ *
  * Should match rcu_assign_pointer() or rcu_xchg_pointer().
  */
 
This page took 0.022268 seconds and 4 git commands to generate.