Skip to contentSkip to conversation

memorder: Put \FloatBarrier in front of Section 15.3

PATCH In review Akira Yokosawa 2 participants 3 messages Sep 28, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 memorder: Put \FloatBarrier in front of Section 15.3

Commit e39bbe1b0856 ("memorder: Add example showing store breaking release-acquire chain") added a couple of code snippets in the final subsection of Section 15.2.
In 1c builds, this caused the beginning part of Section 15.3 to appear in the middle of floating code snippets of Section 15.2.

This can be prevented by putting \FloatBarrier in front of Section 15.3, with a (somewhat) wide vertical space left at the end of Section 15.2.

Note: \FloatBarrier does nothing unless there are some overloaded float objects. Therefore, 2c and eb builds are not affected.

---
Hi Paul,

Another option would be to use the "section" option of "placeins" packages as is done for eb builds. I tried but I got quite a few sparse-looking pages in other part of 1c builds. So I think adding a \FloatBarrier here is a reasonable thing to do.

Thanks, Akira
--

 memorder/memorder.tex | 2 ++
 1 file changed, 2 insertions(+)
memorder/memorder.tex +2 -0
index 66f75662f26c..f85cfe6ca702 100644
@@ -2404,6 +2404,8 @@ sea of more complex memory-ordering constraints.
 % @@@ Exercises?
 % @@@ Hardware details from Appendix?
 
+\FloatBarrier
+
 \section{Compile-Time Consternation}
 \label{sec:memorder:Compile-Time Consternation}
 %

base-commit: 43d8aa12c84c8b26ffdb8479b4d793cc0159030e

Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 memorder: Fix typo

---
Hi Paul,

I don't see any smp_store_release() in P1().
It must be P0(). :-)

Thanks, Akira
--

 memorder/memorder.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
memorder/memorder.tex +1 -1
index f85cfe6ca702..a0a87d0a8bca 100644
@@ -2372,7 +2372,7 @@ The only code difference is that
 has an additional \co{P2()} that does an \co{smp_store_release()} to
 the \co{x2} variable that \co{P0()} releases and \co{P1()} acquires.
 The \co{exists} clause is also adjusted to exclude executions in which
-\co{P2()}'s \co{smp_store_release()} precedes that of \co{P1()}.
+\co{P2()}'s \co{smp_store_release()} precedes that of \co{P0()}.
 
 Running the litmus test in
 \cref{lst:memorder:A Release-Acquire Chain With Added Store (Ordering?)}
Signature · 1 line
2.25.1
#2 lore raw

Re: [PATCH -perfbook 2/2] memorder: Fix typo

Quoted 1 line · Akira Yokosawa

Good catches, queued and pushed both, thank you!

Thanx, Paul

Quoted 28 lines

---
Hi Paul,

I don't see any smp_store_release() in P1().
It must be P0(). :-)

Thanks, Akira
--

 memorder/memorder.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
memorder/memorder.tex +1 -1
index f85cfe6ca702..a0a87d0a8bca 100644
@@ -2372,7 +2372,7 @@ The only code difference is that
 has an additional \co{P2()} that does an \co{smp_store_release()} to
 the \co{x2} variable that \co{P0()} releases and \co{P1()} acquires.
 The \co{exists} clause is also adjusted to exclude executions in which
-\co{P2()}'s \co{smp_store_release()} precedes that of \co{P1()}.
+\co{P2()}'s \co{smp_store_release()} precedes that of \co{P0()}.
 
 Running the litmus test in
 \cref{lst:memorder:A Release-Acquire Chain With Added Store (Ordering?)}
Signature · 1 line
2.25.1