Skip to content

Commit

Permalink
Documentation: Fix memory-barriers.txt example
Browse files Browse the repository at this point in the history
This commit fixes a broken example of overlapping stores in the
Documentation/memory-barriers.txt file.

Reported-by: Nikunj A Dadhania <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
paulmck committed Oct 23, 2012
1 parent 6f0c058 commit f191eec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Documentation/memory-barriers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,13 @@ And there are a number of things that _must_ or _must_not_ be assumed:

And for:

*A = X; Y = *A;
*A = X; *(A + 4) = Y;

we may get either of:
we may get any of:

STORE *A = X; Y = LOAD *A;
STORE *A = Y = X;
STORE *A = X; STORE *(A + 4) = Y;
STORE *(A + 4) = Y; STORE *A = X;
STORE {*A, *(A + 4) } = {X, Y};


=========================
Expand Down

0 comments on commit f191eec

Please sign in to comment.