Skip to contentSkip to conversation

memorder: fix a typo in answer to QQ 15.33

PATCH-perfbook Zhouyi Zhou 2 participants 2 messages Oct 21, 2021

lore
Share & tools
lore
#0 lore raw

In answer to Quick Quiz 15.33, update() here should be updater().

---
Hi Paul,

In answer to Quick Quiz 15.33, update() here should be updater(). By the way, I tried to follow Akira's patch as an example to make a good looking patch ;-)

Thanks Zhouyi
--

 memorder/memorder.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
memorder/memorder.tex +1 -1
index debfbcc3..eae93f9e 100644
@@ -2830,7 +2830,7 @@ instead of the expected value 144.
 	not order later loads, only later stores.
 	If you really need ordering, you could place an \co{smp_rmb()}
 	between \clnref{equ,pc}.
-	Or better yet, have \co{update()}
+	Or better yet, have \co{updater()}
 	allocate two structures instead of reusing the structure.
 	For more information, see
 	\cref{sec:memorder:Control-Dependency Calamities}.
Signature · 1 line
2.25.1
#1 lore raw
Quoted 9 lines · Zhouyi Zhou

In answer to Quick Quiz 15.33, update() here should be updater().

---
Hi Paul,

In answer to Quick Quiz 15.33, update() here should be updater(). By the way, I tried to follow Akira's patch as an example to make a good looking patch ;-)

Good eyes, and the patch does look good, thank you! Queued and pushed.

Thanx, Paul

Quoted 21 lines

Thanks Zhouyi
--

 memorder/memorder.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
memorder/memorder.tex +1 -1
index debfbcc3..eae93f9e 100644
@@ -2830,7 +2830,7 @@ instead of the expected value 144.
 	not order later loads, only later stores.
 	If you really need ordering, you could place an \co{smp_rmb()}
 	between \clnref{equ,pc}.
-	Or better yet, have \co{update()}
+	Or better yet, have \co{updater()}
 	allocate two structures instead of reusing the structure.
 	For more information, see
 	\cref{sec:memorder:Control-Dependency Calamities}.
Signature · 1 line
2.25.1