Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/92-false-sharing.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Now, let’s 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:
Expand Down