X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=urcu-static.h;h=91d37470fe785ffffd13dc7ebbebeb1357170cd7;hb=809f4fdeada96d22ac2d91603f3dfb68282f4071;hp=1921097dbb8596a9d134fecdea5e2bcfe9444c2d;hpb=b4ce15269d95cb1fc5542d0e192ec593b2222dd5;p=urcu.git diff --git a/urcu-static.h b/urcu-static.h index 1921097..91d3747 100644 --- a/urcu-static.h +++ b/urcu-static.h @@ -76,6 +76,13 @@ * 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(). */