This commit is contained in:
Sunil Joshi 2026-05-07 11:08:21 -07:00 committed by GitHub
commit 9a52bc75fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -73,7 +73,7 @@ Now, lets assume that the machine contains two cores. In most cases, we shoul
<figure markdown>
![](img/false-sharing-2.svg)
<figcaption>Each block is copied to a cache line on both code 0 and core 1.</figcaption>
<figcaption>Each block is copied to a cache line on both core 0 and core 1.</figcaption>
</figure>
Both cache lines are replicated because L1D (L1 data) is per core. Recall that in our example, each goroutine updates its own variable: `sumA` on one side, and `sumB` on the other side: