Discussions of the Parallel Programming book
 help / color / mirror / Atom feed
* [PATCH] memorder.tex: Fix typos in description of litmus test C-ISA2+o-r+a-r+a-r+a-o
@ 2018-11-05 10:29 Junchang Wang
  2018-11-05 12:15 ` Akira Yokosawa
  0 siblings, 1 reply; 7+ messages in thread
From: Junchang Wang @ 2018-11-05 10:29 UTC (permalink / raw)
  To: paulmck; +Cc: perfbook, Junchang Wang

This is the only patch for the second half of Chapter Memory Ordering. Please
take a look. Thanks.


Signed-off-by: Junchang Wang <junchangwang@gmail.com>
---
 memorder/memorder.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/memorder/memorder.tex b/memorder/memorder.tex
index 8e11e92..7f80612 100644
--- a/memorder/memorder.tex
+++ b/memorder/memorder.tex
@@ -2899,11 +2899,11 @@ shows a three-step release-acquire chain, but where \co{P3()}'s
 final access is a \co{READ_ONCE()} from \co{x0}, which is
 accessed via \co{WRITE_ONCE()} by \co{P0()}, forming a non-temporal
 load-to-store link between these two processes.
-However, because \co{P0()}'s \co{smp_store_release()} (line~12)
+However, because \co{P0()}'s \co{smp_store_release()} (line~8)
 is cumulative, if \co{P3()}'s \co{READ_ONCE()} returns zero,
 this cumulativity will force the \co{READ_ONCE()} to be ordered
 before \co{P0()}'s \co{smp_store_release()}.
-In addition, the release-acquire chain (lines~12, 20, 21, 28, 29, and~37)
+In addition, the release-acquire chain (lines~8, 16, 17, 24, 25, and~33)
 forces \co{P3()}'s \co{READ_ONCE()} to be ordered after \co{P0()}'s
 \co{smp_store_release()}.
 Because \co{P3()}'s \co{READ_ONCE()} cannot be both before and after
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-11-08  3:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-05 10:29 [PATCH] memorder.tex: Fix typos in description of litmus test C-ISA2+o-r+a-r+a-r+a-o Junchang Wang
2018-11-05 12:15 ` Akira Yokosawa
2018-11-05 21:38   ` Paul E. McKenney
2018-11-06  6:43     ` Junchang Wang
2018-11-06 14:37       ` Paul E. McKenney
2018-11-07  2:15         ` Junchang Wang
2018-11-07 17:39           ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox