Skip to content

Commit 9bace9f

Browse files
committed
doc: Remove arrayRCU.rst
Although RCU can in theory be used to protect array indexes in a manner similar to the way it protects pointers, doing so is extremely risky because of the huge number of optimizations that modern compilers can apply to integral types. For but one example, if your code can be configured such that your array contains only a single element, then indexing that array with any integer other than zero invokes undefined behavior, which in turn means that the compiler is within its rights to assume (without checking!) that any integer used as an index to that array has the value zero. Therefore, the compiler can index the array with the constant zero, which breaks any dependencies that might have otherwise existed between the time the actual value was loaded and the time that the array was indexed. This commit therefore removes the arrayRCU.rst file that describes how to go about carrying dependencies through array indexes. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 539c004 commit 9bace9f

File tree

2 files changed

+0
-166
lines changed

2 files changed

+0
-166
lines changed

Documentation/RCU/arrayRCU.rst

Lines changed: 0 additions & 165 deletions
This file was deleted.

Documentation/RCU/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ RCU concepts
99
.. toctree::
1010
:maxdepth: 3
1111

12-
arrayRCU
1312
checklist
1413
lockdep
1514
lockdep-splat

0 commit comments

Comments
 (0)